small conceptual bug in content module

More
13 years 9 hours ago #26038 by hede
modules\mod_flexicontent\tmpl\news.php

Line 282: <p class="news_text">

should be: <div class="news_text">

Because the specs say "block elements are not allowed within p". Meaning you can technically not place a <h2> in the description text of an article that is displayed by the content module. With the consequence that e.g. Chrome closes the p after the first opening p in your description and therefore adds an additional <p></p> at the end of your description content which screws up your layout.

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
13 years 7 hours ago #26042 by ggppdk
Code:
<p class="news_text"> <?php echo $item->text; ?> </p>

this <p>...</p> USUALLY contain text stripped of HTML
the ability not to strip text was added later after user request. In general you should strip text.

now our p is inside a span which is normally not allowed, but then if we replace it with a div div is also not allowed inside a span

Thinking of the fact that we added ability not strip HTML maybe we should replace p and all span should be replaced with div


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 6 hours ago #26049 by hede
Yes, that would suit all possible situations I think. Great!

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26115 by ggppdk

ggppdk wrote: Thinking of the fact that we added ability not strip HTML maybe we should replace p and all span should be replaced with div


This seems to be OK without any other CSS changes, did you test it?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26116 by hede
I cant tell in general but divs suit my css. But I use an override for the news.php anyway.

It may effect someone who specified classes in css like span.xxxxxxx but most people will probably use .xxxxxxx, so making all spans to divs will do very little damage and even if it is easy to fix.

FF on Win10, FLEXIcontent version 3.0.10 on Joomla 3.4

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #26141 by ggppdk
Committed this in r1350


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.339 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save