SOLVED: Textile not rendering in News summary templates

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
appleyard
Forum Members
Forum Members
Posts: 27
Joined: Wed Dec 30, 2009 2:54 pm

SOLVED: Textile not rendering in News summary templates

Post by appleyard »

Hi there, I'm using Textile in my CMSMS installation, as detailed here: http://forum.cmsmadesimple.org/index.ph ... 871.0.html

It works perfectly in almost everything, and I highly recommend it for anyone who doesn't like WYSIWYG editors (and what clients tend to do with them).

The only issue I'm having is that summary templates in the News module are not rendering Textile at all. News detail templates render Textile fine, and they both use the same (and only) Layout template that is supposed to invoke Textile on all content.

Does anyone have a clue as to why the News summary template is acting this way?

Thanks!
Last edited by appleyard on Wed Jan 20, 2010 3:06 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Textile not rendering in News summary templates

Post by Nullig »

In the News/Options tab, have you checked this field:

"Allow using a WYSIWYG editor on the summary field"

Nullig
appleyard
Forum Members
Forum Members
Posts: 27
Joined: Wed Dec 30, 2009 2:54 pm

Re: Textile not rendering in News summary templates

Post by appleyard »

Nullig wrote: In the News/Options tab, have you checked this field:

"Allow using a WYSIWYG editor on the summary field"

Nullig
Yes, I've tried checked and unchecked with no difference. That option seems to be regarding the summary (i.e. excerpt) field within a single article, not the summary templates for listing many articles.
appleyard
Forum Members
Forum Members
Posts: 27
Joined: Wed Dec 30, 2009 2:54 pm

Re: Textile not rendering in News summary templates

Post by appleyard »

SOLVED.

Here's what I think happened. I use notextile.. at the beginning of some of my pages to make sure header graphics etc. don't get wrapped in a paragraph tag. The way you cancel this out is to invoke a Textile tag specifically, e.g. "(2 line breaks) h1. Headline content (2 line breaks)"

Apparently the summary template was collapsing one of those line breaks as it did its {foreach} thing (which is why it wasn't a problem on detail templates) so Textile just didn't recognize the h1. as a headline tag. Adding an extra (i.e. third) line break at the beginning did the trick.

Thanks anyway folks!
Post Reply

Return to “CMSMS Core”