Volume II - Issue III - March 2002
Construction Tools
Use the Mirror Block for Better Pages
William Bennett
Customer Support Supervisor
Do you want to setup a navigation bar and have it the same on every page? What if you need to make a change to that bar? Wouldn't it be nice if you could change it one time and have it change on all your pages?

Well, our programmers have made these wishes a reality. They have created the mirror block!

The Mirror block was created to allow you, the website designer, greater convenience in managing your pages. With this block, you can create a section of Web elements on a page in EZ-PageBuilder and then "mirror" that block on any number of other pages. This feature has many benefits. For example, if you have something that repeats on many pages, you no longer have to recreate that element on every page. Further, if a change needs to be made to that element, it can be changed in one spot and applied everywhere it appears.

There are three primary steps in setting up a mirror block.

Create a Mirror Block Page
First of all, we recommend creating a dedicated mirror block page. Enter EZ-PageBuilder and create a new page. Save the page as "mirror.html" or something else that will make sense to you. This page will not be seen by the public but will be used to create the reference blocks.

Create the Reference Blocks
From now on, we will call the blocks that are copied from one page to another "reference blocks." On your mirror.html page, add in all of the elements that you would like copied on other pages. If you will be mirroring more than one block it can be more convenient to place them within a layout manager block. That way, you only have to mirror the one layout manager block and all of your other blocks will come with it automatically. The other benefit to this technique is that you can add another block within the layout manager at a later time and that block will then appear as part of the original reference block.

After creating your reference block on mirror.html and saving it, make certain to memorize the block number(s) of the reference blocks. Also, you will want to be sure not to add any blocks above your reference blocks on your mirror.html page as that will change the block number of your reference blocks and may cause your pages to display improperly.

Place the Mirror Block
Open or create the first page on which you would like the reference block to appear. In the area that you would like to place your copies of the reference blocks, add your Mirror Block. It will ask you to use EZ-Browse to find your mirror.html page and then it will ask you to select the block number of your reference block. After submitting, you will find your reference blocks displayed on the page just as they were in mirror.html. Save this page and repeat this process on as many pages as you would like to have the reference blocks.

Edit the Reference Block
If you want to change the way that the reference blocks appear on all of your pages, open the original mirror.html page. Edit the blocks as you see fit and save mirror.html. When you have finished any editing of the block you are mirroring you will need to go into global information and submit. Then all the references to that block are updated, and your changes are complete.

Conclusion
The mirror block is a very useful and powerful tool. This is an advanced feature and may be tricky in the beginning, but with a little practice and experimentation, you will come to utilize this great tool and find great benefit in it.

EZ-NetAdvantage!™, EZ-Calendar™, EZ-MailingList™, EZ-FormBuilder™, EZ-FileManager™, EZ-LinkTrader™, EZ-Audio™, EZ-ColorPicker™, and EZ-PhotoAlbum™ are Trademarks (™) of ICServ® Inc. EZ-NetTools® is a Registered Trademark (®) of ICServ® Inc.