Gossamer Forum
Quote Reply
Category table ...
Hello,

I have a problem with the use of the Category table.

I added a AllowLinks column.
Enumeration Type (Yes, No).

I added this Gobal on the include_form.html page.

<%AllowLinks(ID)%>

sub {
my $id = shift;
my $cat = $DB->table('Category')->get($id);
return $cat ? $cat->{AllowLinks} : ' ';
}

It turns over, for example : $VAR = 'CODE(0x84908c4)';

I would like, that it turns over the value like Yes or No.

Then, I would like to use a condition on the add.html page or include_form.html :

<%if AllowLinks eq 'Yes'%>
---
<%else%>
---
<%endif%>

I sought an answer on the forum, but, I did not find an answer.

Somebody can help me?

Thank you

Mick
Subject Author Views Date
Thread Category table ... mick31 2710 Sep 19, 2004, 11:52 AM
Thread Re: [mick31] Category table ...
afinlr 2634 Sep 20, 2004, 4:48 PM
Thread Re: [afinlr] Category table ...
mick31 2618 Sep 21, 2004, 12:30 AM
Thread Re: [mick31] Category table ...
Andy 2609 Sep 21, 2004, 12:51 AM
Thread Re: [Andy] Category table ...
mick31 2607 Sep 21, 2004, 6:08 AM
Thread Re: [mick31] Category table ...
Andy 2609 Sep 21, 2004, 6:14 AM
Thread Re: [Andy] Category table ...
mick31 2607 Sep 21, 2004, 6:47 AM
Thread Re: [mick31] Category table ...
Andy 2613 Sep 21, 2004, 6:51 AM
Post Re: [Andy] Category table ...
mick31 2577 Sep 27, 2004, 9:19 AM