Nudaii Well-known member Sep 2, 2013 #1 as the title says, and also what would be a global variable to get the forum id OR atleast to work at forum_view and forum_list
as the title says, and also what would be a global variable to get the forum id OR atleast to work at forum_view and forum_list
Jeremy in memoriam 1991-2020 Sep 2, 2013 #2 Yes, you can use conditionals in any template. However, unless the information you need is there, they most likely need some extra work (ie, setting information in the container). Upvote 0 Downvote
Yes, you can use conditionals in any template. However, unless the information you need is there, they most likely need some extra work (ie, setting information in the container).
Nudaii Well-known member Sep 2, 2013 #3 would it be very hard to get it working for the node's in forum list and forum view? I want to add a background image to the nodes (different per node) pulled by node id Upvote 0 Downvote
would it be very hard to get it working for the node's in forum list and forum view? I want to add a background image to the nodes (different per node) pulled by node id
Chris D XenForo developer Staff member Sep 2, 2013 #4 That is possible without conditionals. When you're in a node, the forum ID of the node you're in and its parent nodes are class names attached to the <body tag. e.g. Code: <body class="node47 node22" style=""> With that in mind, if you want node 22 to have a different background, you can target it like this: Code: .node22 { background-color: red; } Just apply your background to your requirements. Nice and easy. Upvote 0 Downvote
That is possible without conditionals. When you're in a node, the forum ID of the node you're in and its parent nodes are class names attached to the <body tag. e.g. Code: <body class="node47 node22" style=""> With that in mind, if you want node 22 to have a different background, you can target it like this: Code: .node22 { background-color: red; } Just apply your background to your requirements. Nice and easy.