![]() |
THIS SCRIPT for Article Page?
Hi
In VBCMS is there any counterpart of the SHOWTHREAD and FORUMDISPLAY this_script only for the article page? What I want to do is to display some html only on the article page, but the code has to be put in the footer. In forums, i would simply do this in the footer template where my code is HTML Code:
<vb:if condition="THIS_SCRIPT == 'showthread'"> Thanks |
There is this defined for the CMS:
Code:
define('THIS_SCRIPT', 'vbcms'); |
Hi Calories, thanks for your reply.
No it won't work because i want to be able to use the THIS_SCRIPT only for the article page, not for section page, not for category and not for CMS Home page. |
Untested but maybe a plugin at the cache_templates hook:
Code:
// if we are in the CMS and the article page temple is there Code:
<vb:if condition="defined('ON_ARTICLE_PAGE_ONLY')"> |
Nopes it doesn't work, though the idea seems fine.
It's very late here... will try again in the morning. |
I'm curious if you ever got this working?
|
Actually I don't remember... :)
I think I did get it to work at that time but since then I have changed almost everything on my site and so I don't know what I had done. |
All times are GMT. The time now is 04:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|