Page 1 of 1

[Solved] Smarty tag: {content_image} parameter

Posted: Mon Jul 21, 2014 12:13 pm
by Geoclaps
I have a question regarding the smarty tag {content_image} wich provide dynamic use in template if a user wants to select an uploaded image.

It worked fine before but that was in a earlier version of CMSMS. Now I use the curent version (1.10.11) and suddenly I discovered that the paramater "exclude" isn't available anymore. How can I exclude an image with a specific filename? I tried to turn the "auto thumb maker" off but that doesn't have any effect? It keeps generating thumbnails wich I don't want and wich I want to exclude from the list with images the client can choose.

Anybody knows a workaround or solution for this problem?

Thanks in advance.

Ruurd

Re: Smarty tag: {content_image} parameter

Posted: Mon Jul 21, 2014 12:19 pm
by velden
Exclude parameter should still be available according to help text.

By the way: I often use GBFilePicker module for this purpose because I like the UI, the preview, the upload feature and the possibility to choose from other directories. I think it offers better user experience in some cases.

Re: Smarty tag: {content_image} parameter

Posted: Mon Jul 21, 2014 1:12 pm
by Geoclaps
Thank you for the reply. I will check into that module. Didn't know it was that versatile.

Yes, documentation say it does (See http://docs.cmsmadesimple.org/tags/core/content_image) but when you check the specs inside the CMS tags itself, the exclude function is not mentioned in that specific tag. Also when I try to use it, it doens't work (anymore).

I use the prefix: exclude="thumb_" but still... the darn _thumb images keep showing up in the dropdown so I guess this paramater is no longer supported?

Re: Smarty tag: {content_image} parameter

Posted: Mon Jul 21, 2014 1:29 pm
by velden
I assume you're using version 1.11.10 (not 1.10.11)?

I double checked the tag's help from Extensions -> Tags and 'exclude' parameter is still there.

I did NOT check if it actually works.

Re: Smarty tag: {content_image} parameter

Posted: Mon Jul 21, 2014 7:35 pm
by Geoclaps
Ups, yes my bad :-[ It's version 1.11.10 not the other way around. Yes like I said, documentation says it should work but it doesn't. Hope someone can clear this thing up because I am curious if the parameter works or not.

Re: Smarty tag: {content_image} parameter

Posted: Tue Jul 22, 2014 11:43 pm
by paulbaker
Geoclaps wrote:I use the prefix: exclude="thumb_" but still... the darn _thumb images keep showing up
Was that a typo? If you are using that prefix (thumb_) then images starting _thumb will show up.

Re: Smarty tag: {content_image} parameter

Posted: Wed Jul 23, 2014 7:51 am
by Geoclaps
Correct. I was using the right reference -> thumb_

I found out why it didn't work. I used single quotes instead of double quotes around the 'thumb_' wich in this case won't work. Don't ask me why. For the other values it does work in both cases. See attached files.
example how it does not work
example how it does not work
example how it does work
example how it does work
That leaves one question unanswered: how can I stop CMSMS making these thumbs? I have disabled the option for making these thumbs but still it keeps creating them wich is polluting considering I am not making use of the thumbs.
no-thumbs-pls.jpg

Re: Smarty tag: {content_image} parameter

Posted: Mon Jul 28, 2014 2:53 pm
by Geoclaps
BUMP ;D

Nobody knows how to turn automatic generation of thumbnails off?

Re: Smarty tag: {content_image} parameter

Posted: Mon Jul 28, 2014 3:11 pm
by calguy1000
Just tested in CMSMS 1.11.10
exclude='thumb_' worked as expected

And the option in FileManager also worked as expected to turn off the creation of thumbnails. Though you may wanna just submit the settings again, just to make sure.

Re: Smarty tag: {content_image} parameter

Posted: Tue Jul 29, 2014 8:04 am
by Geoclaps
First: SOLVED!

Second: thank you all for your effort and time. It makes the world and using CMSMS so much more nicer! Thank you.

Third: I found out that I can not use FTP in combination with the FileManager. Although it may have been said somewhere I just found out that it's interfering with read and write rights on the server. Pretty annoying but it may be of use to some people.

Once again I thank you all for the time and effort that went into this topic.

Kind regards, Ruurd

Re: Smarty tag: {content_image} parameter

Posted: Wed Jul 30, 2014 1:03 am
by Dr.CSS