Modifying page of single category
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Modifying page of single category
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?
Re: Modifying page of single category
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.
Re: Modifying page of single category
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!
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!
Re: Modifying page of single category
Any suggestions of where I might have went wrong?
Re: Modifying page of single category
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.
Re: Modifying page of single category
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?
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?
Re: Modifying page of single category
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
viewtopic.php?f=47&t=6569&p=26833&hilit ... ory#p26833