?
Referenced as Pull Request for: # 9388
avatar basd82
basd82
20 Jan 2016

Steps to reproduce the issue

Currently the tag is like this, <ul>

Expected result

It should be <ul class="tagspopular">

solution

on line 18 in joomla-cms/modules/mod_tags_popular/tmpl/default.php

change <ul> in <ul class="tagspopular<?php echo $moduleclass_sfx; ?>">

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar basd82 basd82 - open - 20 Jan 2016
avatar infograf768 infograf768 - change - 20 Jan 2016
The description was changed
avatar infograf768 infograf768 - change - 20 Jan 2016
The description was changed
avatar bertmert
bertmert - comment - 20 Jan 2016

see line 14:

<div class="tagspopular<?php echo $moduleclass_sfx; ?>">

I don't understand why ul should get same classes. Just makes it mor complicated in CSS.

Instead use something like

div.tagspopular ul{
 ....
}
avatar bertmert
bertmert - comment - 20 Jan 2016

Or use a template override for default.php

avatar brianteeman
brianteeman - comment - 20 Jan 2016

@basd82 is correct from a consistency perspective - if you check the other modules that produce lists then they work the way he expects

avatar basd82
basd82 - comment - 20 Jan 2016

In all other modules it’s done this way (as far as I think the correct way), but in mod_tags_popular and mod_tags_similar not.

So I suggest keep to the standard.

Van: bertmert [mailto:notifications@github.com]
Verzonden: woensdag 20 januari 2016 11:43
Aan: joomla/joomla-cms joomla-cms@noreply.github.com
CC: Bas van den Dikkenberg bas@Dikkenberg.net
Onderwerp: Re: [joomla-cms] class is missing in the ul tags (#8945)

Or use a template override for default.php


Reply to this email directly or view it on GitHub#8945 (comment).

avatar basd82
basd82 - comment - 20 Jan 2016

If you do this way, you can easily change the layout of a singel module


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8945.

avatar bertmert
bertmert - comment - 20 Jan 2016

I can live with this change but have to fix 2 sites (not a problem).

If you do this way, you can easily change the layout of a singel module

I think It's easier to change if you have 1 surrounding div with this class ;-)

I think the surrounding div should also be removed then.
Why: Use a layout style html5 with your module change and you'll see that we have now 3 times the same $moduleclass_sfx and 2 times "tagspopular". One for div, one for ul. You have to force CSS with very "hard" rules. Leading div, ul and so on.

is correct from a consistency perspective

Yes.

avatar flash1452
flash1452 - comment - 4 Mar 2016

@brieteeman I would like to work on this.

avatar brianteeman
brianteeman - comment - 11 Mar 2016

@flash1452 you dont need anyones permission


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8945.

avatar brianteeman brianteeman - change - 12 Mar 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-03-12 18:40:32
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 12 Mar 2016

Closed as we have a PR for testing #9388


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8945.

avatar brianteeman brianteeman - close - 12 Mar 2016
avatar brianteeman brianteeman - close - 12 Mar 2016

Add a Comment

Login with GitHub to post a comment