Custom Page Layout for a publishing site with contents
-
יום חמישי 02 אוגוסט 2012 06:19
Hello Everybody,
I have a requirement of creating a custom page layout for my SharePoint 2010 users. What they want is, when they apply a page layout, they want the page to be filled with certain text in the rich content area. Some sort of template as they mentioned. After applying the the page with the layout, they will add additional contents to the page.
I don't know such a requirement can be achieved without writing C# code.
Please help
Arun D Gangadharan
כל התגובות
-
יום שישי 03 אוגוסט 2012 10:04מנחה דיון
Hi ,
I understand that you want to have a custom page layout with certain text in the rich content area .Here is a workaround you can refer to :
- Open the root site in SharePoint Designer .Choose Page Layouts folder .
- Make a copy of the page layout you want to use .Paste and Rename the page layout(I modify the PageFromDocLayout page layout).
- Check out the page layout and modify in Advanced Mode .
- Open the page layout code view .Find the div<div>
- Add the content you want to exists on the page under this div before the <PublishingWebControls:RichHtmlField…..>
Thanks,
Entan Ming
Entan Ming
TechNet Community Support
-
יום שישי 03 אוגוסט 2012 13:42
Hi Enthan,
Thanks for the reply. But I am looking for a way to have a some text within rich content area itself, not outside of it.
Here is my expected flow.
- User creates a new wiki page with the custom layout
- Page gets created with some text inside the content area
- User edits page and adds some more text to the existing text inside content area
- user saves the page and publish it
Any idea?
Thank you,
Arun
Arun D Gangadharan
-
יום שני 06 אוגוסט 2012 09:39מנחה דיון
Hi ,
Here is an update. You can change step4 and step5 in the above post like this :
You can select the PublishingWebControls:RichHtmlField in the Design View ,Right click on this control and choose Properties. There is a Text property .You can specify the default content here for the rich content area.
Thanks,
Entan Ming
Entan Ming
TechNet Community Support
- סומן כתשובה על-ידי Arun D Gangadharan יום שלישי 07 אוגוסט 2012 05:58
-
יום שלישי 07 אוגוסט 2012 06:12
Hi Entan,
Worked!!!
That was perfect.
Thank you very much Entan
Arun D Gangadharan