How to hide default content textarea when using blocks?

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
alpeb
New Member
New Member
Posts: 8
Joined: Tue Feb 17, 2009 2:54 pm

How to hide default content textarea when using blocks?

Post 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
Pierre M.

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

Post by Pierre M. »

try {content oneline='true' wysiwyg='false'} instead ?
alpeb
New Member
New Member
Posts: 8
Joined: Tue Feb 17, 2009 2:54 pm

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

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

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

Post 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
alpeb
New Member
New Member
Posts: 8
Joined: Tue Feb 17, 2009 2:54 pm

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

Post 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.
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

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

Post 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
alpeb
New Member
New Member
Posts: 8
Joined: Tue Feb 17, 2009 2:54 pm

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

Post 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 ;)
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

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

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
Post Reply

Return to “CMSMS Core”