CSS doesn't show in Edit mode

Ask a Question related to Macromedia Contribute General Discussion, Design and Development.

  1. #1

    Default Re: CSS doesn't show in Edit mode

    Try specifying a particular CSS file in the adminstration for the user/role.
    This worked for me (in C3). In the 'Styles and Fonts' section, you have to
    select 'Show only CSS styles included in this CSS file:', not 'Show all CSS
    styles'. Not much use if you need to use more than one CSS file, but seems to
    solve the problem where the stylesheet is attached to an included header.

    birdboot Guest

  2. Similar Questions and Discussions

    1. Edit button not converting to edit mode
      I too had the same problem today. I've users set up as writers role to update content thru Contribute. We have two admins including my self. We...
    2. Edit button not converting to edit mode
      I think i have found the solution to this. There is a a file called ccSentPublished1.xml that is located in C:\Documents and Settings\<user...
    3. Edit button not converting to edit mode
      I am running into this issue. I am still trying to pinpoint what is causing it but am having a hard time.
    4. Edit button not converting to edit mode
      Hi I have the same problem. I cannot find any anwsers to this yet. MM is silent - which is not good. M
    5. Would like to load a datagrid already in edit mode instead of having the user click the edit button
      Now my asp.net datagrid shows an edit button and clicking it puts the datagrid in edit mode. I would like to: 1) possilby load the page already...
  3. #2

    Default Re: CSS doesn't show in Edit mode

    well ive got the same problem.
    Images are ok, but css isnt ok when previewing templates and when editing.
    My css is w3c validated.
    So, what should i do?
    Holden-ar Guest

  4. #3

    Default Re: CSS doesn't show in Edit mode

    I tried a bunch of solutions: 1) Move the CSS stylesheet up the page, i.e.
    closer to the top. 2) Used both the @import method and the LINK REL method to
    include the styles. 3) Because we use multiple style sheets, I couldn't try the
    specify-the-stylesheet-in-the-user-permissions trick. 4) We use the ASP
    extension, so the ASPX/extension fix didn't apply. To make matters even more
    frustrating, Edit mode would sometimes (rarely) display the CSS properly!
    However, I was never able to replicate this. So Contribute seems to want to
    display the styles, but some bug is blocking it 99% of the time. My solution
    was to take the @import style sheet code out of the include file. While
    Contribute will include the HTML contents of include files (at design time in
    Edit mode), it seemingly won't reach into those referenced style sheets and
    apply those styles at design time. Now that my stylesheet is called directly
    from the HTML document (and not indirectly via the include file), the styles
    now appear OK in Edit mode. Epilogue: I've been grappling on-and-off with
    this bug for months now. While I'm relieved to have a solution, I'm bummed
    out: because I thought Contribute couldn't handle pure CSS sites, I used hybrid
    table/xhtml code to relaunch my site. If I had known the fix was as simple as
    taking the CSS out of the include files, I could have coded pure XHTML. I
    suppose I could just modify the templates now, but geeeeeeeeez, what a hassle
    this has been. I'm also bummed that (as pointed by other forum posters) this
    bug has received so little attention from MM.

    dfps@work Guest

  5. #4

    Default Re: CSS doesn't show in Edit mode

    I, too, have a site set up to use include files for the header and footer. The
    CSS file used for my site is mentioned in the PHP header code, so it's not
    being called at all in Contribute. So the solution I keep reading everywhere is
    to use the 'Administer Website' function for this. So I've done that. But to no
    avail - NONE of my styles are showing up in the styles dropdown menu. I've run
    both stylesheets against the validator mentioned above, and they've both come
    back as 'Valid'. So what gives here? What am I missing? Thanks in advance!
    Rob Zazueta

    robant_robz Guest

  6. #5

    Default Re: CSS doesn't show in Edit mode

    If your style sheets arent showing in edit view then the reason is because
    Contribute can't find your CSS due to one reason or another. Contribute should
    be able to find a CSS file using either absolute or relative links, regardless
    if your using the <link> element or @import rule.

    It does not, however, interpret ASP (or other serverside scripts) while in
    edit mode. So if you have some dynamic scripts anywhere within the CSS call,
    then it is a good bet that it won't find your style sheet.

    For instance, this won't work:

    <style tyle="text/css"> @import("<% varStyle %>.css"); </style>

    Also, if you have your CSS call (or entire header, for example) inside of an
    include its a good idea to make the CSS an absolute link instead of a relative
    one. Also, I'm not sure how Contribute would handle an @import rule inside of
    an @import'ed rule, because I typically never do that, but if thats the case
    with any of you I'd suggest taking the CSS out of your 2nd @import and put it
    into the first one, to see if Contribute will see it.

    mzanime.com Guest

  7. #6

    Default Re: CSS doesn't show in Edit mode

    Good news. I was having this same problem for some time and think I
    found the solution (not sure if this applies to the asp folks). I am
    using a server side include inside the head tags to call my style
    sheets. Again, the problem in Contribute was that the styles were not
    rendering in edit mode and the page would fall apart. Here's the fix:

    The extension for your ssi's must be .shtml.

    That's it. Give it a shot.

    itchylick@yahoo.com Guest

  8. #7

    Default Re: CSS doesn't show in Edit mode

    Make sure the extension for your ssi is .shtml. Styles should then render correctly in edit mode.
    itchylick Guest

  9. #8

    Default Re: CSS doesn't show in Edit mode

    itchylick, your on crack. You can have include files use the ".asp" extension,
    the ".shtml", or even ".html" extension and they will render. The only thing
    that I have had problems with is PHP includes, version 2 will not render those,
    not sure about version 3.

    ** If you have the ACTUAL <link> or @import code inside a script block it
    will not work though **

    mzanime.com Guest

  10. #9

    Default Re: CSS doesn't show in Edit mode

    Of course you can use a number of different file types as ssi's. You might also
    expect that they'd be treated the same way in Contribute's edit mode. They
    didn't for me.

    I am using a server-side include in the head of my pages to a file that calls
    my external style sheet. The problem I encountered (as did the original poster)
    was when in edit mode, the styles would not render and the page would fall
    apart. I was unable find a solution until I came across this article today ...
    [url]http://www.macromedia.com/devnet/contribute/extreme/extreme002.html[/url]. The line
    that caught my attention was "Also, make sure that users who create pages with
    includes know to add the .shtml extension to the filename." So just out of
    curiousity and a dwindling set of options I changed the filename of my ssi from
    ..htm to .shtml ... and guess what? It worked. My pages now render correctly in
    edit mode. As to why this is happening I couldn't tell ya. I'm just glad I can
    move onto the next problem.

    Not on crack. Just trying to help out.

    itchylick Guest

  11. #10

    Default Re: CSS doesn't show in Edit mode

    Interesting thread.
    Does it bug anyone that the only font-size styles available are the ones
    specified in the CSS (x-small, smaller, etc.) yet all of the standard type-face
    sizes are available (18, 24... 72!?)

    Also... if you add a <p>Some Text</p> (using Enter key)... and then delete the
    Return, C3 leaves the </p>.

    As in...
    <td<Old text</td>

    (Press enter, type new text)
    <td>Old text

    <p>New Text</p></td>

    move cursor to end of old text and press Delete

    <td>Old Text New Text</p></td>

    Jeff Radwill Guest

  12. #11

    Default Re: CSS doesn't show in Edit mode

    We've just discovered the same apparent bug on our intranet site. :|
    When initially building the main template for the site, the css styles were
    correctly displayed in both design and edit modes. Since some amendments were
    made to the template, suddenly the pages would appear okay in C3 browse mode,
    but would revert to no styles being applied when the users edited the page
    causing confusion for the users believing they had caused the apparent error.

    The css styles were also not available to them, only the default Heading 1...7
    etc. :confused;
    To resolve the issue I created a testpage.asp in C3 (the template displayed
    okay in the New page preview window) and put this file at the lowest level in
    our directory structure (the file had no apparent styles applied) I then
    proceeded to publish the file to the web server. I then navigated to the file
    in my browser and everything was okay. I looked at file in C3, and the page
    appeared okay. However when editing the file it reverted to no styles being
    applied. :(
    I then took advice from the forum, within this thread, and edited the template
    file simply cutting and pasting my css reference, placing the code as the
    second line in my <HEAD> tags, updated the site pages based on the template,
    and republished those pages to the web server. Now in the browser and
    Dreamweaver nothing has really changed other than where the css reference is
    placed. In C3 we see that the page appears okay in browse and edit modes.
    Thanks to the forum and this thread I appear to have applied a solution for
    our problem. :)

    mbbblue Guest

  13. #12

    Default Re: CSS doesn't show in Edit mode

    Jeff wrote:
    > Also... if you add a <p>Some Text</p> (using Enter key)... and then delete
    the Return, C3 leaves the </p>.

    It doesn't -always- do this, but yes, it can be a challenge if your trying to
    keep the code of all pages on your site validly follow the W3C spec..

    At my old job, we had a staging server and also an external server, which the
    public could see. Only our users could see the internal server and thats where
    they worked on pages. We had some ASP code in there which would display a W3C
    validator link only if the current page was loaded from the staging server IP
    address, and the link was hidden if the file was viewed from the external
    site's IP.

    It may be a good idea for you to do something like that, it would greatly help
    eliminate errors in your code caused by Contribute, because those kind of
    things only happen sometimes. You could train your users to click the validator
    link (before sending their page off to review) and if it throws an error, then
    contact their administrator to fix it.

    mzanime.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139