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
Adding pages
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.
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.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- m_plugables
- Commander (CMDR)
- Posts: 149
- Joined: Tue Mar 11, 2008 12:44 am
- Contact:
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.
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.
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 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.