• Page 1 of 1
  • 1
Forum moderator: bigblog  
Informer Menu Link not change when active
Dwarf0416
Posts: 7
Reputation: 0

Message # 1 | 4:20 PM
Hello, I have a problem which I can't resolve since a long time. If you create an Informer Menu like, it will display with this HTML code:

Code
<a href="$CATEGORY_URL$" class="catName">$CATEGORY_NAME$</a> <span class="catNumData">[$NUM_DATA$]</span><?if($CATEGORY_DESCR$)?><div class="catDescr">$CATEGORY_DESCR$</div><?endif?>


So, it is in the catName part of CSS, the problem is, when I click one element of the menu, there is no change on the title of that element when the page loads. This is the CSS code:

Code
.catsTd {padding: 0 00 2px 13px; background: url('/Template/General/Menus/menu_icono.png') no-repeat 4px 4px;}
.catName {font-family:Tahoma,Arial,Sans-Serif;font-size:11px;}
.catNameActive {font-family:Tahoma,Arial,Sans-Serif;font-size:11px;}
.catNumData {font-size:7pt;color:#717171;}
.catDescr {font-size:7pt;}
a.catName:link {text-decoration:none;font-weight:bold; color:#515151;}
a.catName:visited {text-decoration:none;font-weight:bold; color:#515151;}
a.catName:hover {text-decoration:none;font-weight:bold; color:#185420;}
a.catName:active {text-decoration:none;font-weight:bold; color:#008200;}
a.catNameActive:link {text-decoration:none;font-weight:bold; color:#185420;}
a.catNameActive:visited {text-decoration:none;font-weight:bold; color:#185420;}
a.catNameActive:hover {text-decoration:none;font-weight:bold; color:#185420;}
a.catNameActive:active {text-decoration:none;font-weight:bold; color:#008200;}


When you are in a page of the menu, that menu element must chenge from a.catName to a.catNameActive, to display different from other elements of the menu, but it doesn't.

%CATEGORIES% works OK but an informer of a menu showing the categories does not...

Thanks Sorry for my English.
Post edited by Dwarf0416 - Wednesday, 2014-10-08, 4:23 PM
Mar1aN
Posts: 192
Reputation: 3

Message # 2 | 11:31 PM
I use this:
Code
<?if($URI_ID$="sfMain")?>
      <style>
          .pR {border-bottom: 3px solid #F00;color: #F00 !important;}
      </style>
<?endif?>


You cand read about the uCoz Conditional Operators here http://forum.ucoz.com/forum/37-471

Post edited by Mar1aN - Wednesday, 2014-10-08, 11:33 PM
Dwarf0416
Posts: 7
Reputation: 0

Message # 3 | 7:40 PM
Hello.
I can't use $URI_ID$ on a informer, it returns me nothing.
Thanks
Paradox
Old Guard
Posts: 3284
Reputation: 145

Message # 4 | 4:44 AM
Dwarf0416, could you please provide a site URL? smile I'll take a look at the code and get back to you.
Jack of all trades in development, design, strategy.
Working as a Support Engineer.
Been here for 13 years and counting.
Dwarf0416
Posts: 7
Reputation: 0

Message # 5 | 0:07 AM
http://gta5-gt.ucoz.net/
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 6 | 9:22 PM
Dwarf0416, sorry for late reply. Try to use the specified code after the informer code:

Code
$MYINF_XY$

<?if($URI_ID$="sfMain")?>  
       <style>  
           .pR {border-bottom: 3px solid #F00;color: #F00 !important;}  
       </style>  
<?endif?>


This should work.

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
  • Page 1 of 1
  • 1
Search: