Closed (fixed)
Project:
Hierarchical Select
Version:
6.x-3.0
Component:
Code - Content Taxonomy Views
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
14 Jan 2010 at 18:21 UTC
Updated:
4 Apr 2010 at 10:31 UTC
I have an HSCT field in a view and wanted the individual terms spit out separately so I can theme them in different table cells. Specifically I have two hierarchical content taxonomy terms, "City" --> "Neighborhood". I would like the two to be separate instead of what Views currently gives me:
$fields['neighborhood']->content
Viewing the output of this yields: <div class="field-item field-item-0">Boston</div><div class="field-item field-item-1">Revere Beach</div>
Whereas I need the two terms separately like: $fields['neighborhood'][0]->content which would give me just the term 'Boston', and another [1] giving 'Revere Beach'.
Is this possible somehow?
Comments
Comment #1
druplicate commentedI suppose I could use a PHP snippet to parse the string and separate the variables but that shouldn't be necessary.
Comment #2
druplicate commentedComment #3
druplicate commentedComment #4
wim leersOverride
theme_hs_content_taxonomy_formatter_hierarchical()! :)Comment #6
druplicate commentedUnfortunately that's beyond my programming ability at the moment, so I just used CSS to reposition the two elements since they have separate classes.
These two elements are vertically adjacent cells in a table.
And then played with the line height to adjust the cell height in the table because with the separate divs it expanded the cell height.
Totally cheating, but it works!