simple way to exclude thumbnails in content_image plugin

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
liudaz

simple way to exclude thumbnails in content_image plugin

Post 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
Frankie

Re: simple way to exclude thumbnails in content_image plugin

Post 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
Last edited by Frankie on Fri Sep 18, 2009 9:22 pm, edited 1 time in total.
Frankie

Re: simple way to exclude thumbnails in content_image plugin

Post by Frankie »

upon further testing this mod breaks CMSMS 1.6.5

it renders the content_image block uneditable
jsmonzani
Forum Members
Forum Members
Posts: 54
Joined: Mon Apr 03, 2006 10:58 am

Re: simple way to exclude thumbnails in content_image plugin

Post 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?
An approach to mutli-lingual CMSMS using only content blocks:
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: simple way to exclude thumbnails in content_image plugin

Post 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 ?
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: simple way to exclude thumbnails in content_image plugin

Post by tyman00 »

Please don't cross post, especially on buried threads. Thanks!
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
naturelab
Forum Members
Forum Members
Posts: 169
Joined: Thu Oct 15, 2009 11:11 am

Re: simple way to exclude thumbnails in content_image plugin

Post by naturelab »

sorry...
Post Reply

Return to “Tips and Tricks”