This update will be especially interesting to those who create custom templates and fundamentally customize their websites. It is a major step forward for uCoz.
I will describe the layout changes, thanks to which we will be able to create more modern and high quality responsive templates for you, our users.
The update is available on all servers!
1. Menu structure update
The main site menu used to consist of a list where each element contained a huge number of nested div
blocks and a link itself, and submenu items were presented in the code as a separate block with the absolute positioning and with extra blocks. To style such menu, and especially to add beautiful drop-down submenus, you had to use scripts and other custom solutions.
Now the main menu and its submenus are simple nested lists with links that can be easily styled via CSS.
To get such menu in your website template, you need to replace the code $SMENU_...$
, or in Template Builder replace
<!-- <sblock_menu> -->CONTENT<!-- </sblock_menu> -->
<!-- <sblock_nmenu> -->CONTENT<!-- </sblock_nmenu> →
You will need to style the new menu yourself, or wait for the new templates where it has already been done.
The old menu will work as well, to ensure compatibility with the old templates. If the menu in Site Menu Builder is not specified explicitly, the old menu will be displayed in the sidebar. For the new menu to be displayed, you need to add the rule "nmenu": 1
to the config (see p.6).
2. When creating a template in Template Builder, it is possible to create custom global blocks
I.e. now, when creating a template, custom global blocks can be created besides the default blocks header, footer, container…
. This can be done in the following way in the Template Builder mode:
<!-- <global_blockname> -->
here goes block content
<!-- </global_blockname> →
When creating the template, the global block $GLOBAL_BLOCKNAME$ with the specified content will be created automatically. Handy, isn't it?
3. Classes in entry details
The content of entry details (eDetails
) will be wrapped into classes in all modules where eDetails are present, for example:
Therefore it will be possible to style entry details in a beautiful and modern way in all standard templates, e.g.:
4. Changes to the logic of entry displaying in archives
Entries in the archives used to be displayed in a separate table cell each. Now they will be displayed as a list. And it will be possible to implement responsive entry displaying, depending on the width of user's screen.
5. Styling of user avatars
The avatar on a user's page and in comments has been wrapped into a span with the class user_avatar. Thanks to this avatars can be styled in the default templates.
6. Rating stars
At the moment the threadbare old stars are displayed in all standard templates. Now they can be changed all at once, when creating a template. Just add the following in Template Builder:
<!-- <config> -->
"rstars_b_image" : "/img/path",
"rstars_b_size" : "30",
"rstars_s_image" : "/img/path",
"rstars_s_size" : "15"
<!-- </config> →
are the paths to big rating stars (displayed in E-shop, Photo Albums) and to small stars, and rstars_..._size
are the sizes of these stars.
Now we just need to develop new cool and modern templates (and there are some already waiting in the wings), and you just need to wait for them
We have created a website
with one of the new responsive designs for you to be able to test it.
I'm not active on the forum anymore. Please contact other forum staff.