S
S
Sergey Goryachev2015-10-09 00:05:39
PHP
Sergey Goryachev, 2015-10-09 00:05:39

How to hide a block only on a specific Joomla 3 page?

Good to everyone!
Question on Joomla 3, and partly on PHP, I don’t even know where to dig better.
On a Joomla 3 site, I often use the constructs:

<!-- Только для главной страницы -->
<?php if (JURI::current() == JURI::base()) : ?><?php endif; ?>
<!-- Для внутренних страниц -->
<?php if (JURI::current() !== JURI::base()) : ?><?php endif; ?>

To display a block or text only on the main page or only on the internal ones, respectively.
And now the task has arisen to hide the "Contacts" block on the "Contacts" page (let's say its ID=5, if necessary).
PS: Thematic forums on Joomla 3 did not help me much. Perhaps here.
PPS: Displaying through the standard module manager is not convenient, since the block already consists of three modules and contains static text.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kumanin, 2015-10-09
@webirus

Create a module and configure it using standard Joomla tools.
And these are all crutches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question