Site Blocks (v. 2.95+)
In version 2.95, pop up pages have been reconfigured as Site Blocks, so they can be used within page, category and item descriptions.
-
Go to Site Blocks in the Advanced menu.
-
Add or Edit a new site block:
- Title: Enter the name you wish to call this snippet. This will be used as the link name if you use the block as an item pop up page. Otherwise, it will be used as a description inside the storeadmin area.
- Code (new to 2.95): If you wish to use this block within page, product or category descriptions, enter a code name here. Codes must be unique and can only contain alpha numeric characters.
- Content: Enter the text you wish to appear on the pop up page or block that will be inserted into other pages, products or categories. This content can include HTML coding, with images, tables or other HTML elements.
- Admin Only: If this box is checked, only someone logged in as a master administrator will be able to edit the content. All users will still be able to add the block to a page, product or category, and it will appear in the Site Blocks drop down if you use TinyMCE.
-
How to use the Site Blocks:
Pop Up Pages: You can use Site Blocks just as you would in previous versions, as pop up pages within items.
- Add or edit a product (E-Store > Products).
- Select a Site Block from the Pop Up Pages 1-5 fields (earlier releases only have one Pop Up Page).
- This item will appear as a link in the product description, when viewing a detailed item or single item view.
Content Information (new to 2.95): You can now use Site Blocks to insert code snippets into product, page or category descriptions. This allows you to change content in just one place, and it will update every page, product or category that has that code snippet.
- All site blocks that are to be used for content must have a code slug added. In the Site Blocks area, make sure you have entered a value in the Code field.
- Edit a page, product or category.
- In the Description field, enter a code block (e.g. %BLOCK_CODENAME% if the Code in your Site Blocks is CODENAME) wherever you want to show the content. If you are using the TinyMCE editor, a Site Block drop down box should appear which displays the blocks you can insert.
- Save the page, product or category.
- In the front end, %BLOCK_CODENAME% will be converted to the Content of your Site Block.
- If you edit the Site Block, any products, categories or pages that contain that Site Block code will automatically show the new updates.
Site Blocks are handy for content that is repeated in multiple places. For example, a newsletter box added to several pages, a bestseller notice added to multiple items, a sale message added to many categories. This saves time, because you only have to change the content in one place, instead of editing several pages, products or categories.example: A store administrator added the following Site Block:
Title: Newsletter
Code: NEWSLETTER
Content: HTML from Mail ChimpThe store administrator can now add %BLOCK_NEWSLETTER% to any page, product or category description. On the web site, %BLOCK_NEWSLETTER% will be automatically converted to the HTML you added to the Content field of the Newsletter Site Block.
If the store administrator changes the Newsletter Site Block content at a later date, the site will show these updates. You will not have to change every single product, page or category.
Note: If Admin Only is checked, a general user will not be able to change the content. Only a master administrator can change content marked as "admin only".