Skip to end of metadata
Go to start of metadata

Static content is usually the content of your site that is rarely changed. There are several created Static Contents provided within the software which you can use: ‘About’, ‘Contact’, ‘Terms of Use’ and ‘Boolean Search’.

To get to the Static Content page you need to go to Admin Panel > Templates > Static Content.
On the opened page you will see the list of all Static Contents existing in the system:

ID – the unique ID of a Static Content. This parameter is used by system and will not be visible for users;

Name – the name of a Static Content;

Language – the language of a Static Content;

Actions – available actions you can make to your Static Contents.

Editing Static Content

To modify a particular static content click on the 'Edit' icon opposite this particular Content in the table. E.g. you want to edit ‘About’ Static Content.
You will see the following page opened:

Here you can change the static content using WYSIWYG editor. You can edit the following parameters:

ID - ID of a static content (it will be used to create a page for this Content). It is the system parameter and will not be visible for users. Make sure to not use space characters for ID value;

Static content name - name of a static content;

Language – you can select the needed language of a static content. For example if you have bilingual site you can have the same Static Content (e.g. ‘About us’) in two languages, and will be able to edit them separately;

Static content: - the content itself that will be displayed. Using WYSIWYG editor you can edit it.

Note:

To paste the text from MS Word use the “Paste from Word” function of the editor, like shown on the picture below:

After you made all needed changes for the static content press the “Change” button at the bottom of the page.

The changes will be applied and you will be redirected back to the Static Content page.

Creating a New Static Content

You can also create a new Static Contents if needed.
On the top of the Static Content page you can see the “Add New Static Content” form:


Fill in the fields of this form:

ID - ID of a static content (it will be used to create a page for this Content). It is the system parameter and will not be visible for users. Make sure to not use space characters for ID value;

Name – name of a static content;

Language – select the needed language of the creating static content.

After setting these parameters – press the “Add” button. The newly created content will appear at the bottom of the Static Contents table.

Then clicking on the “Edit” icon opposite this Content you will be able to edit your new Static Content, add text and create a page for it is needed.

Note:

If you want a Static Content to be added to one of the existing site pages you need to edit a relative template (depending on a page and exact place on that page you want the content to be displayed).

You can use the “Highlight Templates on Front-End” function to easily find the needed template to edit.

To insert a Static Content to template code use Insert Module/function form on the edit template page.

 

Creating a Page for a Static Content

If needed you can add a new page to the system to be used for displaying you Static Content. For that you need to click on the 'Edit' icon opposite the content again, e.g. "Terms of Use".

On the top of the opened page you will see the “Create a page for this Content” link:

Clicking on this link you will be redirected to the "Add User Page" of the Site Pages menu with the following form displayed:

You will only need to specify the desired URI (format is /desired_uri/) and Title for the new page. The Module, Function and Parameters values will be prefilled by the system.

After filling in all the fields press the “Add” button to complete creating a Page for your Static Content.

Creating a Link to a Static Content page

Once you have a Static Content and a page for it created you may want to place a link to it somewhere on the site. For that you need to edit the apropriate template.
You can use the Highlight Template function to easily find and edit the needed template.

For example you want to place the link to Privacy Policy page in the footer menu after the Contact menu. 
For that you need to edit the footer.tpl (Admin Panel -> Templates -> Edit Templates -> Menu -> footer.tpl
You can use the code of ofther footer manu items as sample, replacing the URI and link text with the appropriate ones in your case:

In the current example the code will be:
<a href="{$GLOBALS.site_url}/privacy_policy/" >[[Privacy policy]]</a>


And you'll need to insert it after the 'Site Map' menu code, like shown below:

Note:

As you can see the inserted code also contains &nbsp; <img src="{image}sepDot.png" border="0" alt=""> &nbsp;

This is the code of the separator image used in the footer menu.

 

The result will be the following:

Deleting Static Content

If there is a needless Static Content you can easily delete it from the system pressing the red “Delete” button opposite this particular Static Content, e.g. "FacebookApplication":

It will be deleted immediately and can’t be restored; you can only create it again if needed.

Please note that default static content cannot be deleted via Admin Panel. This is done to prevent system misfunctioning in case some improtant default static content is deleted. Static content created by Admin can be deleted.

  • No labels