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

Multiple Category Templates?

(Page 1 of 2)
> >
Quote Reply
Multiple Category Templates?
Is there a way to use category-specific templates? It was fairly simple in Links 2.0 .. but how can it be done for SQL? I only need 2 different templates.

thanks
Quote Reply
Re: Multiple Category Templates? In reply to
i knew someone was going to ask for this..

i just wanted to say.. that i made this mod.. in links sql 1.1b3 .. but i do have it for 1.11.. it's fairly complex.. (well.. actually no Smile.. i'm sorry to say if you have alot of categories (especially subs) it may slow down sub build_category_pages..

i can't post it now.. (no time.. will do tonight or tommorrow)..

but this is what it does.. i actually have 3 selections.. 1 category template.. 1 link template for category.. 1 detailed template for category.. then for the links.. i have 1 link template.. then 1 detailed template for link.. all of these are selectable..

first.. if you select a category template.. the category is built with that template.. i didn't want to go through the subcategories.. so i made a loop in sub build_category_pages to get the template from previous levels of categories.. it keeps looping down the categories until it gets one.. otherwise.. default..

the link templates.. if category link is specified and not the link's link template.. then the category link's template will be used.. otherwise default if none..

the detailed templates.. pretty much the same as categories..

the only reason i made it was cause my categories are so diverse that they can't be displayed the same.. how many megabytes does hardware have? Smile

or how many leather carrying bags are shareware?

jerry
Quote Reply
Re: Multiple Category Templates? In reply to
The same basic process would work. In the HTML_Templates.pm file:

Code:
sub site_html_category {
# --------------------------------------------------------
# This rountine will build a page based for the current category.
#
my ($tags, $dynamic) = @_;
my $template = defined $dynamic ? $dynamic->param('t') : undef;
(ref $tags eq 'HASH') or croak "HTML_TEMPLATES: Argument '$tags' must be hash reference";

my ($name) = $tags->{'category_name'} =~ m,/?([^/]+)$,;
defined $dynamic and &load_user ($dynamic, $tags);
my $output = &load_template ( 'category.html', {
%$tags,
build_links_per_page => $LINKS{build_links_per_page},
category_first => $name,
%GLOBALS
}, undef, $template );
defined $dynamic and &clean_output($dynamic, \$output);
return $output;
}

The part that picks the template to use is:

