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

Hello All, I have a what I hope is a simple question.
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

Hi Chris,

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.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] showing if the article is hidden or not

By Chris_t - March 18, 2008

Thanks Dave, I am running ver 1.09



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

Make a backup copy of /lib/init.php and then add it right after the first line. Like this:

<?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.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] showing if the article is hidden or not

By Chris_t - March 18, 2008

I changed it and nothing bad happened but it did not fix the problem. I went and changed the php header from
<?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

No, that should be fine. I might add that to the next version if it solves that problem. Where did you add it? To /lib/menus/header.php?
Dave Edis - Senior Developer
interactivetools.com

Re: [ChrisTitchenal] showing if the article is hidden or not

By Dave - March 19, 2008

No problem, ok thanks for the info. Yea, I might add that to the code generator for a future version.
Dave Edis - Senior Developer
interactivetools.com