tip : test to see is a given url is the current url  Bottom

  • Hello

    Ok, that's might be simple, bug sometime in design, in a menu, you want's to check if the current element of a menu is the one active.

    In extmenu, if you specify your URL like this

    Code

    {Pages:display&pageid=1:user}


    Code

    <!--[assign  var=url value="/"|cat:$item.url|htmlentities     ]-->
    <!--[pngetcurrenturi  assign=currenturi]-->

    <li<!--[if  $url eq  $currenturi   ]--> class="current" <!--[ /if ]-->>


    If you use this form,

    Code

    {Pages:display&pageid=1:user}


    you won't have to add "htmlentities"



    edited by: mumuri, Mar 28, 2009 - 03:47 AM
  • 0 users

This list is based on users active over the last 60 minutes.