R
R
Roman Kozhevnikov2015-09-08 14:28:31
CMS
Roman Kozhevnikov, 2015-09-08 14:28:31

What to add to the files of your own Joomla theme so that it displays Content and Categories?

I followed the Joomla Docs recommendations: I created the index.php and templateDetails.xml files, filled them with the minimum required content, set the theme in the admin panel. But the resulting theme does not display the Content and Categories that I added in the admin. It only displays the title "Main". I suspect that I need to add something like this to index.php <jdoc:include type="articles" />and <jdoc:include type="categories" />in the place of the page where I want to display articles, maybe I need to somehow declare that I have such sections in templateDetails.xml. But I don't know which PHP code is responsible for this. Tell

Answer the question

In order to leave comments, you need to log in

1 answer(s)
#
#rybak, 2015-09-08
@Most998

<div class="content">
    <jdoc:include type="component" /> <!--тут будут материалы и категории-->
    <jdoc:include type="message" /> <!--тут будут появляться системные сообщения-->
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question