hiya,
Yer, were using:
sub {
my $tags=shift;
if ($tags->{meta_name}){return;}
my $name=$tags->{Full_Name};
$name=~s,^([^/]+).*,$1,;
my $db = $DB->table('Category');
my $meta = $db->select('Meta_Description',{Full_Name=>$name})->fetchrow_array;
return $meta;
}
Our Structure is:
Category -> Anglia
London -> County -> Town.
'Category' were using to have variables of the category(town) the user is in, so on the front end you would see like: "Category in Town" (backend on the Meta Desc part in the Category Selector > Edit > Meta Desc would be: Category in <%category_short%>...
Then on the template it self it would just be <%custom_meta_desc%>
Problem is, is that with the custom tag above, it kills the <%category_short%> if its in the meta_description bit no the Categor Selector Part.
If <%category_short%> is just on the template part it works fine. but when you have multiple "changing category name in place, and category name for place" etc, makes it hard to find easier work arounds other than trying to fix the above code so it allows the <%category_short%> part to work.
Hope that makes sense :)
Cheers.
Yer, were using:
sub {
my $tags=shift;
if ($tags->{meta_name}){return;}
my $name=$tags->{Full_Name};
$name=~s,^([^/]+).*,$1,;
my $db = $DB->table('Category');
my $meta = $db->select('Meta_Description',{Full_Name=>$name})->fetchrow_array;
return $meta;
}
Our Structure is:
Category -> Anglia
London -> County -> Town.
'Category' were using to have variables of the category(town) the user is in, so on the front end you would see like: "Category in Town" (backend on the Meta Desc part in the Category Selector > Edit > Meta Desc would be: Category in <%category_short%>...
Then on the template it self it would just be <%custom_meta_desc%>
Problem is, is that with the custom tag above, it kills the <%category_short%> if its in the meta_description bit no the Categor Selector Part.
If <%category_short%> is just on the template part it works fine. but when you have multiple "changing category name in place, and category name for place" etc, makes it hard to find easier work arounds other than trying to fix the above code so it allows the <%category_short%> part to work.
Hope that makes sense :)
Cheers.