Modifying page of single category

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
User avatar
igavemybest
Captain (CAPT)
Captain (CAPT)
Posts: 388
Joined: Sun Apr 06, 2008 5:47 pm

Modifying page of single category

Post by igavemybest » Tue Aug 10, 2010 10:27 pm

So I am adding some content to a single category page, and it displays on every category page. For example, on the main page in AbleCommerce you click on a category, I go down to the bottom, and click "Edit View" change the code, and what I add now appears on all of the man category pages. How do I add it only to 1 of the categories?

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

Re: Modifying page of single category

Post by mazhar » Wed Aug 11, 2010 5:51 am

yeah its because you are putting contents into default content scriptlet. In order to create content specific to a single page. Go to Administration > Website > Content and Layout and then locate the current template that you were trying to edit. For example let's say if it is Category Grid Page. You will see some options against the template name use the copy option to create a duplicate. Edit the newly duplicated template and then adjust its name and contents accordingly. Then from store side edit desired category from bottom and in content scriptlet section choose newly created template. save it and you are done.

LCE2010
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Thu Mar 25, 2010 2:26 pm

Re: Modifying page of single category

Post by LCE2010 » Tue Aug 17, 2010 2:09 pm

I duplicated the Category Grid Page and called it Category Certificate Page

Then I changed the content of the new copy to read as [[ConLib:CategoryGridPageCert]]

Then I created copies of the ConLib/CategoryGridPage.ascx and .ascx.cs files and called them CategoryGridPageCert.ascx and ascx.cs

I added some HTML to those files,

I navigated to the existing category page and clicked edit, I changed the content drop down to my new Category Certificate Page scriptlet which references the CategoryGridPageCert files int he ConLib.

it changes and displays my HTML.

The problem is that it automatically changes all my other categories to the same page. I thought by creating the copies I could have a custom category page for one category, what am I missing or doing wrong?

Thanks in advance!

LCE2010
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Thu Mar 25, 2010 2:26 pm

Re: Modifying page of single category

Post by LCE2010 » Mon Aug 23, 2010 8:14 am

Any suggestions of where I might have went wrong?

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

Re: Modifying page of single category

Post by mazhar » Tue Aug 24, 2010 12:39 am

As I suggested earlier create HTML scriptlet only. In order to do this go to Website > Content and Layout. Then use add option to create one more scriptlet and choose its type as content. Finally from retail side edit repective category page and then from bottom choose newly created HTML file as content.

LCE2010
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Thu Mar 25, 2010 2:26 pm

Re: Modifying page of single category

Post by LCE2010 » Tue Aug 24, 2010 8:24 am

The same thing occurs, what you just suggested is not the same as what you said before. Before you said to copy an existing content scriptlet, then you said create a new one. Either way, when I do that and change the page content to use either scriptlet, it changes ALL categories not just the one.

When I go to a different category page and click edit, it shows that content page as being the exact same new page i created, why does it change them all to the new page instead of keeping the default Category Grid Page and just the one I edit to the new one change to that one?

LCE2010
Ensign (ENS)
Ensign (ENS)
Posts: 11
Joined: Thu Mar 25, 2010 2:26 pm

Re: Modifying page of single category

Post by LCE2010 » Tue Aug 24, 2010 8:53 am

Anyone trying to do this will need to reference this post as well and create a new category.aspx page. Doing that solved my issue.

viewtopic.php?f=47&t=6569&p=26833&hilit ... ory#p26833

Post Reply