Never mind Tyler.
Thanks a lot for your time and help.

On Jan 30, 4:45 pm, Logos <[email protected]> wrote:
> Actually, this is a PHP/smarty question.  You should post to a smarty
> or PHP group, as the problem isn't with greybox, it's with the code
> you're using to create greybox data.  I'd help, but I've never used
> smarty.  Sorry!
>
> --
> Tyler Stylehttp://malthusian-solutions.comhttp://nirdvana.com
>
> On Jan 30, 5:16 am, penny <[email protected]> wrote:
>
> > At the time being, the best that I have managed to do is to bring the
> > last id of the loop in my pageset. Meaning, if i have five ids, it
> > outputs correctly the 2 pages but containing always the fifth id.
> > It follows the code that I'm using.
> > Any help really appreciated!
>
> > {section name=loopname loop=$results}
> >    {$results[loopname].name}
> >      {literal}
> >           <script>
> >                 var page_set = [{'caption': 'Page 1', 'url': 
> > 'url1?id={/literal}
> > {$results[loopname].id}{literal}'},
> >                                        {'caption': 'Page 2', 'url':
> > 'url2?id={/literal}{$results[loopname].id}{literal}'}];
> >          </script>
> >      {/literal}
> >      <a href="#" onclick="return GB_showFullScreenSet(page_set, 1)">{t}
> > Test{/t}</a>
>
> > {/section}
>
> > On Jan 30, 1:49 am, Logos <[email protected]> wrote:
>
> > > I've never tried to use pagesets, but I can't see why that wouldn't
> > > work.
>
> > > --
> > > Tyler Stylehttp://malthusian-solutions.comhttp://nirdvana.com
>
> > > On Jan 27, 4:02 am, penny <[email protected]> wrote:
>
> > > > Hello all,
> > > > I'm trying to use the GB_showFullScreenSet functionality in a loop in
> > > > smarty without any success.
> > > > In the loop I'm using the id of each category in order to find its
> > > > associative subcategories. So in the end with the help of Greybox I'll
> > > > have in one page the category details and in the second one its
> > > > subcategories.
> > > > The thing that I'm trying to do is the following that I found in
> > > > discussions but in a dynamic way. Is this possible?
>
> > > > <script>
> > > > var nameofpageset = [
> > > > {'caption': 'Google', 'url': 'http://google.com/'},
> > > > {'caption': 'Yahoo', 'url': 'http://yahoo.com/'},
> > > > {'mypage': 'My Dog', 'url': 'http://mydog.com/'}
> > > > ];
> > > > var myotherpageset = [
> > > > {'caption': 'yada', 'url: 'http://yadayadda.com/'},
> > > > ....(2),
> > > > ...(3),
> > > > etc.
> > > > ];
> > > > </script>
>
> > > > Thanks in advance,
> > > > Penny S.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to