How to surround a Drupal view with some tags?

Let's say I have a view that returns some elements. I want to display items in an unordered list, so I rewrite the output of the field with <li>[field]</li>. Now I need to surround the view with tags <ul>and </ul>.

However, when I add these tags as “full HTML” in the header and footer area, they are surrounded divas follows:

<div class="view-header">
    <ul>
</div>

which defeats the target, as UL tags are ignored by some versions of browsers / jQuery.

How can I get rid of divaround <ul>?

+3
source share
2 answers

, "HTML-" , "Unordered list". ( " " ).

+2

views-view.tpl.php, div ul s. . views-view-fields.tpl.php, .

+1

Source: https://habr.com/ru/post/1735575/


All Articles