Modifications on particular page
ImpressPages CMS allows to set different layout for each zone, but not for each page individually. The easiest way to add design modifications to particular page is by adding condition to your theme layout (eg. ip_themes/lt_pagan/main.php):
<?php
if ($site->getCurrentElement()->getId() == xx){ //replace xx to required page ID
echo 'something';
} else {
echo 'someething else';
}
?>
How to find out page ID?
Add following code to your layout (eg. ip_themes/lt_pagan/main.php):
<?php echo 'Page ID: '.$site->getCurrentElement()->getId(); ?>
It will print page id on each page.
Any smarter way of doing that?
Yes. There is a smarter way to do that. But it requires more coding. This plugin is a good example of doing it right: http://www.impresspages.org/extensions/plugins-2.x/associated-images/
It adds additional tab to administration panel, where you can add images to particular pages. You can modify this plugin to add any other options to particular pages. If you feel comfortable with PHP and your client needs convenient way to identify pages that should be displayed differently, this is the way to go.
Write a comment
You must be logged in to comment.