Content Picker Options
whogoeson
Posted: Tuesday, September 26, 2006 10:59:35 AM
Rank: Devotee

Joined: 8/10/2006
Posts: 46
Hi

Trying to use the Content Picker, to show a sub page on the front page, but it just comes up with at number (1277). Is there any way to solve this?

Found this looking in the Yahoo forum:
Code:

<xsl:if test="./data[@alias='menu_Products']!=''">
<xsl:value-of select="umbraco.library:NiceUrl(./data
[@alias='menu_Products'])" />
</xsl:if>


http://tech.groups.yahoo.com/group/umbraco/message/3034
">http://
http://tech.groups.yahoo.com/group/umbraco/message/3034


But I can't get it to work.

The page that I am trying to show has a header and a list of sub pages.
I some how managed to show the header, using this code - but the list of sub pages doesn’t show

Code:

<xsl:value-of select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Dates'])/data "/> 
whogoeson
Posted: Wednesday, September 27, 2006 9:24:13 AM
Rank: Devotee

Joined: 8/10/2006
Posts: 46
Am I really the only one, that can’t get the Content Picker to show anything other then a number?

/ Kristjan
pph
Posted: Wednesday, September 27, 2006 10:12:21 AM
Rank: Aficionado

Joined: 7/19/2006
Posts: 148
Location: aalleren, Denmark
It isn't suppose to return anyhting but a number - which is a node-id - which you can use in your xslt with umbraco.library:getXmlNode(ID) to get all the content in the node.

Umbracian Personal blog: Objects.dk
whogoeson
Posted: Wednesday, September 27, 2006 2:09:50 PM
Rank: Devotee

Joined: 8/10/2006
Posts: 46
OK, thanks for that info.

I now get some information from the Content Picker, but I am still missing the subpages.

Let me set up the scenario..

Frontpage
- Page1
- Page2
- Page3 (hide from navi)
o Page3.1
o Page3.2
o Page3.3

Page 3 has the following code, that’s lists the subpages.

Code:

<xsl:for-each select="$currentPage/ancestor-or-self::node [@level=$level]/node [string(data [@alias='umbracoNaviHide']) != '1']">
    » <xsl:value-of select="@nodeName"/>


And that works fine.

Now I would like to get this information on the Frontpage
I set up a content picker and select Page3 – this shows a number..

I then use this xslt

Code:

<xsl:value-of select="umbraco.library:GetXmlNodeById($currentPage/data [@alias = 'Dates'])/data "/>


This only returns the text from the Richtext editor and not the list of subpages from Page3

How can I get the subpages to be listed on the Frontpage?

/ Kristjan
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.