Page 1 of 1

simple way to exclude thumbnails in content_image plugin

Posted: Mon Jun 29, 2009 5:13 pm
by liudaz
So,

If you are using content_image plugin and you want to exclude thumbnails from showing up admin drop down panel (when f. e. editing or creating content), do this:

Open  the file Content.inc.php (lib > classes > contenttypes) and ind the row ~300.

Change this:

Code: Select all

$dropdown = create_file_dropdown($blockNameId['id'],$dir,$data,'jpg,jpeg,png,gif',$optprefix,true);
Into this:

Code: Select all

$dropdown = create_file_dropdown($blockNameId['id'],$dir,$data,'jpg,jpeg,png,gif',$optprefix,true,'','thumb_');
Hope this helps!

Liudas

Re: simple way to exclude thumbnails in content_image plugin

Posted: Fri Sep 18, 2009 9:18 pm
by Frankie
excellent, thank you so much for sharing! worked great for me!  ;D

any programmers out there know how to modify this line of code to list the dropdown items in alphabetical order?

Issues with the Content_Image Dropdown in Page Editor

Re: simple way to exclude thumbnails in content_image plugin

Posted: Mon Sep 21, 2009 7:50 pm
by Frankie
upon further testing this mod breaks CMSMS 1.6.5

it renders the content_image block uneditable

Re: simple way to exclude thumbnails in content_image plugin

Posted: Mon Sep 28, 2009 2:26 pm
by jsmonzani
it renders the content_image block uneditable
Really? I've just tested it on 1.6.5 with Firefox and IE without any problem. Which browser did you use?

Re: simple way to exclude thumbnails in content_image plugin

Posted: Thu Jun 24, 2010 1:49 pm
by naturelab
Thanks guys, that was really useful.

I just posted this :-


{content_image} using a dynamic path ( ie: dir=$dir or similar )

http://forum.cmsmadesimple.org/index.ph ... 091.0.html

Have you any idea how to do this ?

Re: simple way to exclude thumbnails in content_image plugin

Posted: Wed Jun 30, 2010 7:02 am
by tyman00
Please don't cross post, especially on buried threads. Thanks!

Re: simple way to exclude thumbnails in content_image plugin

Posted: Wed Jun 30, 2010 9:41 pm
by naturelab
sorry...