Hi!

Is it possible to show the parent and child terms from a vocabulary in a grid, where the parent term are grouped together with the child terms? When I choose grid style in my view the terms are separated, one in each column.
My goal is to make something similar to this: http://www.dmoz.org/
Is it possible with this module?

All help is appreciated, thanks!

Comments

savinsur’s picture

Does this work?;

Use views + panels modules.

In Views; Add a FILTER of TAX TERM you are wanting to display ; ADD FIELDS that you want to display [ node: title , node description, etc]

ADD a BLOCK layout display to the view, and then add some parameters to make it look like 3 columns wide 16 results.

Apply additional sort filters as needed.

Result is a BLOCK which you can place in PANELS module

Use PANELS module to make your cover page and in there select a layout
then add a view (block name) to one of the layout areas. Add CSS to each 'panel' and
VOILA!

Hope this helps.

soffy’s picture

Thanks for your time! That sounds like it would work also.

We solved the problem in a little different way by creating av view and then adding a .tpl file to list the parent and child terms the way we wanted. Then we added a lot of css styling to make everything display in a nice way. It may not be the best code solution behind all this, but at least it works :)
The site is not public yet, but I can post a link later on...

xjm’s picture

Status: Active » Closed (fixed)
Sinan Erdem’s picture

Status: Closed (fixed) » Active

I dont understand how I can print the lineage as links to their term pages. In the above example (dmoz.org) all the parent terms ans child terms has links to their term pages. Is it possible with this module?

Or should I open a new issue for this??

Thanks...

xjm’s picture

Generally it's a good idea to open a new issue for each separate question. :)

Edit: You can make taxonomy terms link to their pages by adding a Taxonomy: Term field and configuring it to be a link in Views' UI. This does not require the lineage module. Click on the Taxonomy: Term field name in your view configuration to see all the options Views supplies. (Hide from display, rewrite output of this field, etc.)

If you still want to configure the display of lineage fields (which include all the parent terms for every entry in your view), you should take a look at the patch in #555316: Views 2: Improve field handler. (See comment #16). That patch provides the ability to control the output of the lineage field using views' advanced field handler options. Note that the patch requires the current dev version, and you will need to disable and re-enable the module before it works properly if you upgrade to the dev build. (Naturally, you shouldn't do any of this on a production site.)

xjm’s picture

Status: Active » Closed (fixed)

Please do open a new issue if you have a separate question. Closing this issue as the OP's question has been resolved.