PDA

View Full Version : "global_start" equiv. for CMS ?


XManuX
11-30-2009, 09:06 AM
I've set a hook in global_start to tell which tab is selected. For now i don't use any conditional structures, just a plain :

$vbulletin->options['selectednavtab'] = 'TESTINGMOD';


for testing purposes.

In my navbar template, i have the following :

<vb:if condition="$vboptions['selectednavtab'] == 'TESTINGMOD'">
<li class="selected"><a class="navtab" href="http://boardurl/content.php/114">section1</a></li>
<vb:else />
<li><a class="navtab" href="http://boardurl/content.php/114">section1</a></li>
</vb:if>


But it is only working in the forums, which leads me to think that "global_start" is only working inside the forums area...

Question : what is the equivalent of "global_start" for CMS ?

Lionel
11-30-2009, 10:50 AM
try process_templates_complete hook

Paul M
11-30-2009, 11:11 AM
But it is only working in the forums, which leads me to think that "global_start" is only working inside the forums area...
This is a known issue, logged in the bug tracker.

Lionel
11-30-2009, 11:23 AM
<a href="https://vborg.vbsupport.ru/showpost.php?p=1916326&postcount=5" target="_blank">Adrian solution</a> worked for me

XManuX
11-30-2009, 12:25 PM
Yeah just saw Paul M message in vB4 bugtracker.

process_templates_complete hook works fine for CMS (but isn't for blogs it seems.)

Lionel
11-30-2009, 12:31 PM
works for me in blogs and everywhere else