Forum Discussion
- ClaudiusHKhoros Alumni (Retired)
The SearchPage is not tied to a structure. Just like the Settings or Profile pages it sits outside the community structure you have. The closest you can get is customize the search experience based on which location the user has selected. The URL contains two relevant parameters:
filter=location
and
location=forum-board:studio
You can create a custom component that uses the http.request context object to obtain these. Then match them against a list of nodes (categories, TKBs and boards) and either add a CSS class container or inject some styling accordingly.
- Thanks :)
- lukBoss
Additional to ClaudiusH 's approach you could try to set a different skin (if you really want or have an entire skin for that =D) within the page init script:
this is completely untested!
<#switch http.request.parameters.name.get("location")> <#case "location-1"> <#assign skin = skin.set("<your.skin.name.for.that.location>") /> <#break /> <#case "location-2"> ... <#default> ... </#switch>
if you try it out, let me know if that works =)!
- vaishnaviExpert
I would like to know if there is any way to get currently assigned skin id for a particular node?
As I would get the location id from search parameters, I want to check which skin is applied to that board before setting it to SearchPage inside page initialization or custom component.
I did not find any APIs to get skin mapped to a particular node.
Any pointers?
Thanks,
Vaishnavi
Ther is a context object for this ${skin.id} which will return you the id of the current skin.
https://freemarker-docs-portal.lithium.com/refer/contextObjects
Related Content
- 9 years ago