I have a page which has several "Video" dataobjects related to it..
I can insert a list of video titles into the page by placing the following in the page template:
<% control Videos %> <p>$VideoTitle</p> <% end_control %>
However, I wish to insert the list using a shortcode, so that it is possible to position the list anywhere within the page content.
I have setup the shortcode, but the $VideoTitle variable does not appear to work within the shortcode template. Only the <p> tags are pulled in.
How can I get the $VideoTitle variable to work within the shortcode template?
(I have simplifed the HTML code for this example, I'm actually inserting a full video thumbnail, title etc, but that's not neccecary for the question).