Page 1 of 1

Adding pages

Posted: Wed Feb 20, 2008 1:54 pm
by baburch
I added a scriptlet under "manage content and layout" and wish to put a link to it in my footer. However, when I added the link, following the code used for other links, my new page does not display.

Is there any special code I need to put within the content of the scriptlet? As it is now, it just has the html that I wish to display.

Excuse the lack of knowledge... I am very new to this.

B

Posted: Wed Feb 20, 2008 9:42 pm
by AbleMods
Welcome to the community. We'll try to help as best we can.

Scriptlets are not actual pages, they are snippets of content. You "assign" these snippets to specific pages through your site.

When you are logged in as Admin, switch to the store side. You'll see at the bottom of every page a new dropdown. Change it to Edit Mode.

From there you'll start to make the connection. Each page is divided into "zones". The overall page layout is controlled by...layout. A couple of sidebars, headers, footers etc make up the rest of the page.

You assign those scriptlets you created to the respective section. So if your scriptlet was a footer scriptlet, you would see it available as a choice in the Footer section. Rinse and repeat for the other types.

To create new pages, outside of AC7, Able makes that easy too. Just copy the "webpage.aspx" file in the root of your site to a new file name. Now put a link somewhere in your site to that page. Click the link when you're logged in as admin, switch to Edit Mode and now you can establish the scriptlets for that new web page.

Posted: Mon Mar 24, 2008 11:51 pm
by m_plugables
If you do want to add a new page. The quick way to do this is just copy and paste any existing content page for this example make a copy of the ContactUs.aspx page and edit it. Now change the following information as per your requirements.

Code: Select all

<%@ Page Language="C#" MasterPageFile="~/Layouts/Scriptlet.master" Inherits="CommerceBuilder.Web.UI.AbleCommercePage" Title="your tittle" %>
<%@ Register Assembly="CommerceBuilder.Web" Namespace="CommerceBuilder.Web.UI.WebControls.WebParts" TagPrefix="cb" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="PageContent">
    <cb:ScriptletPart ID="YourPage" runat="server" Layout="Left Sidebar" Header="Standard Header" Sidebar="Our Departments" Content="YourContent Scriptlet" Footer="Standard Footer" Title="YourTitle" AllowClose="False" AllowMinimize="false" />
</asp:Content>
After that go to App_Data\Scriptlets\Default\Content and create a new htm file for example create Test.htm and provide your own contents which you want to be displayed in the new page contents.

After this just login to the site with admin account and go to store side. Browse the newly added page and then at the footer of the page you will see Mode Dropdown select edit from this it will bring the scriptlet options. from the content dropdown select your newly created test.htm file and save it. It will bring your newly added contents to your newly added page.