[MAGNOLIA-58] contentNodeCollectionName not working Created: 14/Aug/04  Updated: 07/May/05  Resolved: 07/May/05

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 1.1
Fix Version/s: 2.1 Final

Type: Bug Priority: Major
Reporter: Boris Kraft Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

I faced a strange bug (or maybe I just can't understand the way it
works) while I was operating with <cms:editBar> and <cmsu:
fileSrc tags>

I've got a ContentNode object on my page. (It contents a node
form the collection)
I want to display a editBar for this node and the contents of the
node (just output the single node from a collection)

First I thought to use the ContentNodeIterator and check there the
Name property in each node to filter "My" node, but I think it's not
really optimal way (it takes time and not very cute)

So I tried to get the editBar this way:
<cms:editBar contentNodeName="<%=myNode.getName()%>"
contentNodeCollectionName="some_name" parFile="/para.xml" />

It crashed (I saw lovely blank page) - I think the reason was in
contentNodeCollectionName attribute,
so I tried without it, and the page was shown, but with no editbar -
I saw the ugly green column (the whole column where I was
supposed to show my paragraph became green)

I watched API for Edit and Editbutton classes: the
setContainerName(java.lang.String name) method is Deprecated.

  • Does it mean that I can't use the contentNodeCollectionName
    attribute?


 Comments   
Comment by Boris Kraft [ 14/Aug/04 ]

in the meantime use the deprecated (but right now still working)
attribute containerListName:
<cms:editBar containerListName="mainCol" contentNodeName="0"
parFile="whatever.xml"/>

Comment by Fabrizio Giustina [ 07/May/05 ]

already fixed in svn trunk

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