Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Detail page Header

Quote Reply
Detail page Header
I am using categrory templates. My question is how do i get the category template on the detailed pages. If the link is in category 3 then the detail page should also be the same as category3

ANyone?
Quote Reply
Re: [netnow21] Detail page Header In reply to
Hi,

I'm not really sure to be honest - as if you get the record will have multiple CatLink entries, so you can't just use a global to get the CategoryID, and show the template acordingly :(

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!
Quote Reply
Re: [Andy] Detail page Header In reply to
Hi Andy,

do you have any idea on how to write the global.

I can pay if need be.
Quote Reply
Re: [Andy] Detail page Header In reply to
Hi Andy,

Do you have a plugin that allows for user to edit his login information. WHen a user sign ups I collect information and what the user to be able to modify this info.

Do you know how to do this or perhaps a plugin?

Thank You,
Jason bishop
Quote Reply
Re: [netnow21] Detail page Header In reply to
Hi Jason,
just search for User_Edit_Profile in this forum or on ultranerds.com
I think that's what you are lookin for.

Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Detail page Header In reply to
Hi, Thanks Yep that is what i need. I have bought the plugin just waiting on Andy to send it to me :)
Quote Reply
Re: [netnow21] Detail page Header In reply to
Hi,

netnow21 wrote:
Hi Andy,

do you have any idea on how to write the global.

can pay if need be.

Are you running dynamically, or static? (this may help in writing a global to work out the right category format for you :))

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!
Quote Reply
Re: [Andy] Detail page Header In reply to
Hi ANdy,

Running statically
Quote Reply
Re: [netnow21] Detail page Header In reply to
Hi,

This *may* work:

On detailed.html, have:

Code:
<%load_category_template($ID)%>
<%if different%>
<%include /home/path/to/admin/template/$Category_Template/detailed.html%>
<%else%>
...normal code on detailed.html
<%endif%>

In the global load_category_template, have this code:

Code:
sub {
my $ID = $_[0];
my $catid = $DB->table('CatLinks')->select( ['CategoryID'], { LinkID => $ID } )->fetchrow;
my $category_template = $DB->table('Category')->select( ['Category_Template'], { ID => $catid } )->fetchrow;
return { Category_Template => $category_template }
}

This is totally untested, so it may not work =)

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!
Quote Reply
Re: [Andy] Detail page Header In reply to
Hi thanks Andy,

It doesn't seem to work :(

I tried a couple of things but could not get it towork

I recieved no errors but it doesn't display the assigned categeory header

Thanks anyway,

Jason
Quote Reply
Re: [netnow21] Detail page Header In reply to
Hi,

Send over glinks admin details, and I'll have a look for you. No guarantees though : )

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!
Quote Reply
Re: [Andy] Detail page Header In reply to
Would this be easier in dyanamic mode?
Quote Reply
Re: [netnow21] Detail page Header In reply to
Hi,

The problem is, that detailed pages don't seem to inherit the category template Frown

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!