Page 1 of 1

[SOLVED] CGSmartImage get only URL problem

Posted: Wed Feb 06, 2013 10:32 am
by requish
Hello :)

I found some problem with module and taking only URL to image from CGSI.

I tryed use code below.

Code: Select all

<a href="{CGSmartImage src=$file.url notag='' max_width='800' max_height='800'}">{CGSmartImage src=$file.url filter_croptofit='227,178,c'}</a>
But this dont work good, this add in href only address domain, or make some error and display only HTML code od frontend.

How to get only URL to generated imgage by CGSI?

Please help. ???

Re: [?] CGSmartImage get only URL problem

Posted: Wed Feb 06, 2013 6:40 pm
by Dr.CSS
This is how it says to do it in the modules Help..?

Re: [?] CGSmartImage get only URL problem

Posted: Wed Feb 06, 2013 6:52 pm
by requish
Hi
Dr.CSS wrote:This is how it says to do it in the modules Help..?
notag="" - Do not output an img tag, only the url to the cached image. This has no effect when CGSmartImage is used from within a stylesheet.
So why this is not working?

Code: Select all

{CGSmartImage src=$file.url notag=''}
give me only url to my domain. Tag without

Code: Select all

notag=''
works well, but i dont need img tag.

Re: [?] CGSmartImage get only URL problem

Posted: Wed Feb 06, 2013 6:55 pm
by Dr.CSS
Most times those need a 1 or 0 or true/false in the ' '...

Re: [?] CGSmartImage get only URL problem

Posted: Wed Feb 06, 2013 7:19 pm
by requish
Dr.CSS wrote:Most times those need a 1 or 0 or true/false in the ' '...
Ha ha, You were right :) Such a stupid my oversight... Thank You 8)