[MAGNOLIA-4463] Add the old <cms:query> tag in Magnolia 4.5? Created: 29/Jun/12  Updated: 02/Jul/12  Resolved: 02/Jul/12

Status: Closed
Project: Magnolia
Component/s: templating
Affects Version/s: 4.5.3
Fix Version/s: None

Type: New Feature Priority: Neutral
Reporter: Edgar Vonk Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

As mentioned in SUPPORT-1448 we miss functionality that was present in the old Magnolia JSP taglib but no longer in the new 4.5 JSP API. One is the old <cms:query> tag. We use this extensively in our old JSPs. E.g.

<c:set var="query">//aankeilers//element(*,aankeiler)[@jcr:uuid = '${linkInternal}']</c:set>    
<cms:query query="${query}" nodeType="aankeiler" var="aankeilerList" repository="data" type="xpath" />
<cms:setNode var="aankeiler" contentNode="${aankeilerList[0]}" />	 

I admit it's not the best looking JSP code maybe but we are now mainly looking for the quickest way to migrate to 4.5. And since Philipp now told us that the JSPs compatibility taglibs will not be supported in the future we want to migrate this code too.

Is this functionality somewhere present in the 4.5 JSP API? If not, is it possible to add it or do you have another suggestion? I am guessing there are more people out there that use this tag quite a bit.

Of course we could move this stuff to JSP scriptlets (brr) or write our own JSP tag but but before we do I would to know what you suggest.

As Philipp also mentioned:

Many of the old tags can now be replaced by the more elegant functions and expression language. But we have to document each replacement. A matrix listing all tags is needed.

This would help us very much indeed.



 Comments   
Comment by Ondrej Chytil [ 02/Jul/12 ]

MAGNOLIA-4434 added to current changelog. I'm closing this ticket since it's duplicate of MAGNOLIA-4434.

Comment by Edgar Vonk [ 02/Jul/12 ]

Ah excuse me, my mistake! I lost track of my reported issues.

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