When I use Article Menu content part and I select the checkbox to show summary, it renders all the HTML code I have on the summary:
-Item 1 - <strong>This is the summary</strong> of the first item
-Item 2 - Summary of the second item
-Item 3 - <em>Summary</em> of the third item.
How can I avoid that?
Thank you
HTML rendering in Article Menu summary
-
- Posts: 28
- Joined: Wed 18. Oct 2006, 15:07
- Location: Montevideo - Uruguay
Re: HTML rendering in Article Menu summary
hi,
could have many reasons:
a) the people who edit the article's summary should be urged/instructed to use either <b>, <strong> or <em> with --> summary
b) CSS should be edited well to match same styles for [all] these tags
c) edit/change/adjust --> templates for article view / article listing --> and CP article menu (and urge/instruct editors to use one --> certain template for this CP article menu)
d) [my personal choice] do not use WYSIWYG editors and/or
e) adjust WYSIWYG editor --> settings
...
could have many reasons:
a) the people who edit the article's summary should be urged/instructed to use either <b>, <strong> or <em> with --> summary
b) CSS should be edited well to match same styles for [all] these tags
c) edit/change/adjust --> templates for article view / article listing --> and CP article menu (and urge/instruct editors to use one --> certain template for this CP article menu)
d) [my personal choice] do not use WYSIWYG editors and/or
e) adjust WYSIWYG editor --> settings
...
-
- Posts: 28
- Joined: Wed 18. Oct 2006, 15:07
- Location: Montevideo - Uruguay
Re: HTML rendering in Article Menu summary
hi, thank you for your answer, but I think I did't explain the problem well...
When creating a summary for the article (with the WYSIWYG editor), we need to allow simple formating (bold, italic). Our client asked for that.
I suppose I'll manage to adjust the editor settings for that, so this is not the problem. We could even tell the client: "Use only bold and italic buttons, no more".
The problem is when I use the Article Menu content part. I check the option "Show summary" and in the frontend I see the html tags instead of their correct rendering.
I think it's not a problem of the editor but the CMS, because using the "Teaser/link article" content part there's no problem and the summary is shown correctly.
Here you can see a screenshot of the problem
Thanks,
Eduardo
P.S.: I agree with you in d). I don't like WYSIWYG editors, but clients who don't know about html prefer them.
When creating a summary for the article (with the WYSIWYG editor), we need to allow simple formating (bold, italic). Our client asked for that.
I suppose I'll manage to adjust the editor settings for that, so this is not the problem. We could even tell the client: "Use only bold and italic buttons, no more".
The problem is when I use the Article Menu content part. I check the option "Show summary" and in the frontend I see the html tags instead of their correct rendering.
I think it's not a problem of the editor but the CMS, because using the "Teaser/link article" content part there's no problem and the summary is shown correctly.
Here you can see a screenshot of the problem
Thanks,
Eduardo
P.S.: I agree with you in d). I don't like WYSIWYG editors, but clients who don't know about html prefer them.
Re: HTML rendering in Article Menu summary
Hi Eduardo,
which version running?
Try to place {NEW:3} below the content of the main column.
Please post the source code afterwards.
Right column seems to be CP teaser, isn't it?
Well, strange, no idea right now...
which version running?
Try to place {NEW:3} below the content of the main column.
Please post the source code afterwards.
Right column seems to be CP teaser, isn't it?
Well, strange, no idea right now...
-
- Posts: 28
- Joined: Wed 18. Oct 2006, 15:07
- Location: Montevideo - Uruguay
Re: HTML rendering in Article Menu summary
Hi,
I'm running version 1.3.3
You are right, right column uses teaser/link article CP.
After placing {NEW:3} after the content, this is the html code I get:
The idea of what I need is similar to the right column, but without having to choose the articles (their summary) to be shown.
I'm running version 1.3.3
You are right, right column uses teaser/link article CP.
After placing {NEW:3} after the content, this is the html code I get:
Code: Select all
<div class="breadcrumb"><a href="index.php?home">Home</a></div>
<a name="jump14"></a>
<h3>News</h3><div><a href="index.php?id=16,12,0,0,1,0">Noticia #1</a>
<strong>Summary text noticia 1 </strong>Pellentesque vitae arcu a tortor rutrum varius? Donec at</div>
<div><a href="index.php?id=16,13,0,0,1,0">Noticia 2</a>
Este es el resumen de la <strong>segunda noticia</strong>, sólo se van a mostrar las primeras 32</div>
<hr />
<div class="news"><p><a href="index.php?id=16,14,0,0,1,0"><span class="datelink">2008/04/24 - </span>News</a></p><p><a href="index.php?id=16,13,0,0,1,0"><span class="datelink">2008/04/24 - </span>Noticia 2</a></p><p><a href="index.php?id=16,12,0,0,1,0"><span class="datelink">2008/04/21 - </span>Noticia #1</a></p></div>
Re: HTML rendering in Article Menu summary
i thought, that with {NEW:3} we would get summary as well (to be able to watch the differences) - was a mistake. sorry.
anyway, and obviously CP article menu destroys HTML tags of summary (changed to html entities)
while CP teaser works fine. Really strange!
well, tested right now, locally --> works perfect!
must be something wrong with WYSIWYG Editor (settings).
Did they type
Should be only "Summary text noticia 1" and then mark words and then click on styles bold, underline and so on. But DO NOT PUT HTML CODE in WYSIWYG editor!
OR switch to --> SOURCE view to type code there - in this case only!
On the other hand summary in CP teaser is fine, so I don't have any more ideas...sorry
anyway, and obviously CP article menu destroys HTML tags of summary (changed to html entities)
Code: Select all
<strong>Summary text noticia 1 </strong>
well, tested right now, locally --> works perfect!
must be something wrong with WYSIWYG Editor (settings).
Did they type
to the WYSIWYG editor?<strong>Summary text noticia 1</strong>


Should be only "Summary text noticia 1" and then mark words and then click on styles bold, underline and so on. But DO NOT PUT HTML CODE in WYSIWYG editor!
OR switch to --> SOURCE view to type code there - in this case only!
On the other hand summary in CP teaser is fine, so I don't have any more ideas...sorry