Category Description

Discussion in 'Article Script / Article Directory Script' started by Greg, Jan 13, 2016.

  1. Greg

    Greg Super Moderator

  2. Vasily_B.

    Vasily_B. Project Manager

    Hi Greg,

    I am not sure why my colleagues have not replied here.
    Yes, sure. This could be done. You'd need to follow these instructions.

    You need to modify ia-categories.tpl file. You need to copy it from common/ folder to your template folder, I guess it's magazine template.
    Now it's ready for mods. You can find the following code:
    Code (Text):

    {foreach $categories as $category}
    ....
    {/foreach}
     
    It's a cycle used for each category iteration. So category values are now available via {$category} array. So you can put {$category.description} in any place inside this cycle code.

    Here is a cool function to debug smarty variables:

    {_v($SmartyVarName)}

    Let us know if you need any assistance.[/code]
    Andrew_G. and Greg like this.
  3. Greg

    Greg Super Moderator

    Wow, thanks! That was so damn easy. Worth the wait. :)
  4. Vasily_B.

    Vasily_B. Project Manager

    I'm happy to advise, Greg.

Share This Page