HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Curious about some Tempcode arguments in css vs templates

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#95524 (In Topic #19011)
Avatar

Community saint

I'm familiar with this Tempcode argument in global.css:

{+START,IF,{$CONFIG_OPTION,fixed_width}}{+END}
It works exactly as intended.

The following Tempcode works wonderfully in GLOBAL_HTML_WRAP.tpl to isolate codes for the Welcome page from the Site page, but it is totally ignored in Global.css and I am wondering why? It would be great if I could apply the same technique to my css on selectors affecting zone pages differently.
{+START,IF,{$EQ,{$ZONE}:{$PAGE},:start}}{+END}
{+START,IF,{$NEQ,{$ZONE}:{$PAGE},:start}}{+END}

Jean


Last edit: by Jean
Back to the top
 
Posted
Item has a rating of 5 (Liked by Fletch)  
Rating:
#95537
Avatar

Community saint

I found my own answer after remembering that global.css is compiled and cached and any tempcode additions should be done via "no-cache.css"

Doing so worked perfectly!:cool:

Jean
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message:



   

Moving forward with Composr

ocPortal has been relaunched as Composr CMS. ocPortal 9 is superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


An error has occurred

Unfortunately a query has failed [INSERT INTO ocp2_stats (access_denied_counter, browser, operating_system, the_page, ip, the_user, date_and_time, referer, `get`, post, milliseconds) VALUES (0, 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'http://commoncrawl.org/faq/', 'forum/pages/modules/topicview.php', '23.20.100.200', -1372443362, 1496109707, '', '<param>page=topicview</param>\n<param>type=misc</param>\n<param>id=19011</param>\n', '', 0)] [Duplicate entry '19560025' for key 'PRIMARY'] (version: 8-RC3, PHP version: 7.0.19, URL: /forum/topicview/misc/themeing/curious-about-some.htm)

Here is the stack trace:

The staff have been provided a ‘stack trace’ which may help them diagnose the problem.