Hello
The UC catalog module provides a display of categories and subcategories, and ultimately a list of nodes.
I need to change the way it displays lists of nodes for certain catalog categories (taxonomy terms), but otherwise it should use the default. In other words, if the path is:
catalog/1 catalog/2 ...
Do whatever it would normally do. However if it's
catalog/25 catalog/30 catalog/31 catalog/37 catalog/38 ...
I want a view to take over.
Sadly, UC does all of this in code, with no actual "catalog" view--it's in the UC Catalog module.
Is there some way to get this behavior? You know, without setting up a view page for each tid where I want this?
As an alternative, all of the products in the special-handling-desired tids, will be of a specific type. If there was a way for the view to detect the type of nodes which would be displayed, and invoke only if a certain type is matched, but otherwise allow non-view behavior, that would be perfect.
Thanks in advance.
Luke
Bump, sort of. Really, I'm confirming that the list is still running--haven't received anything since my original of this (~23 hours ago), and this list is usually more active than that.
Luke
On Thu, 4 Mar 2010, Luke wrote:
Hello
The UC catalog module provides a display of categories and subcategories, and ultimately a list of nodes.
I need to change the way it displays lists of nodes for certain catalog categories (taxonomy terms), but otherwise it should use the default. In other words, if the path is:
catalog/1 catalog/2 ...
Do whatever it would normally do. However if it's
catalog/25 catalog/30 catalog/31 catalog/37 catalog/38 ...
I want a view to take over.
Sadly, UC does all of this in code, with no actual "catalog" view--it's in the UC Catalog module.
Is there some way to get this behavior? You know, without setting up a view page for each tid where I want this?
As an alternative, all of the products in the special-handling-desired tids, will be of a specific type. If there was a way for the view to detect the type of nodes which would be displayed, and invoke only if a certain type is matched, but otherwise allow non-view behavior, that would be perfect.
Thanks in advance.
Luke
I've never needed to do this and haven't looked into it in depth, but in the interest of getting you at least the start of an answer:
You could override theme_uc_catalog_browse in your template.php and check arg(1). If arg(1) matches one of the term ids on your list, manually invoke your view via a 'module_invoke', or if it doesn't, just call back to the default with a theme('uc_catalog_browse', $tid)
Hope that helps some, William
On Fri, Mar 5, 2010 at 2:41 AM, Luke drupal@lists.tacticus.com wrote:
Bump, sort of. Really, I'm confirming that the list is still running--haven't received anything since my original of this (~23 hours ago), and this list is usually more active than that.
Luke
On Thu, 4 Mar 2010, Luke wrote:
Hello
The UC catalog module provides a display of categories and subcategories, and ultimately a list of nodes.
I need to change the way it displays lists of nodes for certain catalog categories (taxonomy terms), but otherwise it should use the default. In other words, if the path is:
catalog/1 catalog/2 ...
Do whatever it would normally do. However if it's
catalog/25 catalog/30 catalog/31 catalog/37 catalog/38 ...
I want a view to take over.
Sadly, UC does all of this in code, with no actual "catalog" view--it's
in
the UC Catalog module.
Is there some way to get this behavior? You know, without setting up a view page for each tid where I want this?
As an alternative, all of the products in the special-handling-desired tids, will be of a specific type. If there was a way for the view to detect the type of nodes which would be displayed, and invoke only if a certain type is matched, but otherwise allow non-view behavior, that
would
be perfect.
Thanks in advance.
Luke
-- [ Drupal support list | http://lists.drupal.org/ ]
For the archives if nothing else (although maybe it prompts some discussion--my questions have been either too basic or too impossible of late, and so haven't resulted in much):
I came across a module called Taxonomy Views Integrator, which at least looks like it might be a solution to my problem discussed below.
Any thoughts anyone would care to share?
Since this is something of a Ubercart problem, I'll probably have to scrap UC catalog and just do my own view for taxonomy, but that should at least be doable, and more portable than overriding the theme for the subcategories in question.
Luke
On Thu, 4 Mar 2010, Luke wrote:
Hello
The UC catalog module provides a display of categories and subcategories, and ultimately a list of nodes.
I need to change the way it displays lists of nodes for certain catalog categories (taxonomy terms), but otherwise it should use the default. In other words, if the path is:
catalog/1 catalog/2 ...
Do whatever it would normally do. However if it's
catalog/25 catalog/30 catalog/31 catalog/37 catalog/38 ...
I want a view to take over.
Sadly, UC does all of this in code, with no actual "catalog" view--it's in the UC Catalog module.
Is there some way to get this behavior? You know, without setting up a view page for each tid where I want this?
As an alternative, all of the products in the special-handling-desired tids, will be of a specific type. If there was a way for the view to detect the type of nodes which would be displayed, and invoke only if a certain type is matched, but otherwise allow non-view behavior, that would be perfect.
Thanks in advance.
Luke