Is there a way to include a simple replacement variable in a page template that can be passed into a page template on creation? For example, to put "dynamic" or context specific information onto the page?
What I ahve done is use he create-child macro to create a page into a hierarchical page structure, based on user entered firstname and lastname (for sake of discussion, the page is called "Doe, Jane")
... {run-now} {create-child:$paramlname, $paramfname|parent=$init|template=TAInformation} {run-now} ...
At the time I create the page, I also capture the user account name that the data entry person looks up for this person, which may not have anything to do with the person's name - Jane Doe might have the user name "Gandalf" or "TwilightFan". I'd like to have that account name written into the page when it is built from the TAInformation template, without the data entry person having to go through and open the page, edit the page, enter the account name again. So, data entry maestro enters "Jane", "Doe" and "TwilightFan" and a page called "Doe, Jane" is created (got that working, above!) and the "TwilightFan" is shoved onto the page, *WITHOUT* the data entry maestro visiting the page and typing it in the page directly. Does that make sense?
Ideally, if there were something like this syntax, it would be great, but I'm looking for any ideas...
{run-now} {create-child:$paramlname, $paramfname|parent=$init|template=TAInformation|data=acct:TwilightFan,dog:Spot} {run-now}
You used to be able to do this sort of thing in Confulence 4, but I don't think there is a solution for Conflucence 5: See: How do you add template variables as macro parameters or in plain text macro bodies?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.