I am setting up a Contribute site with aspx pages using includes for shared elements and converted into templates using Dreamweaver. When i try to set up a specific stylesheet, or any stylesheet to be populated in Edit view via the Role settings, it doesn't render a thing in the drop downs. Note that when i edit these pages i am not seeing any styles imported period. When i browse in Contribute I see the styles render correctly, but when in I am in Edit mode i do not, so i am not sure if this is the root of my problem. However, i assume contribute would be able to still get the path of the external css file i am pointing to via th Roles > styles settings and at least populate that drop down with available styles. Can someone tell me why this might not be working? thanks!
- Bess
well, i figured this out myself. looks like contribute doesn't recognize stylsheets in an include file.. or if the link to the stylesheet is running at the server in any form. so runat="server" with ~ path to the stylesheet doesn't work either or any server side variable <%= Root %>. great. so i had to create a custom parameter where the client has to input their virtual root, as staging and live have different virtual paths. way too much extra work just to link to a stylesheet. blah.
I had the same problem with a web page that used @import url("/_css/template.css") to load a style sheet. Replacing that with a link instead -- <link rel="stylesheet" type="text/css" media="screen" href="/_css/template.css" /> -- allowed Contribute to render the page properly in edit mode.
Make sure the address bar in Contribute is displaying your URL and
not a file path.
Your administrator can remedy this by going to the role settings and making sure the Home address is set to the URL. If you can't get the admin to update the role settings, you can enter your URL into the address bar and then the site should be able to find linked style sheets.
If you look at the same page in a browser do all the styles get rendered properly? Using Firefox and either the Web Developer - http://chrispederick.com/work/web-developer/ - or Firebug - http://getfirebug.com/ - add-ons makes working with stylesheets much easier.
Hi Tom,
thanks for checking in.
Yes, all the pages render properly. Here is the url of the site: http://www.hhh.umn.edu/ 3
The landing page is the only paged not configured to work with Contribute while every other page on the site is.
Thanks,
Looking at your homepage, there are quite a few validation errors that may be throwing off the rendering in Contribute. You can use another Firefox add-on called HTML Validator - https://addons.mozilla.org/en-US/firefox/user/155/?src=api - to check the page or go to http://validator.w3.org/
Your home page has quite a lot of errors in its XHTML syntax, whereas the others appear to have just a few, and less severe ones. That could be making the difference for Contribute.
Yes,
We've validated the page. Most of those errors are not particularly connected with layout (at least I can't find any that are, if you can please point out the ones that you think might be remotely related). As I've stated, the pages render fine in Contribute until you go into edit mode.
Thanks for looking into this, though.
Stefano
I see you've fixed the validation errors. Do you still have problems in Contribute editing mode? There are some CSS errors (Firefox > Web Developer > Error Console); maybe they're affecting the Contribute editor, which I have found to be very finicky in the past. Beyond that the only advice I have is to take a copy of the page and strip it down to the basics (no scripts or styles), see if that works in the editor. If it does, then add one thing back in, and repeat the process.
North America
Europe, Middle East and Africa
Asia Pacific