View Full Version : CMS and plug ins?
Xtrato
05-16-2011, 02:03 AM
Hi guys , so i created a plug in , registered to a CMS template , but it is not displayed... i changed the registered template to the FORUMHOME , and it works fine there... but i doesnt work on the CMS vbcms_page template , but im not sure why..
The code calling is : {vb:raw $included_file_slider}
again , it works with FORUMHOME , the hook location is set to global_start..
any help is appreciated
Lynne
05-16-2011, 03:14 AM
And did you (pre)register that variable for use in the vbcms_page template?
Xtrato
05-16-2011, 04:09 AM
like such :
vB_Template::preRegister('vbcms_page', array('included_file_slider' => $included_file_slider));
cellarius
05-16-2011, 07:42 AM
The hook global_start is deprecated. It only still works in forum and blog, but is not called in CMS. Try using process_template-hook instead.
Xtrato
05-16-2011, 02:08 PM
The hook global_start is deprecated. It only still works in forum and blog, but is not called in CMS. Try using process_template-hook instead.
Great! , this did the trick , wasnt aware it go deprecated ...
Thanks a bunch!
--------------- Added 1305571545 at 1305571545 ---------------
also quick question...where can we edit the CMS Sub-navigation.. ( categories ) , you know how in FORUMS you have :
Today's Posts FAQ Calendar Community Forum Quick Links ...etc..
and in the home page you have your categories... well i want to directly edit those , but i cant find the template for that , for the BLOG i was able to do it , but i havent found the CMS ones.. any help is appreciated as well .
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.