I’ve created a custom page type, deployed, and I c...
# suitecommerce
k
I’ve created a custom page type, deployed, and I can see the templates in the layouts and types objects. Not showing in the SMT however…wondering how long there might be a lag? Similar note, get I add multiple templates in the same js file - both for the the same page types and multiple page types?
s
It does sound like a cache issue, but it also could be silently failing. First, open your console and do
SC.Application('Shopping').getComponent('PageType').getPageTypes()
The
layout
object should list your templates. If they're not there then they haven't been registered
If they are there, I would kill your session / browser window / etc and try again. Or use a private browsing window in another browser
k
yeah - they are there
i’ll work the cache issue
s
OK. As for your other question: I don't see why you wouldn't be able to register multiple templates in one JS file
k
OK - so I see the template when I click the little gear at the top, but I’m not getting a layout selection when I edit the settings of a category…the template is for facet-browse
s
Not sure I follow exactly. You click the gear and see the list of available templates, and then you scroll down to Facets and your new template is not in the list of available ones?
k
no - the template is available to set as the default for facet browse when you click the gear - I dont see “layout” settings when I edit the category
ugh, actually, it is there a=on a search results page but not on a category
maybe I’m targeting the wrong page type
s
🤔
k
but that makes no sense…..its facet-browse for category….perhaps I stumbled on a limitation
s
facets-facets-browse is the template that is used
I do admit that I have not tried it with categories
k
facet-browse is what I targeted
“List of products present on a category, subcategory or search results”
hopefully cache
So weird - I can set it as the custom template, but not select it on an individual category. I am wondering if I am missing something
Nope - found out that its working correctly - added a feature request to change be category.