[SOLVED] How to check, if global content block is empty

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.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: [SOLVED] How to check, if global content block is empty

Post by Rolf »

urheat wrote:I made a website for a hotel. Sometimes, for example in specific seasons, they have some extra offers and so on. This offer is one GCB that is shown in front page if it is not empty. Of course I could make this using news, but I think that it is easier for editor to understand UI when "news are news". Using GCBs they can update for example footer and this offer area. For editors GCBs are easy to use.
Sounds like you need to use the Custom Global Settings module instead... http://dev.cmsmadesimple.org/projects/customgs It is created for this purpose. You can create a WYSIWYG field and show it on the frontend. And it CAN be empty! But you can also use a checkbox to show or not show some content!

See also http://wiki.cmsms.nl/index.php/CustomGS

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: [SOLVED] How to check, if global content block is empty

Post by urheat »

Rolf wrote:
urheat wrote:I made a website for a hotel. Sometimes, for example in specific seasons, they have some extra offers and so on. This offer is one GCB that is shown in front page if it is not empty. Of course I could make this using news, but I think that it is easier for editor to understand UI when "news are news". Using GCBs they can update for example footer and this offer area. For editors GCBs are easy to use.
Sounds like you need to use the Custom Global Settings module instead... http://dev.cmsmadesimple.org/projects/customgs It is created for this purpose. You can create a WYSIWYG field and show it on the frontend. And it CAN be empty! But you can also use a checkbox to show or not show some content!

See also http://wiki.cmsms.nl/index.php/CustomGS

Rolf
Thanks Rolf - I definitely have to check this. My approach though is that I try to avoid modules as much as I can and try to use core modules only. Updating is easier and the site a bit more stable.
Locked

Return to “CMSMS Core”