Hi guys, I'm trying to write some script in Velocity that will automatically add section headings and a table of contents to a form. I want the user to be able to upload a list of section headings and the prettyName of the first field. I will then add an if statement in the standard loop through the properties so that in pseudo code: if(prop.prettyName == "firstfieldprettyname") then {Print Heading}. I am wondering if anyone has any elegant solutions to allowing administrators to upload the section headings and corresponding first properties. I don't understand how I would be able to reference the uploaded data from within the velocity script. I am a new to Xwiki and velocity so please be patient with me if the above didn't make much sense or wasn't clear enough. Many thanks in advance for your help, Brian
participants (1)
-
Brian Burns