The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to get a template var from one template to also be usable in another CMS template
I have been working on some conditionals for my navbar template that show a different image depending on the section of the site they are in.
In the CMS, how can I get {vb:var parenttitle} from the vbcms_content_article_preview template so that it is also accessible in the navbar template? |
#2
|
|||
|
|||
WooHoo! I got it working. I hate editing php files but it gets me what I need...
To do this, I used the fix at http://www.vbulletin.com/forum/proje...?issueid=37252 and modified it to get the parentid for my conditional. open /packages/vbcms/controller/content.php Around line 93 ( after protected function authorizeAction() { ) add Code:
vB::$vbulletin->parentid = $this->node->getParentId(); Code:
<vb:if condition="$vbulletin->parentid == 5">........</vb:if> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|