The easiest way would be with a plugin, something like a hook on add_link PRE and modify_link PRE, with some code like:
my @cat_ids = $IN->param('CatLinks.CategoryID');
if (@cat_ids > 2) {
print $IN->header;
print Links::SiteHTML::display('add', { error => "Please only select 2 categories" } );
return;
} else {
return @_;
}
}
You would really need one of those per event (or a way of deciding which template to show)
Hope that helps
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
sub check_add { my @cat_ids = $IN->param('CatLinks.CategoryID');
if (@cat_ids > 2) {
print $IN->header;
print Links::SiteHTML::display('add', { error => "Please only select 2 categories" } );
return;
} else {
return @_;
}
}
You would really need one of those per event (or a way of deciding which template to show)
Hope that helps
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!