Page 1 of 1
Hiding content image?
Posted: Thu Dec 18, 2008 3:40 am
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?
Re: Hiding content image?
Posted: Fri Dec 19, 2008 9:45 pm
by duclet
bump
Re: Hiding content image?
Posted: Fri Jan 02, 2009 5:14 pm
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Â

Re: Hiding content image?
Posted: Fri Jan 02, 2009 8:02 pm
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...
Re: Hiding content image?
Posted: Sat Jan 03, 2009 11:09 am
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.
Re: Hiding content image?
Posted: Sat Jan 03, 2009 6:33 pm
by Dr.CSS
[solved] then mark subject in first post...
Re: Hiding content image?
Posted: Sat Jan 03, 2009 6:35 pm
by RonnyK
Also when this is wanted by a setting, then you could file a FeatureRequest in the forge...
Ronny
Re: Hiding content image?
Posted: Sat Jan 03, 2009 7:46 pm
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.
Re: Hiding content image?
Posted: Sat Jan 03, 2009 7:50 pm
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.
Re: Hiding content image?
Posted: Mon Jan 05, 2009 4:45 pm
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.