[Solved] Smarty tag: {content_image} parameter
[Solved] Smarty tag: {content_image} parameter
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
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
Last edited by Geoclaps on Wed Jul 30, 2014 7:48 am, edited 1 time in total.
Re: Smarty tag: {content_image} parameter
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.
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
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?
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
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.
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
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
Was that a typo? If you are using that prefix (thumb_) then images starting _thumb will show up.Geoclaps wrote:I use the prefix: exclude="thumb_" but still... the darn _thumb images keep showing up
Re: Smarty tag: {content_image} parameter
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. 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.
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. 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.
Re: Smarty tag: {content_image} parameter
BUMP
Nobody knows how to turn automatic generation of thumbnails off?

Nobody knows how to turn automatic generation of thumbnails off?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Smarty tag: {content_image} parameter
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.
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.
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: Smarty tag: {content_image} parameter
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
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