slackero / phpwcms

Flexible, fast, powerful, customer, developer friendly web content management system and cms framework
http://www.phpwcms.org
GNU General Public License v2.0
92 stars 45 forks source link

[CAPTION_SUPPRESS_ELSE][CAPTION_SUPPRESS_ELSE] not rendering #205

Closed robinsherwood closed 7 years ago

robinsherwood commented 7 years ago

I use the standard </ li> teaser template with a random article title listing and get this result: .......Ländertreffen 2016 [CAPTION_SUPPRESS_ELSE][CAPTION_SUPPRESS_ELSE] Seems to have a render issue?

slackero commented 7 years ago

Are you sure? [CAPTION_SUPPRESS_ELSE][/CAPTION_SUPPRESS_ELSE]

robinsherwood commented 7 years ago

Quite, yes. Just detected: The default says: <!-- Caption is suppressed -->[/CAPTION_SUPPRESS][CAPTION_SUPPRESS_ELSE][CAPTION]<p>{CAPTION}</p>[/CAPTION][CAPTION_SUPPRESS_ELSE]

robinsherwood commented 7 years ago

Easy to fix ;)

slackero commented 7 years ago

Your closing tag is wrong!!! Do not forget the slash / [/CAPTION_SUPPRESS_ELSE] There is nothing to fix in phpwcms. It works as expected.

robinsherwood commented 7 years ago

This is what I copied from the default teaser at github an hour ago, it's not my construction ;) There indeed the slash is missing - adding it solved the problem right away

slackero commented 7 years ago

Next time open the issue right next to the CP teaser and show me the line with corrected code if possible. I couldn't get exactly what was wrong from your description…

But solved