Page 1 of 1

CMS Made Simple and nanoGallery

Posted: Mon Oct 22, 2018 1:50 pm
by Marek
How can I add a block of content to the java script code (nanoGallery) to make it work?


{literal}
<__script__>
$(document).ready(function () {
//Sample4 - Flickr
jQuery("#nanoGallery4").nanoGallery({userID:'my_userID',photoset:'{content block='nanoGallery' wysiwyg='false' oneline='true' size='150' label='nanoGallery'}',kind:'flickr',thumbnailWidth:300,thumbnailHeight:'200', //110,
viewerDisplayLogo:false,
locationHash:false,
thumbnailDisplayInterval:0,
thumbnailDisplayTransition:true,
thumbnailHoverEffect:[{'name':'imageScale150','duration':300},{'name':'borderDarker'}],
thumbnailLabel:{display:true,position:'onBottom',descriptionMaxLength:50},
theme:'clean',
colorScheme:'lightBackground',
paginationMaxLinesPerPage: 7,

});
});
</__script>
{/literal}

Re: CMS Made Simple and nanoGallery

Posted: Mon Oct 22, 2018 9:20 pm
by velden
Marek wrote:How can I add a block of content to the java script code (nanoGallery) to make it work?


{literal}
<__script__>
$(document).ready(function () {
//Sample4 - Flickr
jQuery("#nanoGallery4").nanoGallery({userID:'my_userID',photoset:'{/literal}{content block='nanoGallery' wysiwyg='false' oneline='true' size='150' label='nanoGallery'}{literal}',kind:'flickr',thumbnailWidth:300,thumbnailHeight:'200', //110,
viewerDisplayLogo:false,
locationHash:false,
thumbnailDisplayInterval:0,
thumbnailDisplayTransition:true,
thumbnailHoverEffect:[{'name':'imageScale150','duration':300},{'name':'borderDarker'}],
thumbnailLabel:{display:true,position:'onBottom',descriptionMaxLength:50},
theme:'clean',
colorScheme:'lightBackground',
paginationMaxLinesPerPage: 7,

});
});
</__script>
{/literal}

[Solved] CMS Made Simple and nanoGallery

Posted: Wed Oct 24, 2018 9:22 am
by Marek
Thank you. I tried to enter the code like that, but ... It turned out
that I had a mistake in the page template. Thank you again for your
help. It works.