showing if the article is hidden or not
8 posts by 2 authors in: Forums > CMS Builder
Last Post: March 19, 2008 (RSS)
By Chris_t - March 18, 2008
The client is wanting to know if when they are looking at the CMS and see a list of news article. If along with the title they can see if the article is hidden or not instead of going into the modify and looking there.
Also before I forget has anyone else seen  showing up when they use the wysiwyg editor. I think, I just need to change the character set. Would that be a per page thing or something in the cms system files.
Thanks
Chris
Re: [ChrisTitchenal] showing if the article is hidden or not
By Dave - March 18, 2008
Under "Section Editors" just add the field hidden to "ListPage Fields". So it might look like this:
title, date, hidden
It will show 0 or 1.
As for the strange characters - which version are you running? Some servers send a charset that overrides the meta tag in the html. You can use a site like this to check: http://www.serverheader.com/ If there is a "charset" after "Content-type" then it's sending a header.
I added a line to /lib/init.php in v1.10 to override that. If you're not running v1.10 you could try adding it yourself to /lib/init.php. It's as follows:
ini_set('default_charset', 'utf-8');
Hope that helps! Let me know how it goes.
interactivetools.com
Re: [Dave] showing if the article is hidden or not
By Chris_t - March 18, 2008
I opened the init.php file and boy does this look confusing. where in this file do I add
ini_set('default_charset', 'utf-8');
Thanks for all your kind help
Chris
Re: [ChrisTitchenal] showing if the article is hidden or not
By Dave - March 18, 2008
<?php
ini_set('default_charset', 'utf-8');
And if that doesn't fix it I can always take a look and help you figure it out.
interactivetools.com
Re: [Dave] showing if the article is hidden or not
By Chris_t - March 18, 2008
<?php echo "<?xml version='1.0'?>\n"; ?>
to this
<?php header('Content-type: text/html; charset=utf-8'); ?>
and that fixed the problem, now did I mess anything in CMS by doing that?
Chris
Re: [ChrisTitchenal] showing if the article is hidden or not
By Dave - March 18, 2008
interactivetools.com
Re: [Dave] showing if the article is hidden or not
By Chris_t - March 19, 2008
I added that code to each page it's self at the top.
Re: [ChrisTitchenal] showing if the article is hidden or not
By Dave - March 19, 2008
interactivetools.com