S Solooo Member Jan 20, 2018 #1 Hi guy, If I want to get forum ID of a post, I can use: Code: {$post.Thread.node_id} But, how can I get category ID (contains forum of thread) to use for Conditional Statements in post ? Thanks, Last edited: Jan 20, 2018
Hi guy, If I want to get forum ID of a post, I can use: Code: {$post.Thread.node_id} But, how can I get category ID (contains forum of thread) to use for Conditional Statements in post ? Thanks,
KSA Well-known member Jan 20, 2018 #2 Go to APC> nodes and click on the desire one, it should appear in the address bar. Upvote 0 Downvote
S Solooo Member Jan 20, 2018 #3 ALMUSA said: Go to APC> nodes and click on the desire one, it should appear in the address bar. Click to expand... I want to show Category ID in post content or use it for Conditional Statements Upvote 0 Downvote
ALMUSA said: Go to APC> nodes and click on the desire one, it should appear in the address bar. Click to expand... I want to show Category ID in post content or use it for Conditional Statements
Joe Link Well-known member Feb 25, 2019 #4 Anyone figure this out? I'd like to be able to style forums based on the category ID. Upvote 0 Downvote
Nuno Well-known member Feb 25, 2019 #5 Just {{ dump($XF) }} in the template and see what is available from there. Upvote 0 Downvote
Joe Link Well-known member Feb 25, 2019 #6 Nuno said: Just {{ dump($XF) }} in the template and see what is available from there. Click to expand... I put {{ dump($XF) }} in the forum_view template and it returned "null". Upvote 0 Downvote
Nuno said: Just {{ dump($XF) }} in the template and see what is available from there. Click to expand... I put {{ dump($XF) }} in the forum_view template and it returned "null".
Nuno Well-known member Feb 25, 2019 #7 Joe Link said: I put {{ dump($XF) }} in the forum_view template and it returned "null". Click to expand... Sorry, should be $xf and not $XF. Upvote 0 Downvote
Joe Link said: I put {{ dump($XF) }} in the forum_view template and it returned "null". Click to expand... Sorry, should be $xf and not $XF.