I'm new to Joomla and currently creating a template for my website. Unfortunately I'm facing a problem which I did not found out how to solve.
I wanted a front page which is different from the rest of the website. On the web I read that I have to override the {template}/html/com_content/featured/default.php
file for a different front page. Until here, this works fine.
The problem I encounter is that I want to have a page where all featured items are listed ordered by their publishing date (for example like most Blogs). I found out that I have to override the same file as for the front page ({template}/html/com_content/featured/default.php
) but I want to design this page completely different than the front page.
Is there a possibility to create something like a "second overwrite" in the com_content/feature
directory? E.g. creating a default_frontpage.php
in this folder and apply this override only to the front page while using the default.php
for the listing of the featured items?
What would be the best way to archive my goal? If possible, I want to avoid to copy the whole template with all its files (this seems error-prone to manage all dependencies to me) and instead create one file for the front page only.
Edit
As Michael answered, I added a new file called frontpage.php
in the html/com_content/featured
folder (and yet copied the content of the default.php
) but unfortunately, I cannot choose this file as the template theme. Do I have to provide information somewhere that there is a second file beside the default template?