Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to get the related links data type work with the new version of courier.
I am assuming that I need to use the new xPath in the courier.config file. I currently have this in my courier.config and it is not working:
<dataType alias="relatedLinks" xPath="/links//*/@link">4848424b-ec2c-45f7-a9aa-712bc703b75e</dataType>
The XML for the node looks like this:
<node id="4760" version="2b7608c1-04d4-4ea8-b583-4716f93147fc" parentID="4730" level="4" writerID="0" creatorID="0" nodeType="1100" template="0" sortOrder="2" createDate="2010-05-27T12:15:45" updateDate="2010-07-29T14:50:04" nodeName="Test Component" urlName="test-component" writerName="Administrator" creatorName="Administrator" nodeTypeAlias="offerComponent" path="-1,1054,1078,4730,4760">
<data alias="links">
<links>
<link title="test" link="4849" type="internal" newwindow="0" />
</links>
</data>
</node>
Has anyone got this working, my intuition tells me that my xPath is not correct.
Has anyone got related links to work with courier?
Having a play around with it, my xPath needed to be: "/links/*/@link"
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Courier and related links
I am trying to get the related links data type work with the new version of courier.
I am assuming that I need to use the new xPath in the courier.config file. I currently have this in my courier.config and it is not working:
<dataType alias="relatedLinks" xPath="/links//*/@link">4848424b-ec2c-45f7-a9aa-712bc703b75e</dataType>
The XML for the node looks like this:
<node id="4760" version="2b7608c1-04d4-4ea8-b583-4716f93147fc" parentID="4730" level="4" writerID="0" creatorID="0" nodeType="1100" template="0" sortOrder="2" createDate="2010-05-27T12:15:45" updateDate="2010-07-29T14:50:04" nodeName="Test Component" urlName="test-component" writerName="Administrator" creatorName="Administrator" nodeTypeAlias="offerComponent" path="-1,1054,1078,4730,4760">
<data alias="links">
<links>
<link title="test" link="4849" type="internal" newwindow="0" />
</links>
</data>
</node>
Has anyone got this working, my intuition tells me that my xPath is not correct.
Has anyone got related links to work with courier?
Having a play around with it, my xPath needed to be: "/links/*/@link"
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.