my $output = &load_template ( 'category.html', {

So, what you want to do, is change the 'category' to a variable -- such as $use_cat -- make sure you define it at the top of the sub with "my".

Right before the

my $output = &load_template

Add your "if" tests... using the newly calcualted parameter $name (see the top of the sub).

You can test for name, in any way you want, then assign to $use_cat whatever template you want, or the default category.html (don't forget that!!!)

Another slightly more elegant way would be to define a "template" field in the category table, and check for it at the begining:

using: $tags->{'category_template'}

If it exists, use that template, if not, use the default. You might want to add a bit of error checking, such that if the requested template is not found, the default is used instead -- and you print an error message to the Admin, rather than aborting the build.


This is untested, but should work. I'm in the process of adding this sort of thing in.

Maybe Alex will suprise us in the next release with a template field, or a keyword-assignable selection that is part of links, although as shown above, it's not very hard (or shouldn't be).

The only problem with what I showed above, is that I haven't tested it, and you need to make sure that %tags is really holding all the fields you need.

I've been thinking of doing that with the Links as well, having several Links templates, that are selected based on the field in the link, or a test of a field in a link, such as:

if $height > $width use tall_link.html else use wide_link.html

I don't see why there would be any problem, since the field values are known BEFORE the &load_template call, all you need to do is pick your template right before the call.



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Multiple Category Templates? In reply to
well.. you can do it THAT way too.. Smile

but i like to have everything editable through the web.. Smile no more uploading.. hehe

.. i even wasted some time doing it to links.pm.. :T

jerry
Quote Reply
Re: Multiple Category Templates? In reply to
BTW... Widgetz solution is the one I had wished Alex would incorporate -- an intelligent selection -- he posted at the same time I did... so I didn't see it before.
Quote Reply
Re: Multiple Category Templates? In reply to
Well... lets get these things out! Smile

I know I'm behind, but I'm starting to catch up. Once I get the FAQ set up, I'm going to rearrange our servers, so PEOPLE!! don't forget to comment on the FAQ thread I posted, I need input before I make the changes.

Quote Reply
Re: Multiple Category Templates? In reply to
isn't the faq made up of all forum posts Wink

some are totally outdated already and they are new posts too.. hehe

mainly cause of links 1.11.. ( WHICH I WAS TOTALLY NOT EXPECTING!! )

ok.. i'll get the mod out.. i just have to remember all the things i did..

geez.. there are alot.. if you want a head start..

make 3 fields in category..

Template
Link_Template
Detail_Template

2 in links..

Template
Detail_Template

all:
length(0)
max(255)
Not Null(no)

and the rest leave alone..

in DB_Utils.pm.. change sub get_template_list to

Code:
sub get_template_list {
# --------------------------------------------------------
# Returns a list of all the templates (select list).
#
my ($in, $db, $default) = @_;
my (@tpls, $tpl, $output);

opendir (TPL, "$LINKS{admin_root_path}/templates") or die "Invalid template directory: $LINKS{admin_root_path}/templates. Reason: $!";
@tpls = grep {!/^\./} readdir TPL;
closedir (TPL);

$output = '<select name="edit_tpl"><option value="">----';
foreach $tpl (sort @tpls) {
($default eq $tpl) ? ($output .= qq~<option value="$tpl" SELECTED>$tpl~) :
($output .= qq~<option value="$tpl">$tpl~);
}
$output .= '</select>';
return $output;
}

add this to @EXPORT up at the top..

Code:
&build_template_row

and then add

Code:
sub build_template_row {
# --------------------------------------------------------
# Returns a template row for the html form.
#
my ($name, $value, $rec) = @_;
my $select = &get_template_list ($value, $name);
$name =~ s,-\d+$,,;
return "<tr><td align=right valign=top width=20%><font face='verdana,arial' size=2>$name</font></td><td width=80%>$select</td></tr>\n";
}

hmm.. that SHOULD be all for DB_Utils.pm

Admin_HTML.pm

this part is annoying..

html_add_form..

Code:
my $form = $db->build_html_record_form ($db->get_defaults, { hide_key => 1, show_attach => 1, base_url => "$SCRIPT_URL?do=show_attach&db=$DATABASE&ID=", CategoryID => \&build_category_row });

to..

Code:
my $form = $db->build_html_record_form ($db->get_defaults, {
hide_key => 1,
show_attach => 1,
base_url => "$SCRIPT_URL?do=show_attach&db=$DATABASE&ID=",
CategoryID => \&build_category_row,
Template => \&build_template_row,
Link_Template => \&build_template_row,
Detail_Template => \&build_template_row
});

and then there are like 20 other ones just like those in the rest of the file.. HAVE FUN.. 2 of them don't need it though.. i'd hate to have to type this out.. really.. Smile

the script should still work even with those modifications.. but with a few of the next ones.. they won't until it's all done..

SOO.. i'll have to think before i do this.. also.. just a quick thing.. right now.. go through HTML_Templates.pm and replace every $template with $style

.. i use $template and i didn't like the use of the original $template. Smile

jerry
Quote Reply
Re: Multiple Category Templates? In reply to
The FAQ is pointers to mostly forum posts, but also where possible, the point is put in the short description, or the tip is edited.

The problem is that you can't find things in the Forum the way you can in a links database.

The FAQ will also hopefully have the most current answer available, along with variations that are easily seen.

Sometimes the answer is best discussed in the Forum, it's just hard to find.



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Multiple Category Templates? In reply to
maybe you know where the post alex gave some code to only allow users use modify.cgi if they are logged in? Smile

jerry
Quote Reply
Re: Multiple Category Templates? In reply to
Thanks for your help!

I will try to make the changes in the next few days.. hopefully I won't make any mistakes & it will work.

I'll let you know what happens Smile

Amanda
Quote Reply
Re: Multiple Category Templates? In reply to
I think it was in the past 10 days, I've had a rough December, and haven't had time to add new items from the past 10 to 14 days.
Quote Reply
Re: Multiple Category Templates? In reply to
I went through and added the fields to category and link forms.. I've got a nice little drop down box now to make my choice when I add a new link or category. (I also made the changes in the DB_utils, HTML_temp, and Admin_HTML files.)

I can get the screen to modify specific links/categories, and I can view the links/categories.

When I search to Modify Category or Modify Link, I get this message:

Software Error -
DBSQL (24854): Fatal Error: Unable to execute query: SELECT COUNT(*) FROM Category WHERE Name LIKE '%e%' OR Description LIKE '%e%' OR Meta_Description LIKE '%e%' OR Meta_Keywords LIKE '%e%' OR Header LIKE '%e%' OR Footer LIKE '%e%' OR Has_New_Links LIKE '%e%' OR Has_Changed_Links LIKE '%e%' OR Template LIKE '%e%' OR Link_Template LIKE '%e%' OR Detail_Template LIKE '%e%' . Reason: Unknown column 'Template' in 'where clause' at Links/Admin_HTML.pm line 923

When I tried to modify a category I got this -
Reason: Unknown column 'Template' in 'field list' at admin.cgi line 131

Have any ideas?

Thanks,
Amanda
Quote Reply
Re: Multiple Category Templates? In reply to
Does Category have a field Template?

Did you update the .def file to make sure it knows about that field?



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Multiple Category Templates? In reply to
i guess i should give you guys more instructions?

FIRST.. go through HTML_Templates.pm and change all the "$template" scalars to "$style".. if you haven't already..

Also.. Add this below the %GLOBALS at the top

Code:
my $TEMPLATES = $LINKS{admin_root_path}/templates";

i used that for a reason that you guys might now really need.. it has to do with page.cgi.. but yea..

ok.. these are mostly in nph-build.cgi

in the my list at top add:

Code:
, $get_ctemp, $get_ltemp

in sub build_category_pages, under:

Code:
$OUT{random3} = rand{10000};

put:

Code:
$get_ctemp = $CATDB->prepare ("SELECT Template FROM Category WHERE Name = ?");
$get_ltemp = $CATDB->prepare ("SELECT Link_Template FROM Category WHERE Name = ?");

# Get the template information.
$OUT{category_root} = $category_r->{'Name'};
while (!$category_r->{'Template'} && !$category_r->{'Link_Template'}) {
$OUT{category_root} =~ s,/[^/]+$,,;
if (!$category_r->{'Template'}) {
$get_ctemp->execute($OUT{category_root});
$category_r->{'Template'} = $get_ctemp->fetchrow_array;
}
if (!$category_r->{'Link_Template'}) {
$get_ltemp->execute($OUT{category_root});
$category_r->{'Link_Template'} = $get_ltemp->fetchrow_array;
}
last if ($OUT{category_root} =~ m,^[^/]+$,);
}
$category_r->{'Template'} ||= "category.html";
$category_r->{'Link_Template'} ||= "link.html";

then in sub build_detailed_view..

in the my list.. add:

Code:
, $get_temp

under:

Code:
$category = $CATDB->get_record ($link->{'CategoryID'}, 'HASH');

add

Code:
$get_temp = $CATDB->prepare ("SELECT Detail_Template FROM Category WHERE Name = ?");

# Get template information.
$OUT{category_root} = $category->{'Name'};
while (!$link->{'Detail_Template'} || !$category->{'Detail_Template'}) {
$OUT{category_root} =~ s,/[^/]+$,,;
$get_temp->execute($OUT{category_root});
$category->{'Detail_Template'} = $get_temp->fetchrow_array;
last if ($OUT{category_root} =~ m,^[^/]+$,);
}
$category->{'Detail_Template'} ||= "detailed.html";

those are the loops that get the templates from previous categories..

then replace:

Code:
print DETAIL &site_html_detailed ($link, { grand_total => $GRAND_TOTAL, title_linked => $title_linked });

with:

Code:
print DETAIL &site_html_detailed ($link, { grand_total => $GRAND_TOTAL, title_linked => $title_linked }, $category->{'Detail_Template'});

this is probably the worst coding i've ever done Smile i'm sure if i put something like this into build_stats and save the templates onto memory.. it will look better.. however.. i am avoiding build_stats on all my mods in order for it to not crash for the really big databases..

ok.. there are a few more things.. let's start with HTML_Templates.pm again..

in sub site_html_link...

Code:
my ($rec, $dynamic) = @_;

change to:

Code:
my ($rec, $template, $dynamic) = @_;

under:

Code:
($rec->{'isPopular'} eq 'Yes') ? ($rec->{'isPopular'} = 1) : (delete $rec->{'isPopular'});

add:

Code:
$rec->{'Template'} ||= $template;
(-e "$TEMPLATES/${$rec}{'Template'}" && $rec->{'Template'}) or ($rec->{'Template'} = "link.html");

replace:

Code:
my $output = &load_template ('link.html', {

with:

Code:
my $output = &load_template ($rec->{'Template'}, {

go through all the blah blah blah &site_html_link blah blah blah.. in build_category_pages in nph-build.cgi

there are three.. they look like this..

Code:
$OUT{links} .= &site_html_link ($tmp);

replace with:

Code:
$OUT{links} .= &site_html_link ($tmp, $category_r->{'Link_Template'});

ok.. now you've got a problem.. page.cgi

first go to generate_category_page

add to the my list at top..

Code:
, $get_ctemp, $get_ltemp

under:

Code:
$OUT{random3} = rand (10000);

add:

Code:
$get_ctemp = $CATDB->prepare ("SELECT Template FROM Category WHERE Name = ?");
$get_ltemp = $CATDB->prepare ("SELECT Link_Template FROM Category WHERE Name = ?");

$OUT{category_root} = $category_r->{'Name'};
while (!$category_r->{'Template'} && !$category_r->{'Link_Template'}) {
$OUT{category_root} =~ s,/[^/]+$,,;
if (!$category_r->{'Template'}) {
$get_ctemp->execute($OUT{category_root});
$category_r->{'Template'} = $get_ctemp->fetchrow_array;
}
if (!$category_r->{'Link_Template'}) {
$get_ltemp->execute($OUT{category_root});
$category_r->{'Link_Template'} = $get_ltemp->fetchrow_array;
}
last if ($OUT{category_root} =~ m,^[^/]+$,);
}
$category_r->{'Template'} ||= "category.html";
$category_r->{'Link_Template'} ||= "link.html";

change:

Code:
$OUT{links} .= &site_html_link ($tmp, $in);

to:

Code:
$OUT{links} .= &site_html_link ($tmp, $category_r->{'Link_Template'}, $in);

ok.. now the REST of the site_html_link(blah, blah)s need to be changed..

go through the entire page.cgi and replace all the

Code:
&site_html_link ($link, $in);

with:

Code:
&site_html_link ($link, undef, $in);

sometimes the $link is not $link..

go to generate_detailed_page..

add this to the mylist on top..

Code:
, $get_temp

under:

Code:
$category = $cat_db->get_record ($link->{'CategoryID'}, 'HASH');

add:

Code:
# Get template information.
$OUT{category_root} = $category->{'Name'};
while (!$link->{'Detail_Template'} || !$category->{'Detail_Template'}) {
$OUT{category_root} =~ s,/[^/]+$,,;
$get_temp->execute($OUT{category_root});
$category->{'Detail_Template'} = $get_temp->fetchrow_array;
last if ($OUT{category_root} =~ m,^[^/]+$,);
}
$category->{'Detail_Template'} ||= "detailed.html";

ugh.. Smile

replace:

Code:
print &site_html_detailed ($link, { grand_total => $GRAND_TOTAL, title_linked => $title_linked }, $in);

with

Code:
print &site_html_detailed ($link, { grand_total => $GRAND_TOTAL, title_linked => $title_linked }, $category->{'Detail_Template'}, $in);

OK... then in HTML_Templates.pm again..

sub site_html_detailed

Code:
my ($rec, $tags, $dynamic) = @_;

to

Code:
my ($rec, $tags, $template, $dynamic) = @_;

under:

Code:
($rec->{'isPopular'} eq 'Yes') ? ($rec->{'isPopular'} = 1) : (delete $rec->{'isPopular'});

add:

Code:
$rec->{'Detail_Template'} ||= $template;
(-e "$TEMPLATES/${$rec}{'Detail_Template'}" && $rec->{'Detail_Template'}) or ($rec->{'Detail_Template'} = "detailed.html");

replace:

Code:
my $output = &load_template ('detailed.html', {

with

Code:
my $output = &load_template ($rec->{'Detail_Template'}, {

now.. go to site_html_category..

replace

Code:
my ($tags, $dynamic) = @_;

with

Code:
my ($tags, $template, $dynamic) = @_;

then under:

Code:
my ($name) = $tags->{'category_name'} =~ m,/?([^/]+)$,;

add:

Code:
(-e "$TEMPLATES/$template" && $template) or ($template = "category.html");

ahh....

then replace..

Code:
my $output = &load_template ('category.html', {

with:

Code:
my $output = &load_template ($template, {

i think we're done... that's ALOT of typing..

jerry

[This message has been edited by widgetz (edited January 12, 2000).]
Quote Reply
Re: Multiple Category Templates? In reply to
I double checked the category.def, and template is there. Maybe I didn't set it up right.. here's what I have:

Template => ['12', 'CHAR', '20', '50', '', 'category.html', ''],
Link_Template => ['13', 'CHAR', '20', '50', '', 'link.html', ''],
Detail_Template => ['14', 'CHAR', '20', '50', '', 'detailed.html', '']

Thanks
Quote Reply
Re: Multiple Category Templates? In reply to
Ok....

Does Template exist in the Links table?? <G>

Did you actually add that field, or did you just edit the def file?

Your query is accepted up until that point, so make sure you really added those 3 fields to the Links table.
Quote Reply
Re: Multiple Category Templates? In reply to
No.. How do I add it to the links table?
(As you can see, I don't know what I'm doing!)

Thanks for your help.
Quote Reply
Re: Multiple Category Templates? In reply to
The _best_ way to do it, given where you are now, is to remove those 3 fields from the .def file...

Save it back.

Go to the Admin.cgi and the Table Maintenance - Links table.

In the main window pick the "Add Field"

And add those 3 fields in using that.

That will add the field to BOTH the Links table and the .def file.

After adding them, go to the Update Field selection, and verify the that 3 new fields are at the end of the listing the way you want them.

Things should work at that point.

------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/







Quote Reply
Re: Multiple Category Templates? In reply to
Thanks!

I feel stupid... I didn't even realize those options were in the admin screen.

It seems to be working now. Thanks for helping me.

Amanda
Quote Reply
Re: Multiple Category Templates? In reply to
Thanks again!

That was a lot of typing. I made the changes, and so far there are no error messages in the admin, but I haven't tried to display different templates yet.

Amanda
Quote Reply
Re: Multiple Category Templates? In reply to
if there is an error.. please do tell me.. i made this mod a long time ago and probably forgot a few steps.. Smile

jerry
Quote Reply
Re: Multiple Category Templates? In reply to
Hi widgetz,

Say, I'm attempting the multi_category template modification and am running into several problems. I'm running the links sql 1.11 I believe. It was installed right around Christmas time.

Anyway. I made all the mods outlined above and the first error I got had to do with $TEMPLATES not being defined in HTML_Templates.pm so I add $TEMPLATES to the use vars list.

Then I received the same error referring to $OUT in nph_build.cgi so I added it to the use vars list.

Then I received the same error referring to %OUT with a message say %OUT is not exported so I added it to the @EXPORT list in HTML_Templates.pm.

With those changes made, I was able to get the program to run without errors and I was able to see the drop down menus with a list of the templates.

Now, when I select a template to use, the confirm modication doesn't show the selected template. The field is left blank.

So I accessed the database directly through the php_admin and typed in the name of the template to use directly into the database so that when I viewed my categories, I could see the field with the information that I typed.

Without making any changes I did a build and it didn't use my specified template. I went in to change the category, but when I went to modify the record, that template did not list as selected. (I double checked spelling, not the problem)

Anyway, I selected my template again and saved it and again, it wouldn't list.

As a test, I added a new field to the database and handwrote info into and no problem with saving that information.

Also, I double checked the instructions posted and I got them all except the following:

--------------------------------------------

ok.. these are mostly in nph-build.cgi

in the my list at top add:

code:


, $get_ctemp, $get_ltemp

--------------------------------------------

Now, I looked for the my list at the top and there isn't any so I added

my ($get_ctemp, $get_ltemp);
after
$|++;

I'm totally at a loss on what else to try.

Any ideas?

Thanks,

Kyle
Quote Reply
Re: Multiple Category Templates? In reply to
Hi again,

I also just tried adding a new category and the response page for all my Template fields came back with the following:
----add.htmladd_error.htmladd_success.htmlavcategory.htmlcategory.....

It was a list of all the filenames.

I don't get this message when I try to modify a category, only when I add a category.

Hope this gives more help.

Kyle
Quote Reply
Re: Multiple Category Templates? In reply to
Slowly and gradually I'm making progress.

Here's what I've found.

In your posted code you give the following instructions:
in DB_Utils.pm.. change sub get_template_list to

code:


sub get_template_list {
# --------------------------------------------------------
# Returns a list of all the templates (select list).
#
my ($in, $db, $default) = @_;
my (@tpls, $tpl, $output);

opendir (TPL, "$LINKS{admin_root_path}/templates") or die "Invalid template directory: $LINKS{admin_root_path}/templates. Reason: $!";
@tpls = grep {!/^\./} readdir TPL;
closedir (TPL);
$output = '<select name="edit_tpl"><option value="">----';
foreach $tpl (sort @tpls) {
($default eq $tpl) ? ($output .= qq~<option value="$tpl" SELECTED>$tpl~) :
($output .= qq~<option value="$tpl">$tpl~);
}
$output .= '</select>';
return $output;
}


Take a look at how the select name is being defined. It says edit_tpl. Well that variable won't write the information to the fields Template, Link_Template, or Detail_Template.


So, I created a new subroutine (there has to be a better way of doing this.) called:

sub get_templates_list {
# --------------------------------------------------------
# Returns a list of all the templates (select list).
#
my ($in, $db, $default) = @_;
my (@tpls, $tpl, $output);

opendir (TPL, "$LINKS{admin_root_path}/templates") or die "Invalid template directory: $LINKS{admin_root_path}/templates. Reason: $!";
@tpls = grep {!/^\./} readdir TPL;
closedir (TPL);
$output = '<option value="">----';
foreach $tpl (sort @tpls) {
($default eq $tpl) ? ($output .= qq~<option value="$tpl" SELECTED>$tpl~) :
($output .= qq~<option value="$tpl">$tpl~);
}
$output .= '';
return $output;
}

Which is basically the same except the <select name=> is gone as is the </select>

Then I changed the:
sub build_template_row {
# --------------------------------------------------------
# Returns a template row for the html form.
#
my ($name, $value, $rec) = @_;
my $select = &get_template_list ($value, $name);
$name =~ s,-\d+$,,;
return "<tr><td align=right valign=top width=20%><font face='verdana,arial' size=2>$name</font></td><td width=80%>$select</td></tr>\n";
}

To:
sub build_template_row {
# --------------------------------------------------------
# Returns a template row for the html form.
#
my ($name, $value, $rec) = @_;
my $select = &get_templates_list ($value, $name);
$name =~ s,-\d+$,,;
return "<tr><td align=right valign=top width=20%><font face='verdana,arial' size=2>$name</font></td><td width=80%><select name='$name'>$select</select></td></tr>\n";
}

Doing all this allowed me to write the template name to the database, but it's not showing that name when I try to modify the database.

Also, when I added the fields to category and links, you say we should
make 3 fields in category..

Template
Link_Template
Detail_Template

2 in links..

Template
Detail_Template

all:
length(0)
max(255)
Not Null(no)

When I leave the type as INT then selecting the name of my template writes 0 to the database regardless of which template I select, so I went back and made these fields text fields and at least I can write the info to the database.

So, if anybodies paying attention. I can write to the database, but I still can't build using the templates and when I try to modify the field, the modify form doesn't pick up my selected information.

I'll keep working, but I'd love some help

Kyle
Quote Reply
Re: Multiple Category Templates? In reply to
Hi again,

I also just tried adding a new category and the response page for all my Template fields came back with the following:
----add.htmladd_error.htmladd_success.htmlavcategory.htmlcategory.....

It was a list of all the filenames.

I don't get this message when I try to modify a category, only when I add a category.

Hope this gives more help.

Kyle
> >