I m placing header content of master template say(masterA) in the tab which has richtext property. so that user can edit it..
Then added child template to masterA template. but i cant retrieve the header content in child actress.. its inheriting only richtext tab property .. let me know how to go about
I'm not quite sure how you're doing things now...but what you should do is..
Create a Master template where you place your general HTML markup and macroes, which should be used on all pages. In here you should place some placeholders for the content that should be displayed from the child templates.
Then under your master template create a Document/Textpage template where you have a macro that fetches the content from the rich text editor or simply just use umbraco:Item directly on the template to fetch this content.
So in your "Template" folder under "Settings" the structure should be like this...
Master template - Textpage template
On your textpage document type, make sure that it has been set to use the "Textpage" template.
thanks for the reply.. Sorry i m not clear in stating my doubts... I did above said things .. but i need to edit some text in header section of master template. so for that i added a tab called Master Content which has a property of rich text editor in the Master template. so when the user needs to edit the text in Header section of master template .. he has to edit the Master content tab of master page and all child pages inheriting it.. ...
so let me know how to do editable master template section like Header image and header content in master template which will be same for all child pages.
If I unserstand you correctly you want one Rich Text Editor which your user can edit and the text from this Rich Text Editor to appear on all pages of your site regardless of which page you're on?
If so then just put some code like this is your template
Using "recursive=true" means that umbraco will look as far up your content tree as it needs to until it finds a value for the 'yourRichTextEditor' field (replace this with the actual property name of your field).
Thanks for the reply.. this is wat i looking for.. for text rich text editor can be used.. but when user needs to change the header image .. can we use rich text editor or is there any other property left in umbraco...
For an image I would not use the rich text editor, I would either use an 'Media Picker' (this selects media from the media area) or the 'Upload' control (this just allows the editor to upload an image directly).
I didn't get u.. my header has two images and text .. so for that i need to create three tab ..two media picker and one richtext .. i think there will be easier way??
Each tab can have more than one property, so in this case you can have a "Homepage Settings" tab and on this have 3 properties "Image1" "Image2" and "SomeText"
But after doing this, header alignment gets disturbed. not getting proper output.. am i doing anything wrong above... how to make editable header images without changing the alignment..
I need to edit the Bolded thing .. for that i need to create a TAB with four properties .. if place all the four properties in a single content place holder ..
my css class applied on div gets disturbed and alignment was not proper in the output.. how to apply these things with one place holder.. am i clear
master and child template
Hi
I m placing header content of master template say(masterA) in the tab which has richtext property. so that user can edit it..
Then added child template to masterA template. but i cant retrieve the header content in child actress.. its inheriting only richtext tab property .. let me know how to go about
Hi Dwarakesh
I'm not quite sure how you're doing things now...but what you should do is..
Create a Master template where you place your general HTML markup and macroes, which should be used on all pages. In here you should place some placeholders for the content that should be displayed from the child templates.
Then under your master template create a Document/Textpage template where you have a macro that fetches the content from the rich text editor or simply just use umbraco:Item directly on the template to fetch this content.
So in your "Template" folder under "Settings" the structure should be like this...
Master template
- Textpage template
On your textpage document type, make sure that it has been set to use the "Textpage" template.
I hope this makes sense.
/Jan
Hi jan,
thanks for the reply.. Sorry i m not clear in stating my doubts... I did above said things .. but i need to edit some text in header section of master template. so for that i added a tab called Master Content which has a property of rich text editor in the Master template. so when the user needs to edit the text in Header section of master template .. he has to edit the Master content tab of master page and all child pages inheriting it.. ...
so let me know how to do editable master template section like Header image and header content in master template which will be same for all child pages.
Hey,
If I unserstand you correctly you want one Rich Text Editor which your user can edit and the text from this Rich Text Editor to appear on all pages of your site regardless of which page you're on?
If so then just put some code like this is your template
<umbraco:Item field="yourRichTextEditor" recursive="true" runat="server"/>
Using "recursive=true" means that umbraco will look as far up your content tree as it needs to until it finds a value for the 'yourRichTextEditor' field (replace this with the actual property name of your field).
Rich
Hi rich,
Thanks for the reply.. this is wat i looking for.. for text rich text editor can be used.. but when user needs to change the header image .. can we use rich text editor or is there any other property left in umbraco...
Hi,
For an image I would not use the rich text editor, I would either use an 'Media Picker' (this selects media from the media area) or the 'Upload' control (this just allows the editor to upload an image directly).
Rich
Hi
is there any property to edit both image and text in a single property tab..
In a single Tab yes, but not as one property within a DocType.
There is no problem with having a separate property for the text and one for the image right?
Rich
Hi
I didn't get u.. my header has two images and text .. so for that i need to create three tab ..two media picker and one richtext .. i think there will be easier way??
Hi,
When you use the word "Tab" what do you mean?
Each tab can have more than one property, so in this case you can have a "Homepage Settings" tab and on this have 3 properties "Image1" "Image2" and "SomeText"
Is this what you mean?
Rich
Hi
s.. thats wat i needed.. if i added properties in single tab (MYTAB). and refering them as
<umbraco:Item field="MYTAB" recursive="true" runat="server"/> in master template.. alignment gets disturbed..
so how to get this done with proper alignment that is with Css
sorrry if i m not clear..
Hi,
You just create a new tab and then in the drop down select the same tab for each property.
]
Rich
Hi
In header section of Master Template i have three images
like this
<ul>
<li><a href="#"><p><img src="/media/Home_icon.jpg" alt="" border="0" /></p></a></li>
<li><p><img src="/media/icon_seperator.jpg" alt="" /></p></li>
<li><p><a href="#"><img src="/media/network_icon.jpg" alt="" border="0" /></p></a></li>
</ul>
i have to give provision for the user to change the images .. so i did like this adding three properties for changing the three header images .
In master template
<ul>
<li><a href="#"><p>
<------ For Header left image ------------>
<asp:ContentPlaceHolder Id="headerleft" runat="server">
</asp:ContentPlaceHolder>
</p></a></li>
<li><p>
<------ For Header center image ------------>
<asp:ContentPlaceHolder Id="headermiddle" runat="server">
</asp:ContentPlaceHolder>
</p></li>
<li><p>
<------ For Header rightimage ------------>
<asp:ContentPlaceHolder Id="headermiddle" runat="server">
</asp:ContentPlaceHolder>
</p></a></li>
</ul>
in child template i used that three content place holder with three Item field.
<asp:Content ContentPlaceHolderId="headerleft" runat="server">
<umbraco:Item field="headerleft" runat="server"></umbraco:Item>
</asp:Content>
<asp:ContentPlaceHolder Id="headermiddle" runat="server">
<umbraco:Item field="headerleft" runat="server"></umbraco:Item>
</asp:ContentPlaceHolder>
<asp:ContentPlaceHolder Id="headermiddle" runat="server">
<umbraco:Item field="headerleft" runat="server"></umbraco:Item>
</asp:ContentPlaceHolder>
---------------------------------------
But after doing this, header alignment gets disturbed. not getting proper output.. am i doing anything wrong above... how to make editable header images without changing the alignment..
If this shows on every page then just put everything in your Master template (and not in the child templates)
If not then you don't need 3 ContentPlaceHolders you can just use 1.
Alternatively I can see errors in your code above,
<------ For Header rightimage ------------>
<asp:ContentPlaceHolder Id="headermiddle" runat="server"> <!--this needs to be headerright ???-->
</asp:ContentPlaceHolder>
This bit also looks wrong
<asp:ContentPlaceHolder Id="headermiddle" runat="server"> <!-- should be headeright?-->
<umbraco:Item field="headerleft" runat="server"></umbraco:Item><!--should be the header right property field-->
</asp:ContentPlaceHolder>
Rich
I m haaving header section of master template which shows on every page
<!--Header Starts Here-->
<div id="Header">
<div class="canvas">
<div class="Header_content">
<div class="Logo">
<img src="images/cereus_logo.jpg" alt="" />
</div>
<div class="member">
<div class="member_content">Vacatures bij de</div>
</div>
<div class="Header_right">
<div class="Quick_link">
<ul>
<li><a href="#"><p>
<img src="images/Home_icon.jpg" alt="" border="0" />
</p></a></li>
<li><p>
<img src="images/icon_seperator.jpg" alt="" />
</p></li>
<li><p><a href="#">
<img src="images/network_icon.jpg" alt="" border="0" />
</a></p></li>
</ul>
<div class="clear"></div>
</div>
</div>
<div class="clear"> </div>
</div>
</div>
</div>
<!--End of Header -->
I need to edit the Bolded thing .. for that i need to create a TAB with four properties .. if place all the four properties in a single content place holder ..
my css class applied on div gets disturbed and alignment was not proper in the output.. how to apply these things with one place holder.. am i clear
is working on a reply...