[Bug 1846] templates by category
| Newsgroups | gmane.comp.cms.xaraya.bugs |
|---|---|
| Message-ID | <[email protected]> |
http://bugs.xaraya.com/show_bug.cgi?id=1846 [email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform|Other |All Resolution| |WONTFIX Version|unspecified |Current MT Tree ------- Comment #7 from [email protected] 2009-02-22 21:04 GMT ------- 1. Create an overriding template for the pubtype. 2. Check for $catid in this template 3. Include other templates based on the $catid check <xar:set name="currentcids"> xarVarGetCached('Blocks.articles','cids') </xar:set> <xar:if condition="isset($currentcids)"> <xar:if condition=in_array('1',$currentcids)> <xar:template file="forcatone" type="'module' or 'theme'" depending on position of category specific template > <xar:elseif condition=in_array('2',$currentcids)> ... </xar:if> </xar:if> Example not tested, reopen bug if it fails. -- Configure bugmail: http://bugs.xaraya.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. ---- ** IMPORTANT ** READ BELOW ** ---- [Clip Me Start] -------------------------------------------------------------------------- If you wish, you can reply to this message directly **however**, make sure to use the "Reply To All" feature of your client **and** ensure that the bug specifier is in the subject (ie: [Bug ####]). Also, you _MUST_ have you're From or Reply-To address set to the same address you use to log into your bugzilla account or your reply will not be attached to the bug. -------------------------------------------------------------------------- [Clip Me End]