Custom scriptlets not appearing in subcategories

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
jattwood@nubrand.ca
Ensign (ENS)
Ensign (ENS)
Posts: 14
Joined: Mon Nov 09, 2009 10:26 am

Custom scriptlets not appearing in subcategories

Post by jattwood@nubrand.ca » Fri Nov 13, 2009 11:02 am

I have created a category list that is 4 levels deep. If I assign a custom content scriptlet to control page content at level 1 and 2, it works fine. At level 3 and deeper, the custom content scriptlets do not show.

I have a requirement to show custom static content at the root of each level of the category tree and to only expose the actual product list at level 4 of my tree.

Any help or workarounds appreciated!

Thanks,

Jamie

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

Re: Custom scriptlets not appearing in subcategories

Post by mazhar » Mon Nov 16, 2009 5:23 am

All you need is to apply two category pages on your categories. In the deepest category apply actual category page that should list products while on the parent categories apply some other category grid page and update the Category Listing user control in ConLib to out put current category being listed summary or description to page. In this way you will be able to show static contents via category summary field.

jattwood@nubrand.ca
Ensign (ENS)
Ensign (ENS)
Posts: 14
Joined: Mon Nov 09, 2009 10:26 am

Re: Custom scriptlets not appearing in subcategories

Post by jattwood@nubrand.ca » Mon Nov 16, 2009 3:57 pm

Thanks for the information above; however if you can give me just a little more detail please I would really appreciate it. Here is what I am trying to do:

I need to display static content that can be specified in the Content drop down box that maps to a specific scriptlet that I have created. So at each level of the tree as we click down through the categories, a custom scriptlet will map to each node. Only when we get to the bottom do we want to see a grid.

So I have created a custom scriptlet for each level of the tree to correspond to the contenet to be shown at each instance, however when I apply each custom scriptlet at each node they are not displaying correctly.

Do I need to create a new display page for each level of the tree to make that work?

Thanks,

Jamie

jattwood@nubrand.ca
Ensign (ENS)
Ensign (ENS)
Posts: 14
Joined: Mon Nov 09, 2009 10:26 am

Re: Custom scriptlets not appearing in subcategories

Post by jattwood@nubrand.ca » Tue Nov 17, 2009 10:22 am

Ok - I figured it out your instructions were all there, just a little cryptic :)

Ok what I did was create a custom scriptlet of type 'content" called "static content" which contains a link to a clone of the CategoryDetailsPage conlib which I renamed to StaticCategoryDetailsPage. I then assigned the content page "static content" to each parent node. Inside the StaticCategoryDetailsPage aspx, I just turned off the list display repeater by setting visibilty to false and switched the display of the text from summary to the description field on line 70 CategoryDescription.Text = _Category.Description;

Then in the admin tool under each category node, I input static HTML content inthe description field.

So far so good.

Jamie

Post Reply