Shortcuts
Shortcuts are powerful internal Links that can be used in Wiki markup code as well as html (e.g. using Spaw).
Link Shortcuts
Syntax: [[link:short_name]]
Example: [[link:awfcms]] renders as
See Links for more details.
Image Shortcuts
Syntax: [[image:short_name|template|Description]]
Example: [[image:img/sample|left|Title]] renders as
The short name of /images/examples/ships.jpg would be examples/ships. You can upload images using /admin/images.php (available since version 2.10). The output format (JPEG, GIF, PNG,...) is defined by your template. You can upload and output images in all formats supported by your PHP installation. Ask your webhosting provider, if unsure.
Description and template are optional. The default templates are "left" and "right". You can add new templates in /templates/images/inline, if you need other positions or styles.
Images of users can be found at /images/users/username.jpg (short name is users/username).
Forum Shortcuts
Syntax: [[forum:name|template|topics per page|postings per page]]
The name is required, the rest is optional. The default template for shortcuts is inline and it is located in templates/forums/forum/.
Forums can be managed on admin/forums.php.
You can also link a forum directly using this code:
[http://www.yourdomain.com/forums/en/name/index.htm]
Gallery Shortcuts
Syntax: [[gallery:image_path|template]]
The template name is optional (default is inline) and the templates are located in templates/gallery/.
Example: [[gallery:screenshots]] renders as
|
Installation
800x590 542 Clicks |
The images screenshots/installation/start, screeshots/index, screenshots/edit_document etc. will be part of that gallery (for example).
Please note: Always have an image with the Short Name index in your gallery, because the gallery gets named after that image.
You can also link a gallery directly using this code:
[http://www.yourdomain.com/gallery/fc/image_path.html]
Template Shortcuts
Syntax: [[template:template_name]]
Example: [[template:blocks/example]] includes the template templates/blocks/example.html.tpl (or .pdf.tpl if you're doing a PDF export, of course).
Lexicon Shortcuts
Syntax: [[lexicon:article_title]]
Example: [[lexicon:IBM]] links to a lexicon article about IBM.
Document Shortcuts
Syntax: [[document:document_short_name|Optional Title]]
Example: [[document:index|Main Page]] links to the page /index.html with the link title Main Page. If no title is given, the title of /index.html will be used. You can also use the document ID instead of the document short name.
Wiki Shortcuts
Syntax: [[Page Name|Optional Title]] or [[wiki:Page Name|Optional Title]]
Wiki is the default shortcut resolver.
Please note: The default shortcut resolver can be changed in inc/config.ini, if you want to use the short version for images or links.
Created: 08.01.2006 17:25 CET, Last Change: 24.01.2006 14:18 CET by admin






