Code Monkey
Well-known member
What is the template conditional to check for node id? $forum.node_id doesn't seem to work.
EDIT: Figured it out. $article.node_id
EDIT: Figured it out. $article.node_id
Make sure you only have it set up as a custom thread field and not a custom post field.I noticed tonight that if I use the custom thread field to create a thread, and make it mandatory, then I can't posts subsequent pages to the article as it continually throws an error about not filling in every required field. It only shows the thread option on the initial page but demands it on every page.
What $bodyClasses var? Is this related to a different add-on?I notice this breaks the drill down effect of using body classes for nodes. Any idea why?
I'm assuming the $bodyClasses var is not being set.
<body class="node141 node145">
Oh, I see. It adds it in the templates.No that's an XF standard var. It automatically names a class after each forum and it's children so you can use it for things like background image and stuff that is unique to each forum. So for my gaming forum I have categories for some our our favorite games and we throw up a different background. It creates a class in the body tag for current forum and parent. Like this.
HTML:<body class="node141 node145">
Anyway, I have the library node in one of those categories and the body classes don't appear.
<xen:container var="$bodyClasses">{xen:helper nodeClasses, $nodeBreadCrumbs, $library}</xen:container>
<body{xen:if {$bodyClasses}, ' class="{$bodyClasses}"'}>
We use essential cookies to make this site work, and optional cookies to enhance your experience.