Closed (fixed)
Project:
Sections
Version:
6.x-1.2
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2009 at 21:40 UTC
Updated:
19 Dec 2009 at 15:50 UTC
I am hoping to use the Sections Module to apply specific themes for the search results page of a site I am building. Given that the search term(s) will vary - how should I specify the path so that the following urls will all use the same theme? I tried various wildcard characters without success.
/search/luceneapi_node/vision?category=1
/search/luceneapi_node/apples?category=1
/search/luceneapi_node/another example?category=1
Comments
Comment #1
hass commentedI would expect that
search/luceneapi_node/*should work!? Please reopen if not.Comment #2
EWB commentedIt doesn't work in that I need to be able to have other themes/sections for other categories. For example, I would like to have /search/luceneapi_node/apples?category=1 pull up one theme and /search/luceneapi_node/apples?category=2 use another theme. I was hoping that a wildcard might still work when placed in the middle of the string: search/luceneapi_node/*?category=1 - I realize that this may be wishful thinking but don't know what else to do.
Looking at my original post I see that this need wasn't stated very clearly - my apologies.
Comment #3
hass commentedPuh... I believe this is not possible out of the box. The API function http://api.drupal.org/api/function/drupal_match_path/6 do not have this functionality as I know. This said you need a PHP code snippet to solve this special requirement or change your path's to search/luceneapi_node/category/1?query=fooooo. You will also have the same issues if you may try to assign a block to the sidebars on this pages.
You need to create the snippet yourself or search d.o if someone else already had the same requirements with block's visibility. If you have your snippet ready feel free to create a documentation subpage in the sections documentation pages on d.o and post the link here as a reference. It may be helpful for others, too.