RSS 2.0
Browse posts:
Unanswered |
Mark all read
| Author | Message |
|---|---|
|
Monkeybrain Nucleus PhD Joined: 15 Dec 2005 Posts: 525 Location: Kristiansand, Norway |
I'm sure this has been discussed before, but I can't find the thread. Could someone please explain why we can't use If statements in templates? _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. |
|
|
|
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
Looking at the code, it appears that someone has tried it before (the if variables are in the list of valid actions in item template fields but are commented). At quick glance, I think I can make it work, but I'm not sure and won't have time to give it a good look until February. Might also be able to get it working in the comments fields of the template, but I doubt I'll try in the other template fields. I'll put it on my todo list. _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
|
|
|
|
WillyP Nucleus Guru ![]() Joined: 30 Aug 2009 Posts: 770 Location: Pembroke, NH |
http://forum.nucleuscms.org/viewtopic.php?t=19497 I've tried to do this myself. I tried various plugins from the Japanese side and none worked, although perhaps I misread the translations of the instructions. There is also a link to Lord Matt's site where he explains that to do this all you need to do is un-comment the if's in whatever file it was in... that did not work either. Perhaps in an older version it did? |
|
|
|
|
ftruscot Nucleus Guru ![]() Joined: 22 Feb 2006 Posts: 7449 Location: Massachusetts |
It's a bit more than uncommenting those lines in ITEMACTIONS.php. There also needs to be a checkCondition() method in ITEMACTIONS.php and maybe some other methods. There's also likely to be some conditions that cannot be checked in a template. _________________ Is your question not solved yet? Search our FAQ, read the Documentation, or browse the list of available plugins. Check out my plugins |
|
|
|
|
|
|
|
All times are GMT + 1 Hour
You cannot post new topics in this forum |
|