Hi Folks,
Been playing round with MODX for the last week. Absolutely loving it. I really have to thank Mary from The Coding Pad for doing such great job on her tutorials for us beginners. THANK YOU MARY
I have a question and I really dont know where to start.
Brief:
I have created a TV for the admin user where he/she will be able to select either Yes or No. Here I am using radio buttons.
The outcome will either be:
< span class = " yes " > YES < / span >
or
< span class = " no " > NO < / span >
on the website. Just to let you know I have css images applied to these tags. Yes will have a Tick icon and the No will have a Cross icon.
I really hope this all makes sense.
So there question is 'How do I do this?'
Does it involve snippets? To be honest I wouldnt know where to start.
upiorz thank you for your reply. I should have mentioned in my previous post that I have been through the wiki tv docs. Unfortunately as I said I dont know where to start. Is there a name for this function? Thanks in advance
Hi Upiorz,
Thanks once again for getting back to me. very much appreciated. Maybe I havent quite explained what I am trying to achieve.
Hopefully this is better explanation:
From within the CMS, the user will have an option:
Does the car have warranty? Yes or NO
Using Radio buttons for the input and text for the output, The website will appear like:
Car: Ford
Color: Red
Warranty: Yes
Price: £4,000
Now instead of having text (Yes/No) next to warranty, how can I replace it with an icon (tick/cross).
I would ideally like to have it like this (source code):
<li>Color: Red</li>
<li>Warranty: <span class="tick">Yes</span></li>
So I guess I am wondering how do I insert this span tag? Of course the span will change to span class="cross">NO</span> if the admin user selects NO in the radio options.