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
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