[MAGNOLIA-476] paragraph bar shows name of a paragraph Created: 15/Jul/05  Updated: 23/Jan/13  Resolved: 01/Dec/05

Status: Closed
Project: Magnolia
Component/s: admininterface
Affects Version/s: 2.1 Final
Fix Version/s: None

Type: New Feature Priority: Trivial
Reporter: Stojan Peshov Assignee: Philipp Bärfuss
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

not relevant


Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

It would be nice if every paragraph bar displays name of the current paragraph
right next to edit and move buttons

I've done it in a very simple way, just added
b.setLabel(MessagesManager.getMessages(getRequest()).get("buttons.edit")+" "+paragraph);

in the
setButtonEdit(String path, String nodeCollectionName, String nodeName, String paragraph)
method from BarEdit.java

this adds a paragraph type name as an Edit label

it would be nicer if paragraph name is displayed on the bar, not in buttons...



 Comments   
Comment by Boris Kraft [ 01/Dec/05 ]

What do you think? I think while its easy to do, the benefit is questionable. After all, one has the visual representation of the paragraph. Maybe for someone who has many paragraphs that are similar? For me, this is not important.

Comment by Philipp Bracher [ 01/Dec/05 ]

In the most of the cases this only desturbes the user I think

Comment by Andreas Brenk [ 01/Dec/05 ]

We just had to modify all paragraph dialog definitions in one of our projects to show the name of the paragraph. Users wanted to be able to open the paragraph at a later time and see what type of paragraph was used for it.

So, I'm in favour of somehow adding a function like this. It could be an optional property of the cms:editBar tag.

Comment by Boris Kraft [ 01/Dec/05 ]

I agree that hte dialog could show that information, but not the edit bar - would you want to send a patch?

Comment by Stojan Peshov [ 02/Dec/05 ]

It's been a while since I posted this issue.
I don't use the above solution anymore,
this seems as an alternative and doesn't need an magnolia-core intervention:

<jsp:scriptlet>
Content activePage = info.magnolia.cms.util.Resource.getLocalContentNode(request);
info.magnolia.cms.core.NodeData paragraph = activePage.getNodeData("paragraph");
pageContext.setAttribute("parName", paragraph.getString());
</jsp:scriptlet>

<cms:adminOnly>
<cms:editBar editLabel="Edit: ${parName}"/>
</cms:adminOnly>

Anyway, the idea about dialog containing the paragraph's name is the best I think.
I don't have a patch for that ...
Sorry

Generated at Mon Feb 12 03:17:48 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.