Has anyone figured out a hack that will allow assignment of a template to the entire CB component? I understand how joomla is menu driven, and you can only assign a template to a specific menu item...blah blah blah. Right now I can assign my desired template to the parts of CB that have a menu link, but when for example, you click on a members avatar (or any other part of the CB component that you can't tie to a menu item), it goes to the user's profile but reverts to the default template.
It seems to me a simple "if/else" condition in the joomla index.php (around line 195) might do he trick, as in :
if ( $option='com_comprofiler') $template='desired template';
else $cur_template = $mainframe->getTemplate();
I've tried this several different ways, but no workie, probably because my syntax is wrong. Seems to me that this would be an easy way to get around the whole assigning templates mess....
Any thoughts?
Post edited by: spikec, at: 2006/04/11 09:29