By Xangis on
I'm working on setting up a used bookshop using Drupal ecommerce and multiple taxonomies. In the product display, which is using the node.tpl.php code, I post a book with various settings and the taxonomy list appears as one long string on one line, for example:
Smith, Kristine Harper EOS Book In Stock Science Fiction Gently Used
What I want to display would be the terms on multiple lines with labels:
Author: Smith, Kristine
Publisher: Harper EOS
Item Type: Book
Status: In Stock
Genre: Science Fiction
Condition: Gently Used
Since the node.tpl.php just does a print $terms it doesn't look like I have much in the way of formatting options. What can I do to get this how I want it?
Comments
Guessing 'Author' is the vocabulary, here is one way
Replace the code you have above with
Perfect!
Well, each line has its own vocabulary.
The code you provided works PERFECTLY. Thank you SO much!
In case of multiple authors..
When the author vocabulary field is set to Free Tagging, and when there are multiple authors, the above code displays like
Author: John
Author: Harry
But how to display them together as :
Author: John, Harry
??
How about something like
How about something like this
Hi, Great snippet, could you
Hi,
Great snippet, could you tell me please how I can get to every specific term in the vocab, and use it independent of the others?
Greetings,
Martijn