WebGUI
      Click here to register.
      
View Cart (0)
IRC banner

View All Tickets
Update of "Link List" template  (#663)
Issue

There is an issue with link lists based on CS. If users enter a single line without hitting the return key links are displayed as

<link> - <description>

If they hit the return key, however, a paragraph is inserted by the editor and links appear as

<link> -

<description>

I therefore suggest to modify the link list template as follows:

Template:
...
<p><div class="linklist">
  <tmpl_if userDefined1><a href="<tmpl_var userDefined1>" <tmpl_if userDefined2>target="_blank"</tmpl_if>></tmpl_if><tmpl_var title><tmpl_if userDefined1></a></tmpl_if>
        <tmpl_if content>
                  - <tmpl_var content>
        </tmpl_if>
</div></p>
...

Header:
<style type="text/css">
.linklist p {
    display: inline;
}
</style>

Ideally, only the first paragrah would be displayed as inline. I have tried to achieve that by targeting p:first-child. However, this did not yield the desired result. Maybe someone else can figure it out.

Comments
bernd
0
8/12/2008 2:06 pm

According to Rogiers suggestion

.linklist a+p {display:inline;}

is even better. Tested with Firefox 3 and works as expected.

 

Details
Ticket Status Pending  
Rating0.0 
Submitted Byspunky 
Date Submitted2008-07-23 
Assigned To unassigned  
Date Assigned2008-11-20 
Assigned By 
What to improve? WebGUI Stable  
URLrfe/request-for-enhancement/update-of-link-list-template
Karma
Difficulty 1  
Karma So Far0
Karma Rank0.00
Keywords
Ticket History