B
B
Boris Yakushev2016-03-06 19:59:44
DLE
Boris Yakushev, 2016-03-06 19:59:44

Remove the {content} tag from the main page, but leave it on the rest?

Good afternoon.
In the template, on the main.tpl page, there is this code:

<div class="dle-content">
    {custom category="1,2,3,4,5,11,14,16" navigation="yes" limit="10"}
</div>
{content}

Custom is responsible for displaying only the specified categories on the main page, and content is responsible for the normal display of content on other pages. If you remove the content tag from main.tpl, then on the remaining pages there will be no left block with content.
How to leave the content functionality on the rest of the pages, and at the same time disable it on main.tpl?
Thank you all very much.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris Yakushev, 2016-03-06
@za4me

[not-aviable=main]
{info}
{content}
[/not-aviable]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question