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
Hi guys,
I need some help setting up Embedded Content, and pulling out the data.
I have installed the package, created the datatype "embedContent" and made a tab on my gallery page where I can add the items such as
Header(alias: embedHeader)Description(alias: embedDescription)Image Preview(alias: embedPreview)Link(alias: embedLink)
and added a test item on the gallery-tab I made.
My Xslt validates..
<xsl:template match="/"> <ul> <xsl:for-each select="$currentPage/data/item"> <li> <xsl:value-of select="embedHeader" /> <xsl:value-of select="embedDescription" /> </li> </xsl:for-each> </ul> </xsl:template>
and here is the macro I added on in the Gallery template:
<umbraco:Macro Alias="contentList" runat="server" />
What am I missing here? Parameters in the Macro?
Kind Regards, Djan
http://djan.se
Hi Djan,
I think you are just missing the alias of your document type property that uses your embedded content data type.
<xsl:for-eachselect="$currentPage/propertyAlias/data/item">
Regards,
Jeavon
Hi Jeavon, Thanks for answering!
I tried a number of different alias', but nomatter what, I get no output on my page ?
From DocumentType Generic Properties:
Tab: Embedded Content Name: webPortfolio (alias: webPortfolio)Type: Embed Content
##################################
My Macro:
<umbraco:Macro Alias="WebPortfolio"runat="server"/>
And my current XSLT:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library"xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes"xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath"xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions"xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings"xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"xmlns:tagsLib="urn:tagsLib"xmlns:BlogLibrary="urn:BlogLibrary" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets tagsLib BlogLibrary "><xsl:outputmethod="xml"omit-xml-declaration="yes"/><xsl:paramname="webPortfolio"select="/macro/Field"/><xsl:paramname="currentPage"/><xsl:templatematch="/"> <ul> <xsl:for-eachselect="$currentPage/webPortfolio/data/item"> <li> <xsl:value-ofselect="embedHeader"/> <xsl:value-ofselect="embedDescription"/> </li> </xsl:for-each> </ul> </xsl:template></xsl:stylesheet>
and my Tab with added Testcontent :http://oi46.tinypic.com/10fw4yo.jpg
And yet, still no Output at : http://djan.se/webportfolio.aspx
Have I got the Alias wrong, or what am I doing..? =)
/Djan
* macro is with 'w' <umbraco:Macro Alias="webPortfolio"runat="server"/>
And I made it work - thanks Jeavon. =)
Oh great! Glad you got it going!
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
Embedded content start help
Hi guys,
I need some help setting up Embedded Content, and pulling out the data.
I have installed the package, created the datatype "embedContent" and made a tab on my gallery page where I can add the items such as
Header(alias: embedHeader)
Description(alias: embedDescription)
Image Preview(alias: embedPreview)
Link(alias: embedLink)
and added a test item on the gallery-tab I made.
My Xslt validates..
and here is the macro I added on in the Gallery template:
What am I missing here? Parameters in the Macro?
Kind Regards, Djan
http://djan.se
Hi Djan,
I think you are just missing the alias of your document type property that uses your embedded content data type.
Regards,
Jeavon
Hi Jeavon, Thanks for answering!
I tried a number of different alias', but nomatter what, I get no output on my page ?
From DocumentType Generic Properties:
Tab: Embedded Content
Name: webPortfolio (alias: webPortfolio)
Type: Embed Content
##################################
My Macro:
And my current XSLT:
and my Tab with added Testcontent :
http://oi46.tinypic.com/10fw4yo.jpg
And yet, still no Output at : http://djan.se/webportfolio.aspx
Have I got the Alias wrong, or what am I doing..? =)
/Djan
And I made it work - thanks Jeavon. =)
Oh great! Glad you got it going!
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.