[support] views_embed_view(["parent term?"])

Kevin Davison kevin at quevin.com
Mon Jun 7 20:59:13 UTC 2010


I'm using the Finder module for search, and there's a "search results" page I've overridden (page-help-search-results.tpl.php) that used the following:

This embeds a Views block if there are no results ("23" is the taxonomy term ID)...

<h2 class="pane-title"><a href="/help/search/23">Billing</a></h2> 
<?php
	print views_embed_view('help', $display_id = 'block_2', 23);
?>

Yes, not the best way there... and now I have some sub-category terms, so that taxonomy ID argument doesn't display the parent term.

Is this enough to ask how to display a parent term, along with the list of sub-category (terms) titles I have defined in that view?

Ideas? Perhaps I should use a rule instead that redirects to a directory listing view if no results are available?

Much thanks!


More information about the support mailing list