This is my layout http://www.gorgeoushentai.com/content/saber-marionette-j-2 If you look at the genres section it shows them as a div class and I want it as a < li > . How can I make it a list format? I can't find where it's printing the terms in the templates. This is for drupal 7
1 Answer
The template file you're looking for is field.tpl.php. The naming suggestions for this template are explained fairly well here and here - although they aren't in the documentation and I haven't tested them. So the steps you need to take are:
- Copy the .tpl.php file from modules/field/theme
- Rename it so it targets only the field type you wan't ('list_text' I think in your case).
- Change the
divs
intoul
/ol
andli
as required.
-
@Ruriko Display comma-separated list of taxonomy terms? is similar and may help you get started. Simply change the DIV outside the
foreach
to a<ul>
or<ol>' and the DIVs inside the
foreach` to<li>
's– Laxman13Feb 1, 2012 at 14:14