Components Anywhere

Component using different template

7 months 3 weeks ago #89486

Tim Rinkel's Avatar Tim Rinkel


Is it possible to call a component and have it use a different template than the page you are on?

eg: {component index.php?option=com_somecomponent&view=the_view&Itemid=231&<something for template>}



7 months 3 weeks ago #89487

Peter van Westen's Avatar Peter van Westen Admin

You should be able to add a &template=.... attribute to the url (like you can with any url on your website).

But generally speaking, changing the template won't have much effect. As the component is rendered through the 'component.php' subtemplate file (which is usually the same for every template).
It should however use any template overrides you have in the specified template.