User guide for the Content page extension
The content page extension is used to modify content pages. New content pages are created, optionally with meta data for improved search engine support. Content pages are modified using the built in editor, which looks similar to the text processor Word. The functionality is described in greater details below.
Section 1 - Content page details
The first section contains the input fields used to create content pages and modifiy the meta data. Each of the fields will be described in creater details in the following.
- Filename (required)
This field needs to be filled out every time. The filename is used in section 2 in the list containing all content pages in the system.
- Title (optional)
The titel shown in top of the browser window is set in this field.
- Accessible
Leave this item checked (default), to make the page available to visitors. Uncheck this option to protect the content page from being displayed.
- Keywords (optional)
Key words covering the content of the content page, can be set in this field. This will help search engines place the website properly in search results.
- Description (optional)
A short description can be set here, which is used by some search engines, to create a short description of the content page in the search catalog.
- Allow indexing
Leave this item checked (default), to allow search engines to index (record) the given content page into the search catalog. Remove the checkmark to request search engines not to index the content page. Notice that it is up to the search engine to respect this request, and it is no guarantee that the material will not end up on one or several search engines on the internet.
Section 2 - Content pages
Section 2 contains a list of all content pages in the system. Click a content page to select it, followed by a click on one of the buttons described in further details below.
- Edit
The content page's meta data is loaded into section 1, from where it can be updated.
- Edit content
The button opens a new window for editing the actual content of the content page (see more below)
- Display
The content of the content page is displayed as a preview (without the additional content on the website such as the menu)
- Delete
The selected content page is permantly removed from the system. As an alternative the Accessible checkmark can be removed, to make the content page inaccessible, and still keep it in the system.
Editing content
Editing content pages is an easy task in Sitemagic CMS, thanks to the
TinyMCE component from Moxie Code. The image below demonstrates how easily a content page can be constructed with images, text and formatting.
Insert content page extension
| The content page editor tool contains a very unique feature in Sitemagic CMS. It is possible to insert extensions directly into content pages with just a couple of clicks. To insert for instance a contact form or gallery, simply click the brown toolbox underneath the blue floppy disc. Select the extension to insert, and it will be inserted immediately after selection. Extensions are displayed as an image with 6 icons, which is replaced by the real extension, when the content page is displayed on the website. |
 |
Insert images, links and multimedia
| It is easy to insert images, create links to internal and external pages, as well as inserting multimedia such as flash videos. The image to the right marks the buttons used to create links (1), insert images (2), and insert multimedia such as Flash, QuickTime, ShockWave, Windows Media, and Real Media (3). |
 |
 |
|
Insert link
Mark the text to be transformed into a link. Click the link-button (button 1 in the image above). Open the second drop down menu in the window opened, which contains references to extensions and content pages. Click a content page in the list, followed by a click on the Insert button in the bottom of the window.
|
| |
|
|
|
|
Insert image Click the mouse in the area in which an image needs to be placed. Click the image button (button 2 in the image above). Open the second drop down menu in the window opened, which contains references to all images placed in the images folder in the File manager (see image below). Select an image from the list, and click the Insert button in the bottom of the window.

|
| |
|
|
 |
|
Insert multimedia Click the mouse in the area in which a multimedia clip needs to be placed. Click the media button (button 3 in the image above). Open the third drop down menu in the window opened, which contains references to all media clips placed in the media folder in the File manager (see image below). Select an item from the list, and click the Insert button in the bottom of the window.
 |
Settings section
The settings section contains general settings for the Content page extension. The settings are explained below.
Generate URLs using
It is easy to create links to content pages using the
Menu editor extension. This is thanks to the Content page extension which automatically insert links to the content pages into the link picker.
Links in the menu editor extension can have different formats, depending on the URL settings above.
- Unique ID
Links are generated based on content pages' unique ID, if this setting is chosen.
Example: index.php?SMExt=SMPages&SMPagesId=13caf2c318a236dc90321d250517e6c2
This type of URL allows for a content page to change filename, without the need to update links to the given content page in the menu and other content pages, since the Unique ID never changes.
- Filename
Links are generated based on content pages' filename, if this setting is chosen.
Example: index.php?SMExt=SMPages&SMPagesFilename=News
This setting results in better looking links. However, all references to a given content page must be updated, if the filename of the content page is changed.
Userfriendly URLs
This setting results in pretty URL addresses, based on URL rewriting. The server/webhotel must support rewriting for the function to work. The configuration of rewriting rules is covered in the end.
URLs are generated based on the value in Generate URLs using, if Userfriendly URLs is activated.
- Unique ID
Links are generated based on content pages' unique ID, if this setting is chosen.
Example: 13caf2c318a236dc90321d250517e6c2.htm
This type of URL allows for a content page to change filename, without the need to update links to the given content page in the menu and other content pages, since the Unique ID never changes.
- Filename
Links are generated based on content pages' filename, if this setting is chosen.
Example: news.html
This setting results in better looking links. However, all references to a given content page must be updated, if the filename of the content page is changed.
Follow the steps below, to set up the rewriting rule on the server.
- Create a new text file with the filename .htacces (include the dot in the beginning) in the root of the Sitemagic CMS installation.
- Insert the following into the file.
Rewriteengine on RewriteRule ^([A-Za-z0-9_\.-]+)\.html$ index.php?SMExt=SMPages&SMPagesFilename=$1 RewriteRule ^([A-Za-z0-9_\.-]+)\.htm$ index.php?SMExt=SMPages&SMPagesId=$1 |
- Save and close the file. Now try to access a content page using the filename - ie index.html (remember to create the content page first).
The set up above is a great help in releation to SEO (Search Engine Optimisation), as it allows for all content pages to be indexed in various search engines. It is recommended to activate userfriendly URLs if possible.