Elxis CMS Forum

Extensions => Templates => Topic started by: SarDira on December 11, 2012, 23:00:36

Title: Template overrides?
Post by: SarDira on December 11, 2012, 23:00:36
Hello,

I've been searching for 2 hours for this but was not able to find an answer. I'm new to Elxis. I have worked with Joomla! for sometime so I have some idea about it.

In Joomla! you can override core output using the active template. Can Elxis do the same? if not is there any other way to change the output rather than editing the core files?

Example:
Quote
For example, if you want to change the way that the 'Article' view displays a com_content article, then you should copy the file at
PATH_TO_JOOMLA/components/com_content/views/article/tmpl/default.php
to
TEMPLATE_NAME/html/com_content/article/default.php
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
Title: Re: Template overrides?
Post by: xmanhattan on December 12, 2012, 13:19:55
Hello SarDira,

Elxis has default css settings in its core.  The normal method of changing the css is to do it in the file template_css.css.

There are 2 methods to Linking to css files, direct by file name or to request all of the files in the css directory of the template that you are using.
Title: Re: Template overrides?
Post by: SarDira on December 12, 2012, 23:15:52
Thank you for your replay xmanhattan, But I want to safely edit the HTML not css. In Joomla! you can copy the file from the component directory to the template directory and then Joomla! will use the file in the template instead of the older one. This enables safe modifications
Title: Re: Template overrides?
Post by: xmanhattan on December 13, 2012, 09:13:31
The html is in the index.php of the template that you are using.  You can edit the html file directly from within the site as an administrator.
Site -> Template Manager -> Site Templates
Click the selection of the template you are using and then click edit Html.

Title: Re: Template overrides?
Post by: datahell on December 13, 2012, 22:35:06
In the old Elxis series (2009.x) you can edit template's php file from Elxis administration.
In the new Elxis series (4.x) you are not allowed to edit any php file from Elxis administration. In this case you must edit it via ftp.
Title: Re: Template overrides?
Post by: SarDira on December 15, 2012, 12:34:05
Thank you for your replays. I know how to edit PHP and template files. I'm just asking if I MUST edit the original file or if I can edit a copy Did you check the link for Joomla's template override? there I can copy the template file from the component folder into the template folder. Joomla will look there first. This way all my edits will remain even after upgrading.

Is this a Mambo feature or Joomla feature? is it in Elxis?
Title: Re: Template overrides?
Post by: xmanhattan on December 17, 2012, 13:47:09
You edit the original file.  Joomla templates are not directly compatible.