[Solved] Smarty tag: {content_image} parameter

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

[Solved] Smarty tag: {content_image} parameter

Post 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
Last edited by Geoclaps on Wed Jul 30, 2014 7:48 am, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Smarty tag: {content_image} parameter

Post 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.
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

Re: Smarty tag: {content_image} parameter

Post 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?
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Smarty tag: {content_image} parameter

Post 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.
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

Re: Smarty tag: {content_image} parameter

Post 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.
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Smarty tag: {content_image} parameter

Post 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.
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

Re: Smarty tag: {content_image} parameter

Post 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
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

Re: Smarty tag: {content_image} parameter

Post by Geoclaps »

BUMP ;D

Nobody knows how to turn automatic generation of thumbnails off?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Smarty tag: {content_image} parameter

Post 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.
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.
Geoclaps
Forum Members
Forum Members
Posts: 25
Joined: Tue Oct 08, 2013 12:02 pm

Re: Smarty tag: {content_image} parameter

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Smarty tag: {content_image} parameter

Post by Dr.CSS »

Post Reply

Return to “CMSMS Core”