The I18N Special Pages plugin allows you to define types of pages with custom fields, customized behaviour and customized display.
Together with the I18N Search plugin you can create (fully searchable)
Features:
INSTALLATION
Download the plugin from here and unzip it to the plugins directory of your GetSimple installation.
(Make sure you unzip/copy all files including the .htaccess files, which might be hidden on your computer)
For an optimum experience you should also install
(use the latest versions)
USAGE
Go to the Plugins/Configure I18N Special Pages of your GetSimple administration and configure your special pages. You can start by using one of the supplied templates or download one of the templates supplied by other users.
Once you have finished defining a special page type, you can create a page of this type by going to Pages/Create new Special Page.
You can list special pages either with all other pages in Pages/View all Pages or in Pages/View all Special Pages.
Using additional fields:
Use the following functions in your template or in the view/search tabs of the special page configuration:
If you set $isHTML to false, special characters are encoded (with htmlspecialchars()).
For $format see the PHP function strftime.
With I18N Search installed:
All content and all custom fields that are enabled for indexing, will be searched with a normal search.
To search for special pages, e.g. products, create a page with:
You can also use the following functions in your template or search tab of the special page configuration:
$length can be a positive number for the number of words or a positive number followed by 'p' or 'pm' for the number of paragraphs (pm: add a <p>...</p> if there is more) or a negative number for the whole content.
Together with the I18N Search plugin you can create (fully searchable)
- News
- Blogs
- Product lists or lists of other items
Features:
- define custom fields (including default values) per page type
- define default values for slug, parent, etc.
- define a default content, e.g. to provide a standard layout of a product description
- define directly, how the page should be displayed, instead of using a template
- customize, how the page shall be displayed as search result
- sample page type templates included - page type definitions can be easily shared
- stores creation date (field 'creDate') and user in pages
INSTALLATION
Download the plugin from here and unzip it to the plugins directory of your GetSimple installation.
(Make sure you unzip/copy all files including the .htaccess files, which might be hidden on your computer)
For an optimum experience you should also install
(use the latest versions)
USAGE
Go to the Plugins/Configure I18N Special Pages of your GetSimple administration and configure your special pages. You can start by using one of the supplied templates or download one of the templates supplied by other users.
- you can set some default values for new pages,
- you can add custom fields and set default values for them and the content of the page. You can define which fields are indexed by I18N Search (if installed),
- you can define how to display the page together with its custom fields,
- you can define how to display the page as part of a search result (if you have I18N Search installed).
Once you have finished defining a special page type, you can create a page of this type by going to Pages/Create new Special Page.
You can list special pages either with all other pages in Pages/View all Pages or in Pages/View all Special Pages.
Using additional fields:
Use the following functions in your template or in the view/search tabs of the special page configuration:
Code:
get_special_field($name, $default='', $isHTML=true)
return_special_field($name, $default='')
get_special_field_date($name, $format=null)
return_special_field_date($name, $format=null)
If you set $isHTML to false, special characters are encoded (with htmlspecialchars()).
For $format see the PHP function strftime.
With I18N Search installed:
All content and all custom fields that are enabled for indexing, will be searched with a normal search.
To search for special pages, e.g. products, create a page with:
Code:
(% searchform addtags=_special_product %)
(% searchresults addtags=_special_product %)
You can also use the following functions in your template or search tab of the special page configuration:
Code:
get_special_field_excerpt($name, $length)
return_special_field_excerpt($name, $length)
$length can be a positive number for the number of words or a positive number followed by 'p' or 'pm' for the number of paragraphs (pm: add a <p>...</p> if there is more) or a negative number for the whole content.