I am new to Umbraco and running v4. I've created the main site and its templates and all was very quick and easy. However, there is one thing i cannot figure out.
What i've been asked to do is set up a library of content which using a contentpicker can be inserted into predefined spaces in the main pages that make up the site
For example there are two panes in the template that drives the home page, each one should be able to display any of the content pages listed under shared content. All I can seem to do is display the id of the shared content item rather than the content contained within it.
Any help anyone can give would be very much appreciated!
How do you render the pages? Are you using XSLT or Razor?
You need to fetch the id using an extension like umbraco.library:GetXmlById(propertyname) - but let us know how you render things before we go into solutions mode.
I'm quite new to this, i believe the code snippets i am inserting into my templates is xslt.
The subdocuments are based on templates of their own so that for example you can have a comment one that displays a speech bubble, the editor canuse these templates to create a new piece of content which can be reused on different pages throughout the site.
So for example the hom e page has a space where the editor can pick a subdocument to display in a certain pane, the code i currently have which dispalys the id only is <umbraco:Item field="topBox" stripParagraph="true" runat="server" />
I've been unable to find any detailed docuemtnation with which to solve this for myslef, i hope you can help.
Subdocuments
Hi
I am new to Umbraco and running v4. I've created the main site and its templates and all was very quick and easy. However, there is one thing i cannot figure out.
What i've been asked to do is set up a library of content which using a contentpicker can be inserted into predefined spaces in the main pages that make up the site
For example there are two panes in the template that drives the home page, each one should be able to display any of the content pages listed under shared content. All I can seem to do is display the id of the shared content item rather than the content contained within it.
Any help anyone can give would be very much appreciated!
Bon
Hi Bon and welcome to our :)
How do you render the pages? Are you using XSLT or Razor?
You need to fetch the id using an extension like umbraco.library:GetXmlById(propertyname) - but let us know how you render things before we go into solutions mode.
Looking forward to hearing from you.
/Jan
Hi Jan
I'm quite new to this, i believe the code snippets i am inserting into my templates is xslt.
The subdocuments are based on templates of their own so that for example you can have a comment one that displays a speech bubble, the editor canuse these templates to create a new piece of content which can be reused on different pages throughout the site.
So for example the hom e page has a space where the editor can pick a subdocument to display in a certain pane, the code i currently have which dispalys the id only is <umbraco:Item field="topBox" stripParagraph="true" runat="server" />
I've been unable to find any detailed docuemtnation with which to solve this for myslef, i hope you can help.
Bon
is working on a reply...