I hope you follow! I have a file in the Includes folder, named 'ImageBar.ss'.
In ImageBar.ss I want to randomly include one of the following files, also in the Includes-folder:
I'm using the following code in ImageBar.ss:
<% if MenuTitle = Home %> <% include ImageBar_Home_$RandomNumber %> <% end_if %>
(the random number comes from a function in code/Page.php).
However, this doesn't work. All that I see on the website is just the following in plain text:
<% include ImageBar_Home_3 %>
(and the number changes on each reload, since it's random).
My question is, is it even possible to include an file from the Includes folder from within an included file itself??
I hope someone can help me!!