Block Within Page Copy

Adding a block within page copy is very simple provided you are on a newer template running all the template helpers.  You can find this out by going to your website template and searching for content_for_layout.  If you find this:

echo $avtemplate->contentForLayout($content_for_layout);

You are ready to go.  Otherwise you will find this:

echo $content_for_layout;

And you need to update that line to say the previous:

echo $avtemplate->contentForLayout($content_for_layout);

After you have verified or upgraded to this helper you can then go on to create you block and set it up as you normally would.

The first step is to add a single line to the site configuration file.  Find the AVENGER ADDED SETTINGS section and inside the array for avenger.BlockPositionsAdditional add this line:

'position_name => 'Position Name - Short Description for this Position'

If AVENGER ADDED SETTINGS doesn't exist add it at the bottom of the config file and if the avenger.BlockPositionsAdditional doesnt exist you can add it using the following format:

/**
 * AVENGER ADDED SETTINGS
 */
$config['avenger.BlockPositionsAdditional'] =
array(
        'position_name' => 'Position Name - Short Description for this Position',
);

Add your block and select the page you would like it to display in and your chosen position declartion on the position tab.

The next step is wherever you would like the block to display add in the following simple tag:

*****************MAKE SURE THE ABOVE POSITION DECLARATION IS NOT IN SOME WAY CORRUPTED BY WYSIWIG EDITOR - CHECK HTML IF YOU HAVE ISSUES WITH DISPLAY****************************

Voila! You should now have a working block within your page content.

1-207-221-3255 | Contact Site Avenger - Your Content Management Superhero

Copyright © 2023 Saco Design, Inc. | All Rights Reserved | Website Design by Saco Design | Superpowered by Site Avenger