URL for new page created

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
aaronfrankel
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Wed May 07, 2008 1:44 pm
Location: Houston, TX
Contact:

URL for new page created

Post by aaronfrankel » Wed May 07, 2008 6:53 pm

How do I figure out what the URL for a new page created would be. I created Scriptlet for "Store Locations" and need to add a link next to the contact us link. Adding the link was easy enough. However, I have no idea what the URL should be to link to it.

User avatar
m_plugables
Commander (CMDR)
Commander (CMDR)
Posts: 149
Joined: Tue Mar 11, 2008 12:44 am
Contact:

Re: URL for new page created

Post by m_plugables » Thu May 08, 2008 2:34 am

You can give URL for you newly created page like the following.

Code: Select all

~/ [Folder] / [Page Name .aspx]
For example the URL for ContactUs.aspx page in the root directory will be

Code: Select all

~/ContactUs.aspx
Image
Visit the links below to Download Plugins for your AC7 Store
http://www.plugables.com
http://blog.plugables.com

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: URL for new page created

Post by Naveed » Thu May 08, 2008 2:36 am

aaronfrankel wrote:How do I figure out what the URL for a new page created would be. I created Scriptlet for "Store Locations" and need to add a link next to the contact us link. Adding the link was easy enough. However, I have no idea what the URL should be to link to it.
Go to Admin -> Catalog -> Browse and add a new Webpage. Now browse the webpage in store. If you are logged in as an admin user then You can use the Edit mode to set the content of that page as the newly created scriptlet.

Add the link/url of newly created webpage in your header (next to contact us link).

aaronfrankel
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Wed May 07, 2008 1:44 pm
Location: Houston, TX
Contact:

Re: URL for new page created

Post by aaronfrankel » Thu May 08, 2008 11:54 am

Naveed wrote:
aaronfrankel wrote:How do I figure out what the URL for a new page created would be. I created Scriptlet for "Store Locations" and need to add a link next to the contact us link. Adding the link was easy enough. However, I have no idea what the URL should be to link to it.
Go to Admin -> Catalog -> Browse and add a new Webpage. Now browse the webpage in store. If you are logged in as an admin user then You can use the Edit mode to set the content of that page as the newly created scriptlet.

Add the link/url of newly created webpage in your header (next to contact us link).
????? There is no "Webpage" under browse catalog. Only Category.

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: URL for new page created

Post by Naveed » Thu May 08, 2008 12:04 pm

Yes, at the root of catalog you cannot add other catalog Items, but can just add categories. However under any category you can add a Webpage, Link or Product as well.

aaronfrankel
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 47
Joined: Wed May 07, 2008 1:44 pm
Location: Houston, TX
Contact:

Re: URL for new page created

Post by aaronfrankel » Mon May 12, 2008 1:33 pm

What I was trying to do was create a static page like Contact Us. I ended up figure it out on my own after playing with an existing static page for a few minutes. Here are the steps for anyone else trying to do something similar.
• Creating a new static document.
1) Create new scriptlet from "Administration / Web Site / Content and Layout. Choose Type / Content then name as desired.
2) Fill the description field. Fill out header field if nessessary. Add the content you want to appear in this new page to the Content field.
2) Now, go into the site's files. Duplicate an existing static page like ContactUs.aspx
3) Rename page desired file name
4) Open the document and replace the follow tags ID, Content, (both tags) Title. Change the ID and Content tag to match what you named the new scriptlet.
5) Navigate to the newly created page and ensure that the content you want is showing up and that the title is correct. If either are off, go back, open the file, and ensure that you have properly filled out the tags from step 4.

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: URL for new page created

Post by AbleMods » Mon May 12, 2008 3:58 pm

There is an empty web page file provided for just such occasions. It's located in the root of your store site and is called ~/Webpage.aspx.

Just copy the page to a new name, link to the new name in your site and then browse to it logged in as Admin. You can then set the scriptlet sections as needed to reference the content, layout, header, footer scriptlets you want to use.
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

Post Reply