Sam Clifton
unread,Aug 10, 2016, 5:17:23 PM8/10/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Joomla! General Development
Hi there,
I'm creating a large component that manages a list of customers.
My situation.. I have a menu named Admin that uses a different site template than the default. When you navigate to one of the admin menu items, the admin theme is used.
However! In the situation where you are on the Customers list and click on a user to navigate to the customer layout from the Customers View, the default site template is used.
I would have thought that if you set a view as a menu item and said that it should use X template that it would be used throughout all of that views layouts also.. But apparently not. Am I doing something wrong? Do I have to add extra code to keep the template set by the menu item or what?
In the view/customers/default.php each customer link hrefs to "index.php?option=com_parcme&task=Customers.showCustomer"
The Customer.showCustomer() will then collect the data and redirect to the views customer template using "$this->setRedirect(JRoute::_('index.php?option=com_parcme&view=customers&layout=customer', false)"
The user is directed to the layout. But the default site template is used, instead of the one set by the menu. Any help would be greatly appreciated.
Kind Regards
Sam