display blocks


Author Message
parpar

Posted: 2/13/2012
Quote message 

hi

how can i display a certain block in some pages but not in others?




 
Gina

Posted: 2/15/2012
Quote message 

Hi,

You can edit the code after exporting the template. If you mean blocks in sidebar or header or footer, you can go to your index.php and wrap the code into
<?php
if (!in_array($_GET['page_id'], array(520,521,523))) {
?>

......

<?php
}
?>

Of course, 520,521,523 must be replaced for the ids of your pages where you do not want these blocks to appear.

Apart from numbers of pages the code can use any identification that the pages have in their urls.