Sean |
|
---|---|
Hi Everyone, I'm wondering if its possible to get Cotonti to parse a plugin tag thats in a menu slot? More specifically, I have the tag {PLUGIN_CALENDAR}, from the plugin Calendar 2.1, in Menu Slot 2 and {PHP.cfg.menu2} in index.tpl. It looks like Cotonti isn't recognizing the tag, because only the tag's text shows up, no mini calendar. Thanks a lot |
pieter |
|
---|---|
Why do you want to put a plugincode in a menu slot? Instead of {PLUGIN_CALENDAR}, you want to put {PHP.cfg.menu2}. ... can we help you ...
|
Sean |
|
---|---|
On the website im developing, I have {PHP.cfg.menu2} setup with html code for a sidebar, with a search box, quick links, etc. So on every page I'd like to have a side sidebar, I add {PHP.cfg.menu2} into the TPL. What I'd like to do is add the mini calendar onto this side bar, so I need {PLUGIN_CALENDAR} to get recognized as a tag within {PHP.cfg.menu2} , where I have my sidebar html. Does this make sense? |
urlkiller |
|
---|---|
from a systems point of view i guess not. you need to somehow piggyback the calendar to cfg.menu2 ....and since that uses the global tpl tags you could try to just add $cfg['menu2'] .= 'your calendar code but not the TAG!!' this need to be done with either as corehack or a small plugin. (or just add it into the calndar plugin)
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
Sean |
|
---|---|
Right. Well I think I'll just find a way to put {PLUGIN_CALENDAR} directly into the TPL, sounds like an easier solution. Thanks for the help though! |