CGSmartimage - help sample...

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
soportepro
Forum Members
Forum Members
Posts: 57
Joined: Fri Nov 04, 2011 10:10 pm

CGSmartimage - help sample...

Post by soportepro »

With CMSMS release 1.11.6 this sample do not work, any suggestion to change?

<__script__ type="text/javascript">{literal}
jQuery(document).ready(function(){
jQuery('a.fancybox').fancybox();
});
{/literal}</__script>
{assign var='files' value='uploads/album/*.jpg'|glob}
{if count(\$files)}
<div style="width: 100%; height: 150px; overflow: auto;">
{foreach from=\$files item='file'}
<a rel='simple_album' class="fancybox" href="{CGSmartImage src=\$file filter_rotate=90 filter_watermark=1 filter_resize='h,500' notag=1 noembed=1}">
{CGSmartImage src=\$file filter_rotate=90 filter_grayscale=1 filter_watermark=1 filter_resize='h,150'}
</a>
{/foreach}
</div>
{/if}

By example: \$files send me an error when try to save. Remove it and do not work.

Sorry but I m from 1.10.x and never see this...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: CGSmartimage - help sample...

Post by Rolf »

Try:

Code: Select all

<__script__ type="text/javascript">
jQuery(document).ready(function() {
  jQuery('a.fancybox').fancybox();
} );
</__script>

{assign var='files' value='uploads/album/*.jpg'|glob}

{if count($files)}
<div style="width: 100%; height: 150px; overflow: auto;">
  {foreach from=$files item='file'}
    <a rel='simple_album' class="fancybox" href="{CGSmartImage src=$file filter_rotate=90 filter_watermark=1 filter_resize='h,500' notag=1 noembed=1}">
      {CGSmartImage src=$file filter_rotate=90 filter_grayscale=1 filter_watermark=1 filter_resize='h,150'}
    </a>
  {/foreach}
</div>
{/if}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”