In the cataloger module I am displaying 10 to 12 thumbnail images which when clicked display a larger version of the image. What I want to do is hide the very first image.
# ....
<div class="item_thumbnails">
{section name=ind loop=$image_url_array}
{if $ind == 0}## or $ind == 1 not sure here...
{* skip this iteration *}
{continue}
{/if}
# .... rest of the code
As I said, not tested. HTH
"There are 10 types of people in this world, those who understand binary... and those who don't." * by the way: English is NOT my native language (sorry for any mistakes...).Code of Condut | CMSMS Docs | Help Support CMSMSMy developer Page on the ForgeGeekMoot 2015 in Ghent, Belgium: I was there! GeekMoot 2016 in Leicester, UK: I was there! DevMoot 2023 in Cynwyd, Wales: I was there!
# ....
<div class="item_thumbnails">
{section name=ind loop=$image_url_array}
{if $smarty.section.ind.index == 0}
{* skip this iteration *}
{continue}
{/if}
# .... rest of the code
But either way its a simple to solve Smarty problem.
"There are 10 types of people in this world, those who understand binary... and those who don't." * by the way: English is NOT my native language (sorry for any mistakes...).Code of Condut | CMSMS Docs | Help Support CMSMSMy developer Page on the ForgeGeekMoot 2015 in Ghent, Belgium: I was there! GeekMoot 2016 in Leicester, UK: I was there! DevMoot 2023 in Cynwyd, Wales: I was there!
If you could post what you already have on the template would help.
Otherwise is just guess work...
"There are 10 types of people in this world, those who understand binary... and those who don't." * by the way: English is NOT my native language (sorry for any mistakes...).Code of Condut | CMSMS Docs | Help Support CMSMSMy developer Page on the ForgeGeekMoot 2015 in Ghent, Belgium: I was there! GeekMoot 2016 in Leicester, UK: I was there! DevMoot 2023 in Cynwyd, Wales: I was there!
mmm.... and where did you use the code snippet I posted? I don't see it there....
"There are 10 types of people in this world, those who understand binary... and those who don't." * by the way: English is NOT my native language (sorry for any mistakes...).Code of Condut | CMSMS Docs | Help Support CMSMSMy developer Page on the ForgeGeekMoot 2015 in Ghent, Belgium: I was there! GeekMoot 2016 in Leicester, UK: I was there! DevMoot 2023 in Cynwyd, Wales: I was there!
This method removes the first thumbnail image but does not remove the first large image. However when you click on another thumbnail image in the list, the first large image disappears and will not longer appear. Not exactly what I wanted but it works.