Hiding content image?
Hiding content image?
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?
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
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?
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...
But when you upgrade it will show again...
Re: Hiding content image?
Thanks. I commented out the lines
and
in /lib/classes/contenttypes/Content.inc.php and the select boxes are gone.
Code: Select all
$ret[] = array(lang('image').':',$dropdown);
Code: Select all
$ret[] = array(lang('thumbnail').':',$dropdown);
Re: Hiding content image?
[solved] then mark subject in first post...
Re: Hiding content image?
Also when this is wanted by a setting, then you could file a FeatureRequest in the forge...
Ronny
Ronny
Re: Hiding content image?
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Hiding content image?
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.

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.
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.
Re: Hiding content image?
Ain't that the truth.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![]()