Page 1 of 1

Adding Pages - which Content?

Posted: Thu Jul 24, 2008 10:28 am
by Mike718NY
What is the approach to adding a page, like Help.aspx ?
Do I first copy another one and change contents?

I copied the Contact Us page. When I view in edit mode
it says

Content: Contact Us

for both:

~/ContactUs.aspx

~/Help.aspx

Do I make custom content pages for this? thanks

Re: Adding Pages - which Content?

Posted: Thu Jul 24, 2008 10:47 am
by mazhar
After making a copy of Contact Us page. You just change its title to the proper title. For example
in your case it may be Help Page. Now create a Help.htm scriptlet in App_Data\Scriptlets\Custom folder which will contain the contents for the Help page.
Now check the following part of the page

Code: Select all

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="PageContent">
    <cb:ScriptletPart ID="ContactUs" runat="server" Layout="Left Sidebar" Header="Standard Header" Sidebar="Our Departments" Content="Contact Us" Footer="Standard Footer" Title="Contact Us" AllowClose="False" AllowMinimize="false" />
</asp:Content>
It show the default settings for the page which are still for the contact us page because you made a duplicate of that. So change ID="ContactUs" to ID="Help" , change Content="Contact Us" to Content="Help"
That is it. Now your Help.aspx will be opened with its own default contents.

Re: Adding Pages - which Content?

Posted: Thu Jul 24, 2008 12:53 pm
by Mike718NY
Thanks Mazhar, ..

That worked, but it didn't use the same sidebar as the
one in the Contact Us page.
But they both have the same parameters:

Layout="Left Sidebar" Sidebar="Our Departments"

I can change it in Edit Page mode, but I'm confused on
where it is specified.

Re: Adding Pages - which Content?

Posted: Fri Jul 25, 2008 7:04 am
by mazhar
If you haven't modified the "Our Departments" then the both pages will use the sidebar form

Code: Select all

App_Data\Scriptlets\Default\Sidebar
but if you modified the "Our Departments" then they will use it from

Code: Select all

App_Data\Scriptlets\Custom\Sidebar