Announcement

Collapse
No announcement yet.

Specific styles for specific articles

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • malmazan
    replied
    Originally posted by Lynne View Post
    You could try using $_GET['r']
    You mean modifying vB PHP files so that the nodeid is retrieved?

    Leave a comment:


  • Lynne
    replied
    You could try using $_GET['r']

    Leave a comment:


  • malmazan
    started a topic [CMS] Specific styles for specific articles

    Specific styles for specific articles

    I'm porting my static site to vBs's CMS.

    One of the problems is that some pages need a lot of styling, for which I would use extensive CSS in the HEAD section of the HTML.

    This is now a problem, because now, in the CMS articles (or static pages, for that matter), I do not have accesss to the html head, and xhtml will not validate if i move the css definitions into the body or the article. Styles are used many times throughout the article, so inline css is not an option.

    One could use the CMS css template, but it does not make much sense to load styles that only needed for a single page and may conflict with requirements in other pages.

    I tried a conditional (<vb:if condition="$nodeid ==XX">) on the CMS template that carries the head, but it does not work there.

    ┬┐Solutions?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X