I am using Pligg 9.5 with the yget template.
I am successfully using an if/else statement to insert particular HTML code based on the category in link_summary.tpl. The variable is $link_category.
But when I try to use this same code in story_center.tpl (to add a different bit of HTML, specific to each category), I get nothing. It looks as if the $link_category variable is not being passed to story_center.tpl, since it normally has no need for it.
Is there a way to pass it, so that I can append a bit of category-specific code to each news story page?
Thanks!
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Pass a Variable to story_center.tpl? |
| ||||
|
Typically the .tpl files use smarty/php variables from a particular .php file. For example, story_center.tpl uses story.php and link_summary.tpl uses link.php. It sounds like you're trying to use $link_category in a file that's not inheriting link.php (because that's where it's defined).
__________________ I accept donations for my time helping users like you on the forum and IRC. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| submit extra fields variable problem. | baikuken | Bug Report | 7 | 08-19-2008 10:08 PM |
| Why verify a variable is not null if you just set it as null? | davemackey | Customization Assistance | 2 | 05-06-2008 05:28 PM |
| how to pass variable from releated story to featured story? | jackyu | General Help | 1 | 03-01-2008 06:20 AM |
| Count in tpl files and assigning variable | surender | General Help | 0 | 01-18-2008 08:46 AM |
| smarty variable modifiers | rebel | Bug Report | 3 | 07-30-2007 10:21 AM |




Linear Mode

