[MAGNOLIA-59] cmsu:fileSrc doesn't check node Created: 14/Aug/04  Updated: 02/Sep/04  Resolved: 02/Sep/04

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

Type: Bug Priority: Major
Reporter: Boris Kraft Assignee: Vinzenz Wyser
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 was trying to output the contents of my node.
I've done the following:

<cms:set contentNode="<%=myNode%>"/> - set my node to
GlobalContentNode
<cms:includeTemplate path="/template.jsp"/> - output my node
with template

Bingo! it worked! I see my only node contents on the screen!
But the strange thing - The image is wrong! (The image is from the
other paragraph)

What's happening?
I opened the template.jsp and came across cmsu:fileSrc tag. - it
creates the path for the image, and it doesn't check which node is
currently "set" and the attribute contentNodeName also dump my
page to blank.

I had to create additional method in my template that checks if the
only one node should be printed and makes the proper path to the
image. Now it's working ok

So, I'd like to know why the attributes mentioned above cause the
page crash?



 Comments   
Comment by Vinzenz Wyser [ 02/Sep/04 ]

<cmsu:fileSrc ...> is deprecated and therefore not fixed anymore.
now use <cms:out nodeDataName="..." fileProperty="...">

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