Forum moderator: bigblog  
Global Blocks
Sunny
Posts: 9296
Reputation: 456

Message # 1 | 2:04 PM
Global blocks are blocks available in all templates of your website. By means of global blocks you can optimize the design of your website, having splitted it into common parts. With the help of common blocks you can update the design on the whole website by means of editing only one block template.


Where to create a global block in the Control Panel:


Go to Customize Design -> Global blocks.



Click New block.



Enter a block name (let it be LINKS in our case) and click Add.



A block name must contain only uppercase Latin letters, max length is 10 characters. This name will serve as the $code$ of the given global block in templates.


A new block will be added to the list. In our case it is $GLOBAL_LINKS$.



Go to Control Panel -> Customize Design and find the block template on the list of templates under Global blocks.



Add any code you need to the template, save it, and paste its $code$ (e.g. $GLOBAL_LINKS$) into the templates where you want it to be displayed.

Max number of global blocks is 10, including the 4 default blocks ($GLOBAL_AHEADER$, $GLOBAL_BFOOTER$, $GLOBAL_CLEFTER$, $GLOBAL_DRIGHTER$). The number of default blocks differs in different designs, some templates have only 3.

Note: If you are going to edit templates you must have basic knowledge of HTML and CSS.


Question-Answer


How can I add a global block in a global block?

You can't... we don't support global blocks nesting.

I've noticed the global block $GLOBAL_SOANDSO$ will not run inside the $CONTENT$ area.
Correct me if am wrong!


You are right. Global blocks work in templates only

Just 10 global blocks?

10 is the limit, you can't create more global blocks.
Attachments: 1514136.png (26.8 Kb) · 8639095.png (22.1 Kb) · 7644645.png (25.3 Kb) · 4539422.png (26.7 Kb) · 3073300.png (25.9 Kb)

I'm not active on the forum anymore. Please contact other forum staff.
Dartz
Posts: 1931

Message # 61 | 3:18 AM
NTP, use builder: http://forum.ucoz.com/forum/5-5862-1

It's better and this tutorial will be updated.


[... With uCoz since December 2 2007 ...]
Flame_Master
Posts: 6
Reputation: 0

Message # 62 | 9:10 AM
Hi,
Can I disable those global blocks for a certain page?
http://hoae.ucoz.net/
I need those side blocks gone for a site page. I noticed that they don't appear when in a forum.
Any help please? sad
Sunny
Posts: 9296
Reputation: 456

Message # 63 | 9:40 AM
Quote (Flame_Master)
Can I disable those global blocks for a certain page?

Yes. If you want to disable them for a page created via Page Editor then tick off "Apply personal template for the page" when creating/editing a page. If for a module - then edit corresponding templates of the module you need ('Module main page' as a rule).


I'm not active on the forum anymore. Please contact other forum staff.
Flame_Master
Posts: 6
Reputation: 0

Message # 64 | 10:18 AM
All right, I did that and still no change. cry . To be clear enough, all I want is to make those "Side blocks edited by Builder" to be disabled. Sorry If I am being dumb here.

http://hoae.ucoz.net/index/0-7
The page estate is very less because of the "side-blocks".

Its okay now. I fixed it. Just made it have "Personal Design Template" and then removed the CLEFTER and DRIGHTER. smile

Post edited by Flame_Master - Tuesday, 2009-12-15, 10:33 AM
enzas
Posts: 20
Reputation: 0

Message # 65 | 5:50 PM
dunno in which section i need to ask,so i asking here,when i'am going to global blocks section and want to make a new one global block i can't create it course,no button "create global block" i only find [?] on that place,anybody can help me,were is a problem?
Unique
Posts: 421
Reputation: 35

Message # 66 | 6:00 PM
Maybe you have 10 blocks and 10 is max. You need to delete some to create new one.
enzas
Posts: 20
Reputation: 0

Message # 67 | 6:39 PM
but i got 12 and i can't delute $GLOBAL_AHEADER$ $GLOBAL_BFOOTER$ $GLOBAL_CLEFTER$ $GLOBAL_DRIGHTER$
even i didn't need them dry
Dartz
Posts: 1931

Message # 68 | 9:12 PM
You need them or website wont work properly.

You have more than 10 blocks therefore you reached limit.


[... With uCoz since December 2 2007 ...]
Love
Posts: 13
Reputation: 0

Message # 69 | 3:36 PM
Dartz,

please help me... i have created a page, i want the "add new entry" and rest like the ones in publisher for that page but without the global blocks....

i have tried to delete the clifter n drighter, but it didnt work...please help me!!!


^_^
Dartz
Posts: 1931

Message # 70 | 11:14 PM
Please provide website's url, design's number and
page where you want both block sides to disappear.

[... With uCoz since December 2 2007 ...]
Love
Posts: 13
Reputation: 0

Message # 71 | 9:01 AM
http://mechmaniacs.ucoz.com/index/sae_official/0-11

design number 451

i also want the sub pages for tht page to have NO global blocks smile


^_^
Dartz
Posts: 1931

Message # 72 | 4:40 PM
Discuss design #451 in here: http://forum.ucoz.com/forum/5-9958-1
[... With uCoz since December 2 2007 ...]
muzammal
Posts: 3
Reputation: 0

Message # 73 | 11:43 AM
please help me my website showing this. i want change my template but not.http://islambest.ucoz.com/

Added (2010-05-24, 5:43 Am)
---------------------------------------------
how i add new template ?

Dartz
Posts: 1931

Message # 74 | 11:45 AM
Control Panel -> Top Bar -> Settings -> Common Settings -> Site design.
[... With uCoz since December 2 2007 ...]
muzammal
Posts: 3
Reputation: 0

Message # 75 | 11:51 AM
when i select design then that not apply to my website?pls help me.why this is not apply?

Added (2010-05-24, 5:50 Am)
---------------------------------------------
yes dartz i do already this but not activate on my website.,!

Added (2010-05-24, 5:50 Am)
---------------------------------------------
yes dartz i do already this but not activate on my website.,!

Added (2010-05-24, 5:51 Am)
---------------------------------------------
yes dartz i do already this but not activate on my website.,!

Search: