Adding Pages - which Content?

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Adding Pages - which Content?

Post by Mike718NY » Thu Jul 24, 2008 10:28 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Adding Pages - which Content?

Post by mazhar » Thu Jul 24, 2008 10:47 am

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.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Adding Pages - which Content?

Post by Mike718NY » Thu Jul 24, 2008 12:53 pm

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Adding Pages - which Content?

Post by mazhar » Fri Jul 25, 2008 7:04 am

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

Post Reply