So I'm trying to do something along the lines of:
#set($paramversion = {include:globalpages:_TemplateVersionCurrent})
I want the contents of the page "_TemplateCurrentVersion" to be set as a variable so that I can use it throughout the macro.
I have tried merely using {include:globalpages:_TemplateVersionCurrent} in the places that I want it, which works to an extent, except that it also includes the <p> tags, which is no good if I am using it for a URL (as it returns "<p>v10</p>" rather than "v10"). This gets me http://mydomain.com/latesttemplates/<p>v10</p> instead of http://mydomain.com/latesttemplates/v10.
So I want to know if it's possible to strip the <p> tags out and store it is a variable.
Thanks