How to create the global block

How to create the global block

If you the webmaster also supervise the work of online project, it will be useful for you to learn how to make the global block allowing to optimize the project — with use of the global block on your website, you can apply changes to all project, having edited only one of its templates. Global blocks give many opportunities for optimization of design of the websites and also accelerate your work and do it more productive. Learn to create global blocks simply if you already have an idea of the interface of the control panel of projects of Ucoz.

Instruction

1. Open the control panel of your website. Come into "Management of design" - you will see sections among which there will be global blocks, the designer of templates, fast replacement and so on.
Come on the necessary tab (global blocks) and click "Add the block", having left selection on the Global Blocks for the Normal Version of the Website point. Enter in the empty field the name for the new global block, using only Latin letters. Click "Add", and the block will be created.

2. Click on the name of the block to open the data entry field of the HTML-code. Change a template as it is necessary for you, enter the required set of the code in the empty field, and save changes. Copy the code of the block and come back to the previous menu.

3. In any global block before the name there has to be a word GLOBAL – thus, in the code of the block you will see $GLOBAL_название блока$. Creating other block, call it not as the first — and in its name will also be the word GLOBAL preceding the main name. Insert the turned-out code which you copied into a template there where it is necessary.
To the right of $GLOBAL heading you will see a red cross — it deletes any of the created blocks if need is gone in them.

Author: «MirrorInfo» Dream Team


Print