Log in | Register | Lost password

Bottom
Display text based on pid
  • Posted: 08.11.2008, 23:00
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have the following code in a template:

    Code

    <hr />

    This Publication is listed in the following categories:

    <br/>

    <!--[nocache]-->

    <!--[pagesetter_createFilter filter="Publications:rel:`$core.pid`" assign=f]-->

    <!--[pagesetter_inlinePubList tid=10004 filter=$f]-->

    <!--[/nocache]-->


    What I'd like to do is, in the template add a function that looks at the pid.. and based on that value would display extra text in the document.

    For example:

    Code

    If pid=65

    <Display special text here>

    endif


    Hope this makes sense..
  • Posted: 13.11.2008, 15:29
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    Code

    <!--[if $core.pid == "65"]-->

    >> Display special text

    <!--[/if]-->


    That should do it...

    - Igor

Template courtesy of Designs By Darren.