Fork me on GitHub

Help with template logic.  Bottom

  • I'm trying to make a certain article display depending on what topic it is under. For example under topic A I want a certain content to display but under all other topics I want different content to display.

    I'm guessing I want something like:


    etc.


    etc.




    but when I tried that I got a big Smarty error. If anyone could help I'd appreciate it. Otherwise is there a list of all the template variable I can pull up to create commands around?

    Thanks :)
  • http://smarty.php.net/manual/en/language.function.if.php

    you want "eq" or "==" not "="

    and make you've assigned the $topic var to the template
  • Thanks for the response craigh :) Where and how do I set the template variables??
  • if you add to the top of any template you should get a list of all the variables assigned to that template. I take it that you are trying to make an Xanthia theme?

    --
    itbegins.co.uk - Zikula Consulting

    birtwistle.me.uk - Personal Blog


    Please read the Support Guide
  • Yup it's basically done I'm just playing with the last few things. I've just chopped apart the pnDefault theme mostly.
  • I got this error when trying pndebug:

    Warning: Smarty error: unable to read resource: "modules/pnRender/pntemplates/pndebug.html" in /home/admin/domains/hotukdeals.com/public_html/includes/classes/Smarty/Smarty.class.php on line 1083

    Does anyone know of a topic indicator variable that I could use? $links.topic or something??
  • .750 or later contains the missing file, otherwise get it from here and save it as modules/pnRender/pntemplates/pndebug.html

    --
    "He is not dangerous, he just wants to play...."

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