Community & Support

How can I prevent page layout from teasers?

My client(customer) is unfamiliar with HTML and uses drupal with FCKeditor.
He can't input <!--break--> , so page layout is broken when a page that displays teasers(ex. '/node') is viewed.

ex
'body'

<table>
<tr><td>aaa</td><td>bbb</td></tr>
<tr><td>ccc</td><td>ddd</td></tr>
<tr><td>eee</td><td>fff</td></tr>
</table>

'teaser'

<table>
<tr><td>aaa</td><td>bbb</td></tr>
<tr><td>ccc</td><td>ddd</td>

I looked for the module which switches input formats depending on view type(node/teaser).
But I can't find it.
Please tell me what I should do.

I'm sorry that my English skills are not highly developed.
Thank you.

Comments

Try to comment it out before

Try to comment it out before the table starts or comment it out when the table is closed, you cannot show just part of the table - ok, you could, but it would look messy.

HectorPlus.com

Thank you for your

Thank you for your reply.

I'm sorry my explanation is poor.
I can comment it out.
But my client cannot comment it out when he creates a new content because he is unfamiliar with HTML.
What should I do? Are there any modules which help him?

Code correctors/cleaners

Code correctors/cleaners like http://drupal.org/project/htmlpurifier and http://drupal.org/project/htmLawed may help you. I haven't tried those modules for e scenario like your one but. These modules should close opened tags to be sure your code is W3C competible. If it is possible I would recommend upgrading to v6 because at drupal 6 html corrector is in core and FCK editor has a builtin break button for v6.

Thank you for your reply!

I'll try to use these modules.
Thank you for your advice.

nobody click here