forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: allvip on February 03, 2014, 08:08:36 am

Title: Use token from one function in another function?
Post by: allvip on February 03, 2014, 08:08:36 am
I want to use {ALB_LINK_PIC} and '{ALB_LINK_TGT} from function album list in function filmstrip.

Is it possible?
Any sugestions how to do that?

I want to do an albums fimstrip on displayimage.php
Title: Re: Use token from one function in another function?
Post by: Αndré on February 03, 2014, 04:13:10 pm
Tokens are just plain text placeholders which will be replaced later by more complex code. If you follow the code backwards you'll see that the tokens are replaced inside the function theme_display_album_list respectibely theme_display_album_list_cat, which get their important data from index.php's functions list_albums respectively list_cat_albums.

However, as you said you want to create a filmstrip with album thumbnails, it's probably easier to get the data directly from the database.
Title: Re: Use token from one function in another function?
Post by: allvip on February 03, 2014, 04:22:07 pm
Thanks.