PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  PostNuke 0.7 Support ::  XTE Support ::  Setting Active Links to a Nav bar

Moderated by: Support Team

Goto page : Previous Page 1 | 2
Bottom
Setting Active Links to a Nav bar

  • Link to this postingPosted: 15.04.2008, 21:15
    Profile Homepage
    jaenosjelantru
    rank:
    pnHelper pnHelper
    registered:
     March 2005
    Status:
    offline
    last visit:
    30.04.08
    Posts:
    124
    This produced a Smarty error:
    Code
    <li<!--[if $module eq 'htmlpages' && $pid = '1' ]-->

    An unknown error has occured. The following error message was returned by the system
    Smarty error: [in master.htm line 29]: syntax error: unidentified token '=' (Smarty_Compiler.class.php, line 1405) (in file C:\PATH\Websites\xampp\htdocs\test\includes\classes\Smarty\Smarty.class.php on line 1092)


    This worked however:
    Code
    <li<!--[if $module eq 'htmlpages' && '$pid=1' ]-->


    Sorry for the confusion!



    edited by: jaenosjelantru, Apr 15, 2008 - 03:17 PM
  • Link to this postingPosted: 15.04.2008, 21:55
    Profile Homepage
    AmmoDump
    rank:
    pnProfessional pnProfessional
    registered:
     December 2003
    Status:
    offline
    last visit:
    08.05.08
    Posts:
    2635
    sure
    Code
    $pid = '1' // variable pid equals the string 1
    '$pid=1'   // the value of variable pid is 1


    -----
    -- David Pahl -- (PostNuke Support Team)

    <div id="me" class="none" style="none" />

  • Link to this postingPosted: 16.04.2008, 11:54
    Profile Homepage
    espaan
    rank:
    pnHelper pnHelper
    registered:
     August 2003
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    240
    According to smarty.net the "equals" test is
    Code
    $a == $b
    or
    Code
    $a eq $a

    so a single = is not valid indeed. You use eq with module eq htmlpages, why not use eq with pid icon_wink



    edited by: espaan, Apr 16, 2008 - 12:55 PM
Goto page : Previous Page 1 | 2

Start ::  PostNuke 0.7 Support ::  XTE Support ::  Setting Active Links to a Nav bar

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke