Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [carfac] Info from one Table on page built from another.: Edit Log

Here is the list of edits for this post
Re: [carfac] Info from one Table on page built from another.
Hi,

The easiest way, would be a global:

get_cat_info
Code:
sub {
return { cat => $DB->table("Category")->get( { ID => $_[0] } ) }
}

I think you should have access to CatLinks.CategoryID from the template - so then do:

Code:
<%get_cat_info($CatLinks.CategoryID)%>
<%DUMP cat%>

Failing that working, we would just need to do one extra look up to find the category ID its in (from the CatLinks table)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Jan 18, 2016, 10:31 PM

Edit Log: