-
AuthorPosts
-
zdmdesignz Friend
zdmdesignz
- Join date:
- October 2009
- Posts:
- 122
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 54
- Thanked:
- 11 times in 1 posts
February 2, 2014 at 4:58 am #194380Hello,
How do I make it possible to have html formatting available for intros? I would like to have things like blockquotes, css, lists, etc visible in the module and article intros. Whatever formatting I put in is stripped out completely.
I would like this available for JA Content Slider intros and all other module and article intros such as “Supply Chain Services”— found here.
Thanks for your help 🙂
Best,
ZechariahSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 4, 2014 at 9:39 am #521082Hi Zechariah,
If you want these things (blockquotes, css, lists, etc…) appear front end of your site (in intros part), they must belong to intro text of that article. As I can see in detail page of article, it isn’t intro text.
1 user says Thank You to Saguaros for this useful post
zdmdesignz Friendzdmdesignz
- Join date:
- October 2009
- Posts:
- 122
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 54
- Thanked:
- 11 times in 1 posts
February 4, 2014 at 5:56 pm #521155Hello,
Thanks for your response.
How do I know how to or actually make it intro text? That is, where is this page and setting you’re seeing and where is all this configured?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 5, 2014 at 2:28 am #521193The intro text should be placed before the readmore button, please follow this document for more information: http://docs.joomla.org/Splitting_an_Article_into_an_introduction_with_a_link_to_read_more
1 user says Thank You to Saguaros for this useful post
zdmdesignz Friendzdmdesignz
- Join date:
- October 2009
- Posts:
- 122
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 54
- Thanked:
- 11 times in 1 posts
February 5, 2014 at 8:48 pm #521377Hello,
While I very much appreciate your response and willingness to help, the solution you’re suggesting is not working.
Please note all the blockquotes and ems in my code inside the “intros” (before ‘read more’) in the JA Content Slider at position-5. Per my original thread message, these intros and read more buttons have always been there for this module, yet the markup is not displaying in the intro. I will add the read more buttons to position-1/2/3 to demonstrate the issue further.
Please let me know if there is something I’m missing.
Update 1… With or without the ‘read more’, I am not even able to increase the font size inside the preliminary text (intro). This is a major issue.
Update 2… When the ‘read more’ is added to the article, it removes the “…”, making the text look incomplete and erroneous. Only when the ‘read more’ is removed does it add the “…”, making the text lead the reader to click to read more.
- How can the ‘…’ be added to the end of the text where the ‘read more’ is inserted?
- How can html markup be displayed without the useage of the ‘read more’?
Either one of these will work great 🙂 I simply need to have my html markups display in the beginning of the articles and also have the … display.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 6, 2014 at 1:23 am #521393You can PM me admin credentials of your site, I will check it for you.
1 user says Thank You to Saguaros for this useful post
zdmdesignz Friendzdmdesignz
- Join date:
- October 2009
- Posts:
- 122
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 54
- Thanked:
- 11 times in 1 posts
February 9, 2014 at 1:49 am #521874Hello,
I was wondering if there was any progress with this request.
Thank You
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 10, 2014 at 2:46 am #521952Hi Zechariah,
In most of Joomla module, the introtext is often stripped so that when splitting string in introtext, it can work correctly, otherwise it may cause unexpected error. If you still want not to strip some HTML tags, you go to the file: modulesmod_jacontentsliderhelper.php
Let’s look at line 718:
$row->introtext = SmartTrim::mb_trim ( strip_tags($row->introtext), 0, $maxchars, $doc->_charset );
replace it with:
$row->introtext = SmartTrim::mb_trim ( strip_tags($row->introtext, '<blockquote><em>'), 0, $maxchars, $doc->_charset );
<blockquote><em> are tags that will not be stripped out.
You should also take a backup of file first before making change.
1 user says Thank You to Saguaros for this useful post
zdmdesignz Friendzdmdesignz
- Join date:
- October 2009
- Posts:
- 122
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 54
- Thanked:
- 11 times in 1 posts
February 10, 2014 at 6:27 pm #522099Thank you for the reply. How is this achieved with the rest of the modules/articles? For instance, those in the position-1 through position-3 positions etc?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 11, 2014 at 3:03 am #522136In these positions, we use JA Sidenews module and here is my suggestion:
– Download the file attached below and copy it to this folder: /modules/mod_jasidenews (to replace the helper.php file)
– Open the file: /templates/ja_mero/html/mod_jasidenews/default.php, at approx line 46Replace:
<?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars); ?>
With:
<?php echo $helper->truncateHtml($item->introtext, $descMaxChars,'<blockquote>'); ?>
Hope this helps.
2 users say Thank You to Saguaros for this useful post
zdmdesignz Friendzdmdesignz
- Join date:
- October 2009
- Posts:
- 122
- Downloads:
- 0
- Uploads:
- 25
- Thanks:
- 54
- Thanked:
- 11 times in 1 posts
February 11, 2014 at 8:37 pm #522261Saguaros,
Thank you very much for your help and expertise. This has indeed solved my problem.
Best,
Zechariah -
AuthorPosts
This topic contains 11 replies, has 2 voices, and was last updated by zdmdesignz 10 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum