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.
On various of my templates there is a sidebar (side column) which has two boxes, one for an image and one for a a mix of a heading, text and an image.
I want these boxes to be content managable so the user can edit them at any time.
What is the best approach for this?
Thanks
If you are using 452 you can use the macro container datatype and create a macro with that content then allow as property on the page macro container then write it out if field is present in the template.
Regards
Ismail
If you store this content in a parent node (maybe on it's own tab for clarity ) you can use the recursive function
EG
<h2><umbraco:Item field="sitewideSideHeadline" recursive="true" runat="server"/></h2><umbraco:Item field="sitewideSideParagraph" recursive="true" runat="server"/>
You can do a similar thing with XSLT.
John, thanks, the recursive function did the trick.
For info: my setup is like this:
Home> Info>> About us
and the site-wide content is in a tab under the Home page, so the recursive function goes back two levels. Nice!
Awesome, this helped me as well.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Site wide content
Hi.
On various of my templates there is a sidebar (side column) which has two boxes, one for an image and one for a a mix of a heading, text and an image.
I want these boxes to be content managable so the user can edit them at any time.
What is the best approach for this?
Thanks
If you are using 452 you can use the macro container datatype and create a macro with that content then allow as property on the page macro container then write it out if field is present in the template.
Regards
Ismail
If you store this content in a parent node (maybe on it's own tab for clarity ) you can use the recursive function
EG
<h2><umbraco:Item field="sitewideSideHeadline" recursive="true" runat="server"/></h2>
<umbraco:Item field="sitewideSideParagraph" recursive="true" runat="server"/>
You can do a similar thing with XSLT.
John, thanks, the recursive function did the trick.
For info: my setup is like this:
Home
> Info
>> About us
and the site-wide content is in a tab under the Home page, so the recursive function goes back two levels. Nice!
Awesome, this helped me as well.
is working on a reply...