I'm trying to create a corporate meeting template form scratch but can't find a way to inject CurrentDate as pre-fix in the page title? Just like the Default Meeting Notes Template does.
/Ole Kristensen
Maybe this plugin will help. Haven't tried this out yet with current Confluence. I have used it with old version which worked nicely.
https://marketplace.atlassian.com/plugins/com.adaptavist.confluence.createpage#reviews
Hi Ole,
I have a user-macro to do something very similar to what you want to achieve:
## @param pageTitle:title=Page Title|type=string|desc=description|required=true #set($newTitle=$parampageTitle) $content.setTitle($newTitle)
On the Confluence page I have two text-data fields 'Field1' and 'Field2' and my user-macro 'settitle' that reads the content of these text-data fields and deliver their values to the user-macro. The user macro sets the page title:
{text-data:name=Field1|atlassian-macro-output-type=BLOCK|type=line}{text-data}
{text-data:name=Field1|atlassian-macro-output-type=BLOCK|type=line}{text-data}
{settitle:pageTitle=%data:MyDate% - %data:MyTitle%}
You need the CustomWare Scaffolding plug-in to do that.
I hope that'll be helpful for you!
Good luck!
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Just wondering how this could be done in latest Confluence ...
Looks cool and right that I need but I can't get user Macro digest Scaffolding data ...
It shows %data:MyField% in title instead of value
Thanks,
Areg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure if you're looking into doing this a Confluence Blue Print, but if you are, there is some details on dynamic page titles with them
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Colin, but I'm not a developer, so I was hoping for a Template solution. We have Scaffolding installed if that would be of any help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.