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: [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: [Dave] showing if the article is hidden or not

By Chris_t - March 19, 2008

Sorry to leave you hanging Dave,
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

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