Stephen Baugh
Stephen Baugh

Reputation: 693

Joomla Template Overrides

In joomla, I need to assign specially designed templates for both "User Edit" (Where user edits their details)

/index.php?option=com_user&view=user&task=edit

and "Search Results"

I can't for the life of me work out how Joomla is selecting templates now. Certainly ItemID's aren't obvious and template overrides aren't giving any clues.

Currently Search is defaulting to the site 'home page' template, and the user edit to the 'default' template.

I don't think it should matter but we are using jfusion.

Can anyone point me in the write direction

Thanks Stephen

Upvotes: 2

Views: 3098

Answers (3)

Bingy
Bingy

Reputation: 644

template over rides are stored in the templates folder. so if you are using teh template called "beez" (comes stock standard) the template overides are in : templates/beez/html/

they are then stored under the module or component name. eg the article layout for com_content is stored in: templates/beez/html/com_content/article/default.php the template is usualy called default.php, but each component and module can have a few extra templates that they use as well as deafult.php

Now you are asking to change the "user" view for com_user when editing

I think that location is: templates/beez/html/com_user/user/form.php

if you ever want to find the origanal template which is to be overridden in this case: template that would be in: /components/com_user/views/user/tmpl/form.php

so in general templates/templatename/component_name/view_name/template_filename.php

Upvotes: 1

user161177
user161177

Reputation:

Lets try ::

/index.php?option=com_user&view=user&task=edit&template=template-name

parameter template comes from /includes/application.php:311

// Allows for overriding the active

template from the request $template = JRequest::getCmd('template', $template);

Hope it will work :-)

Upvotes: 0

DisgruntledGoat
DisgruntledGoat

Reputation: 72510

Templates in Joomla are assigned to different pages (via menu items) under Extensions > Template manager. The default template (with a star) is assigned to all otherwise unassigned pages. For the other templates, click the name and choose the pagesto assign it to.

If you don't have menu items assigned to the pages you mentioned, you can create a new menu called "hidden menu", make the menu items there, then link to those menus.

I think you're getting terminology mixed up though. "Template overrides" are files that reside in each template that override the default content output. There's only one set per template - if you want multiple template overrides you need multiple templates.

Upvotes: 1

Related Questions