Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Where Is The Category?

Quote Reply
Where Is The Category?
Hello,
I have added an additional category successfully which appears in category.html and also appears in the drop down menu in "modify link" and in "error modifying link" but refuses to show in "add a resource" or "error adding resource" pages. I don't know why or how to fix this. Anyone have some thoughts on this?

Stevo

Quote Reply
Re: Where Is The Category? In reply to
Are you using <%Category%> in your add.html and add_error.html files?

And do you also have the following codes in your sub site_html_add_* routines in the site_html_templates.pl file?

Code:

my $category = shift;
$category ?
($category = qq~$category <input type=hidden name="Category" value="$category">~) :
($category = &build_select_field ("Category", "$in{'Category'}"));


AND

Code:

Category => $category


Regards,

Eliot Lee
Quote Reply
Re: Where Is The Category? In reply to
Thanks Eliot for the quick response.

My add.html and add_error.html do not show this tag: <%Category%> but rather display the actual list of categories while the modify and modify error html pages do display this <%Category%> so I can assume that is the problem. The mystery I suppose is how do I do that?

Stevo

Quote Reply
Re: Where Is The Category? In reply to
All you need to do is add the tag <%Category%> into the templates add.html and add_error.html. HAve a look at some of the other tags in the templates for an idea of how to do it. A basic answer would be to just put <Category%> in place of the drop down menu. Don't put it in as normal text, otherwise the <'s will be transfered into other values.

OK???

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: Where Is The Category? In reply to
In Reply To:
A basic answer would be to just put <Category%> in place of the drop down menu.
A basic answer would be to just put <%Category%> in place of the drop down menu. Smile

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Where Is The Category? In reply to
Sorry, i was in a rush!!!! Cool

Andy

http://www.ace-installer.com
webmaster@Ace-installer.com
Quote Reply
Re: Where Is The Category? In reply to
I was pointing it out more for the person having the trouble incase that didn't add the extra % and got more errors.

Paul Wilson.
new - http://www.wiredon.net
Quote Reply
Re: Where Is The Category? In reply to
Thanks Anthros and Ace!

Stevo

I realized while I was doing some edits I downloaded the source code of the pages in question and then proceeded to modify those. While this works perfectly(?) well it replaces the category tags with the actual list.

While this may not be the best way to accomplish the following I also now realize that if you did not want submitters to submit to certain category levels you could (should) be able to just delete them from the list so they would not appear as optionS. I know there is a mod that covers this but this could also work. Of course to add a category would require the reverse. Just a thought........

Quote Reply
Re: Where Is The Category? In reply to
Uh...there is an EXCLUDE CATEGORY MOD, listed in the Resource that DYNAMICALLY creates a list of categories WITHOUT the ones you want to exclude!

Regards,

Eliot Lee