Trying to get a format to work
I am trying to turn on and off this image that shows up on my homepage slideshow. So I created a if statement when the user hits yes ($umsldailyYesN) you can add and image to it
but for some reason I cant get it to work right. It assumes it is turned on all the time. Could you take a look at it and see what you think?Thanks!
- velocity-format.txt 12 KB
- xml.xml 31.1 KB
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Bradley Wagner on 19 Aug, 2016 01:45 PM
Hi Fernando,
I noticed in your format that you're attempting to check this here:
I think what might be happening is that you're effectively checking the same
selectSingleNode
in every iteration of your loop. You need to scope your XPath there to either use your current slide as the context or to specifically access thatumsldaily1
node by name as you're doing above for this other field:Currently, you're checking the same value for the first slide over and over again.
Let me know if that makes sense.
Thanks!