248 Posts
Giuse
7 years ago
Topic

Hi, I have a Form&List field to display a list of related items in a content form.

The Form&List fiels uses the seb_list template with HTML elements as  <ul>+<li> and the output list is in the form

<li><div class="cck-clrfix"><a href="/....">label</a></div><div class="cck-clrfix">text</div></li><li><div class="cck-clrfix"><a href="/...">label</a></div></li>

that is not fine since the "cck-clrfix" class introduces a newline but it is not good to have a carriage return right after the bullet..: I get the bullet point of <li>, then the actual field is on the following line. I confirmed the problem stripping out <div "cck-clrfix"> with ReReplacer - no more newline, though it is needed from the second field on.

How to fix it?

Thanks

Giuse

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
3
Level 1

Only way I can think of would be to create a copy of template and change its output

248 Posts
Giuse
7 years ago
2
Level 2

In my opinion is a bug...: how should this template work? A list where there is a bullet point with a blank line and the actual field text in the next line cannot be actually used, instead of a cck class that is rendered as a newline, it should be something like a normal < div >, am I wrong? Unless there is some other parameter that I don't know to make it usable without the need of overriding it...

cheers

Giuse

4229 Posts
Kadministrator
7 years ago
1
Level 3

Try with setting variation and markup to None

248 Posts
Giuse
7 years ago
0
Level 4

Yes, Klas! It is needed to setup the markup to "None" on just the first element to have a proper rendering of the list.

Thanks

Giuse

Get a VIP membership