Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Reading New Field

Quote Reply
Reading New Field
hi I have added a new field called Pak_NAME in category Table ... but I can not make the script read the new field I would like to read it as a category name since it is the name of the category in my language!

Any help please :)




Quote Reply
Re: Reading New Field In reply to
Hi,

To use your tag <%Pak_NAME%> in the template category.html
you have to edit the file nph-build.cgi .

In this file you have to find the sub:
sub build_category_pages

In this sub you have to ad under
$OUT{footer} = $category_r->{'Footer'};
$OUT{meta_name} = $category_r->{'Meta_Description'};
$OUT{meta_keywords} = $category_r->{'Meta_Keywords'};
$OUT{description} = $category_r->{'Description'};

add the line

$OUT{Pak_NAME} = $category_r->{'Pak_NAME'};

Now you can use the tag <%Pak_NAME%> in category.html and links will build your pages correctly.

regards, alexander

Quote Reply
Re: Reading New Field In reply to
Thank you Alexander,
I did it but now i need to use the tag <%pak_NAME%> in
subcategory.html or if i can make the categories in home page sorted by pak_name?