I am trying to create a template variable that allows the content administrator to select from 0 - N testimonials to appear in the sidebar on their site. What I am trying to figure out is how to take their input and have it display the testimonials in the correct fashion. Currently I am using @SELECT in the TV to display a Listbox (Multi-Select) of one of the fields from the database. The problem comes when trying to display the actual testimonial in the outputted page. Basically, I need to select all of the fields for those particular rows and format them by wrapping them in a number of HTML tags. Do I need to write a snippet to handle their display?
To give a bit more info, each testimonial would be formatted as follows (I am going to use PHP syntax here, but don’t think that will work outside of a snippet):
’<blockquote>’ . $row[’quote’] . ’</blockquote><p class="credit">’ . $row[’author’] . ’</p>’;
Thanks in advance for anyone who has some advice for a MODx newbie.
The site in questions is here:
http://animaleadership.com/
You can access the hidden pages here:
http://animaleadership.com/philosophy
Cheers!