Announcement

Collapse
No announcement yet.

Specific styles for specific articles

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

  • [CMS] 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?
    Vote for these issues:

  • #2
    You could try using $_GET['r']

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment


    • #3
      Originally posted by Lynne View Post
      You could try using $_GET['r']
      You mean modifying vB PHP files so that the nodeid is retrieved?
      Vote for these issues:

      Comment

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