Page 1 of 1

How to hide default content textarea when using blocks?

Posted: Wed Feb 18, 2009 7:09 pm
by alpeb
Hi,

I have a template that has multiple content blocks, like {content block='foo'}, {content block='bar'}, etc.
When editing a page that uses this template, there is a wysiwyg editor for each content block, plus one for the default content block. But I didn't use a simple {content} in the template, so that wyiwyg editor is useless. How can I avoid that from showing?

Thanks,
Alejandro

Re: How to hide default content textarea when using blocks?

Posted: Mon Feb 23, 2009 2:52 pm
by Pierre M.
try {content oneline='true' wysiwyg='false'} instead ?

Re: How to hide default content textarea when using blocks?

Posted: Thu Mar 05, 2009 6:55 pm
by alpeb
Pierre M. wrote: try {content oneline='true' wysiwyg='false'} instead ?
That didn't work. The textarea for the default content block is still showing.

Re: How to hide default content textarea when using blocks?

Posted: Thu Mar 05, 2009 7:01 pm
by RonnyK
alejandro,

what is the name of the block showing, besides.... Some modules require the default content-block. So it is advised to use additional content-blocks, but ALWAYS use the default {content}, with or without its wysiwyg...

Ronny

Re: How to hide default content textarea when using blocks?

Posted: Thu Mar 05, 2009 7:07 pm
by alpeb
RonnyK wrote: alejandro,

what is the name of the block showing, besides.... Some modules require the default content-block. So it is advised to use additional content-blocks, but ALWAYS use the default {content}, with or without its wysiwyg...

Ronny
Ok, understood. I'll have to accommodate so that one of the other non-default named content blocks be the default block. Thanks.

Re: How to hide default content textarea when using blocks?

Posted: Thu Mar 05, 2009 8:43 pm
by spcherub
You can also put the content tags in HTML quotes, so even if a user types something in there, it will not display on the site.

So in your template:


S

Re: How to hide default content textarea when using blocks?

Posted: Thu Mar 05, 2009 8:47 pm
by alpeb
spcherub wrote: You can also put the content tags in HTML quotes, so even if a user types something in there, it will not display on the site.

So in your template:


S
Actually not using the default {content} tag at all in the template would avoid showing anything the user writes in the default content placeholder ;)

Re: How to hide default content textarea when using blocks?

Posted: Thu Mar 05, 2009 8:51 pm
by spcherub
I am not sure if that is possible. I've not doe that recently, but there was some error message about the template missing the content block.

S

Re: How to hide default content textarea when using blocks?

Posted: Fri Mar 06, 2009 5:40 am
by Dr.CSS
Your just asking for trouble if you don't use the {content} tag sorry it's just the way the system works, if you use the newest ver. you can start the page w/o the editor by changing the settings in the tiny admin page...