Hiding content image?

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
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Hiding content image?

Post by duclet »

With the release of 1.5, the content image select box is available for selection. However, I don't need it. Since it is not part of my template, I don't want it to be shown to my clients either. While I can remove it physically on the code, I rather remove it with some sort of configuration settings if possible. Is there any way to remove them without removing the PHP code?
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Hiding content image?

Post by duclet »

bump
kris29
Forum Members
Forum Members
Posts: 53
Joined: Wed Dec 10, 2008 10:56 pm

Re: Hiding content image?

Post by kris29 »

Hi duclet

Where did you remove the content image select box in the PHP code? I'm can't find a file to fix that  ???
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Hiding content image?

Post by Dr.CSS »

If you look in the source code for the edit page page you will find the call for it then find the page edit template in the admin and comment out that part...

But when you upgrade it will show again...
kris29
Forum Members
Forum Members
Posts: 53
Joined: Wed Dec 10, 2008 10:56 pm

Re: Hiding content image?

Post by kris29 »

Thanks. I commented out the lines

Code: Select all

$ret[] = array(lang('image').':',$dropdown);
and

Code: Select all

$ret[] = array(lang('thumbnail').':',$dropdown);
in /lib/classes/contenttypes/Content.inc.php and the select boxes are gone.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Hiding content image?

Post by Dr.CSS »

[solved] then mark subject in first post...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Hiding content image?

Post by RonnyK »

Also when this is wanted by a setting, then you could file a FeatureRequest in the forge...

Ronny
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Hiding content image?

Post by duclet »

This is NOT SOLVED. While editing the PHP file directly will resolved it, that is not what I am looking for. I don't want to edit any of the core files. What I want is some kind of settings, maybe a config.php that will hide it for me. Looking over the code, I don't see that is currently available but maybe I am missing something. If there isn't, I'll file a bug report.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Hiding content image?

Post by calguy1000 »

jeez.... you can please some of the people some of the time, but you can never please all of the people any of the time :)

This stuff was put in there because people asked for the ability to easily associate one image with a page.... and to make it easy to create image menus..

if you don't want that functionality, then it's a 'feature request', to 'optionally turn it off' :)
there are already similar requests for other things, disable page alias field, and the options tab, etc, etc. etc.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
duclet
Forum Members
Forum Members
Posts: 187
Joined: Fri Jun 23, 2006 12:55 pm

Re: Hiding content image?

Post by duclet »

calguy1000 wrote: jeez.... you can please some of the people some of the time, but you can never please all of the people any of the time :)
Ain't that the truth.
Post Reply

Return to “CMSMS Core”