Issue Details (XML | Word | Printable)

Key: CONF-5608
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Paul Curren [Atlassian]
Reporter: Russell Warren
Votes: 12
Watchers: 9
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Confluence

Add default label(s) to template creation

Created: 01/Mar/06 11:05 AM   Updated: 10/Jul/07 06:05 PM
Component/s: Templates
Affects Version/s: 2.1.4
Fix Version/s: 2.6.0

Time Tracking:
Not Specified

Issue Links:
Reference
 

Participants: Andy Armstrong, David Peterson, Guy Fraser [Adaptavist.com], Paul Curren [Atlassian], Russell Warren and Walker Bolton
Since last comment: 1 year, 20 weeks, 5 days ago
Resolution Date: 26/Jun/07 01:38 AM
Labels:


 Description  « Hide
When creating a page template it would be great if you had the ability to add labels to the template. A simple text entry field called "Labels" in addition to "Name" and "Description" would be great, but obviously a previous-label-aware entry woudl be better.

When a page is created with the template, it should automatically have the labels attached. If you don't want the labels there, delete them after.

With the use of the {metadata} set of macros this would add a lot of power to Confluence since the {metadata-report} macro can aggregate metadata for pages with a given label. You could then create basic forms as templates, and users could then start mass creating forms (using the template) that will be collected without needing to have them know they need to also add a label.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guy Fraser [Adaptavist.com] added a comment - 01/Mar/06 11:45 AM
This would certainly be a dream feature.

I'm guessing that David Peterson's "Linking Plugin" [1] could be extended to provide this functionality and in addition we could have a seperate macro that could be placed in to templates (such as the "Scaffolding Plugin" [2]) so that when a template is used the page is given the label as you mentioned in your post to the list.

Adaptavist have a client who's going to need auto-labelled pages so we' be happy to contribute to the development

Guy
http://adaptavist.com



Guy Fraser [Adaptavist.com] added a comment - 01/Mar/06 11:57 AM
Here's Russell's email to the list:

To really support that functionality (with metadata-report in particular) it would be excellent if you could create page templates that automatically have a given label. This way you could make standardized entry forms that can be used in a single step (without users also needing to add a label). Auto-labelling when generating from a template would also just be generally useful.

Another option could be to have a macro like {setpagelabel:BogusLabel} that when executed adds the label to the page. You could just put this in the template and get the same result I'm after. Does such a macro exist? It seems reasonable that it might be possible as a user macro if I were to dig into what happens when you set a page label (or with a nice velocity one-liner if I could ever sort out the Confluence objects there), but if it is already done that would obviously save me some time.


Andy Armstrong added a comment - 01/Mar/06 01:35 PM
Consider this a strong vote for this feature too. There are so many examples where we have wanted exactly this. Currently we have to educate our users to set the right label, but that is (a) easy to forget and (b) a field hidden away at the bottom of the edit screen.

In some ways, I want to be able to create a page in Confluence and then declare it as a template. Then all of its labels etc would come along naturally. It would also allow templates to be versioned which would be a huge help. Really, any time you type text into Confluence it should be stored as content. That covers templates, layouts, macros, user profiles etc. Of course, this is a much bigger issue.


Russell Warren added a comment - 01/Mar/06 01:51 PM
> In some ways, I want to be able to create a page in Confluence and then declare it as a template

I second that - that would be great. "All it would take" is in locations where you can set up template, add an option for "use markup below" or "use markup from page name", where in the latter you can put a space:page reference from which to grab the markup at the time of requesting a template.

Added bonuses:

  • display the current markup from the page in the already-provided "large" text box (uneditable in this case)
  • have a "take me to this page, please" link so you can tweak the template

On the same subject - the dynamic sizing on the template editing textbox is brutal! It uses screen space very inefficiently and my markup wraps too easily. It should be widened. It is nowhere near as bad as the puny user macro textbox, though...

If searching for features in the Conlfuence JIRA weren't so time-consuming/painful I'd either vote for or add these... right now my laziness is taking over.

Russ


David Peterson added a comment - 01/Mar/06 07:01 PM
I'm not sure how the Linking plugin would feature here Guy. All it does currently is generate a URL to help skip the 'select template' section. So, adding labels would have to be added to Confluence proper for that to work...

And, slightly off-topic, I agree that it would be good to update the template editing UI so that it is pretty much the same as the 'Edit Page' UI, including the notation guide summary and Rich Editor (even though I don't actually use it myself). Same goes for personal profiles.


Andy Armstrong added a comment - 06/Apr/06 04:17 PM
I've reported the idea of storing page templates as actual templates as CONF-5877.

Paul Curren [Atlassian] added a comment - 18/Jun/07 08:12 PM
Making PageTemplate a subclass of the standard ContentEntityObject class leads into the path of an unresolved Hibernate defect -
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1134

I'm currently testing a work around using the 'where' attribute but I have concerns that this where clause won't be respected on cascaded delete. i.e. if you remove all templates for a space this could also lead to all ContentEntityObjects (Pages) for the space being deleted.

More details when I have them...


Paul Curren [Atlassian] added a comment - 26/Jun/07 01:38 AM
Modifying the inheritance hierarchy for PageTemplate was outside the scope for this fix. Instead the PageTemplate was extended to include a String of 'template labels'.

Walker Bolton added a comment - 10/Jul/07 07:30 AM
Paul,

When is this functionality going to find its' way into a public Confluence release? I'm really looking forward to having access to this.

Thanks!


Paul Curren [Atlassian] added a comment - 10/Jul/07 06:05 PM
Hi there.

This is implemented and will be part of 2.6. This is expected to be release within the next 6 weeks or so.

Cheers,

Paul C