Managing Pages - Part 2

Posted: 11-Oct-2012
Category: Using PyroCMS

In the second part of Managing Pages we explore Page Chunks.

Page Chunks

Firstly, a quick explanation of what I have done here to reduce the overall height of the screenshot. I have selected the WYSIWYG - Simple mode of the content editor. This mode does not provide the full gamut of formatting options, but will save us on a bit of screen real-estate for the purposes of this exersize.

There are as you will see, other options for the editor. You will typically only need to use the WYSIWYG - Advanced mode when editing your pages.

You will see below the content editor, a button to Add a Page Chunk.

Select New Page Chuck

When you add a new Page Chunk you will see that another instance of the editor appears below the original Page Chunk. There are a few points to be aware of here.

Added Page Chunk

 Firstly, each chunk has two individual identifiers. The first chunk is the "default" chunk and has an identifier - technically referred to as its ID and there is also provision for a second form of identifier which is technically referred to as a "class". Normally, these idetifiers would be used to apply unique styling or layout for the page chunk. Typically, if you need to add or manage chunks, then you would be provided with the required identifiers, IDs and / or class names.

The red button is something you would only use if everything goes pear-shape so use with extreme caution !

So, where would page chunks be used in practice ? The screenshot below was taken from the home page of this site.

extract from home page

The first 2 lines are included in the default, or first chunk and each of the 3 columns of text below that are in their own individual chunk. This was done to simplify the work needed to be carried out if all this content was in just a single chunk..

So, to summarize, Page Chunks are handy features for allowing for complex layouts of the content on a single page. You may never have to use them, but, just in case you do, this will serve to give you an idea of how and when they can be applied to your website.

Next up will be Meta Data...