Passing Parameters through gallery

cosmicelf

Joined: 2005-08-21
Posts: 153
Posted: Thu, 2005-09-29 23:58

Is there some way for me to pass parameters through gallery in order to affect a modified Bread crumbs?

What I am thinking are 2 parameters.

either mode=events&eventid=$eventid or else mode=users&userid=$userid

I would need this parameters to be passed from page to page.

thanks

 
shocksll
shocksll's picture

Joined: 2005-06-22
Posts: 352
Posted: Fri, 2005-09-30 00:07

I guess you could always use the session object. Something like this

{assign var=Mode value=""}
{php}
if (isset($_GET['mode'])){
   $this->assign('Mode', $_GET['mode'];);
   $_SESSION['mode'] = $_GET['mode'];;
} else
   if (isset($_SESSION['mode'])
       $this->assign('Mode', $_SESSION['mode'];);
{/php}
{if $Mode == 'events'}

{else}
   {if $Mode == 'users'}

   {/if}
{/if}

Steve Lineberry

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-09-30 08:39

or globals...