Puntocom Well-known member May 4, 2011 #1 Hi! I want to show a code for several threads. I have put this in ad_below_top_breadcrumb but it doesn't show anything when loading thread id 907, any idea? Code: <xen:if is="{$thread.thread_id}==907"> show this in thread 907 </xen:if> thank you in advance
Hi! I want to show a code for several threads. I have put this in ad_below_top_breadcrumb but it doesn't show anything when loading thread id 907, any idea? Code: <xen:if is="{$thread.thread_id}==907"> show this in thread 907 </xen:if> thank you in advance
J James Well-known member May 4, 2011 #2 Have you checked if the $thread variable is available in the ad_below_top_breadcrumb template? Upvote 0 Downvote
Puntocom Well-known member May 4, 2011 #3 James said: Have you checked if the $thread variable is available in the ad_below_top_breadcrumb template? Click to expand... No, how can I do that? what should I do in case it's not available? Upvote 0 Downvote
James said: Have you checked if the $thread variable is available in the ad_below_top_breadcrumb template? Click to expand... No, how can I do that? what should I do in case it's not available?
J James Well-known member May 4, 2011 #4 Puntocom said: No, how can I do that? what should I do in case it's not available? Click to expand... If you put: Code: {xen:helper dump, $thread} into the template and it returns an array then it is available. If it returns NULL, it's not available and you'll need an alternative. Upvote 0 Downvote
Puntocom said: No, how can I do that? what should I do in case it's not available? Click to expand... If you put: Code: {xen:helper dump, $thread} into the template and it returns an array then it is available. If it returns NULL, it's not available and you'll need an alternative.