You are here: English > The Docu > Admin > Replacement Tags > System Tags

System Replacement Tags

{DATE_LONG}

Use: Displays the current date - in long notation
Notation: {DATE_LONG}
Result: Tuesday, 7. July 2015
Remark: To display date in other languages you must edit: config/phpwcms/conf.template_default.inc.php
$template_default["date"]["language"]="EN";

The Date format can be changed in 
config/phpwcms/conf.template_default.inc.php beginning from line 159

{DATE_MEDIUM}

Use: Displays the current date - in medium notation
Notation: {DATE_MEDIUM}
Result: Tue, 7. Jul 15
Remark: To display date in other languages you must edit: config/phpwcms/conf.template_default.inc.php
$template_default["date"]["language"]="EN";

The Date format can be changed in 
config/phpwcms/conf.template_default.inc.php beginning from line 159

{DATE_SHORT}

Use: Displays the current date - in short notation
Notation: {DATE_SHORT}
Result: 2015/07/07
Remark: To display date in other languages you must edit: config/phpwcms/conf.template_default.inc.php
$template_default["date"]["language"]="EN";

The Date format can be changed in 
config/phpwcms/conf.template_default.inc.php beginning from line 159

{TIME_SHORT}

Use: Displays the current date - in short notation
Notation: {TIME_SHORT}
Result: 06:37
Remark: The Time format can be changed in 
config/phpwcms/conf.template_default.inc.php beginning from line 159

{TIME_LONG}

Use: The current time of day - in long notation
Notation: {TIME_LONG}
Result: 06:37:29
Remark: The current time is server based

The Time format can be changed in 
config/phpwcms/conf.template_default.inc.php beginning from line 159

[PHP] PHP_code [/PHP]

Use: This tag supports the use of php code, which can be be entered directly between the opening and closing brackets
Notation: [PHP]echo PHP_VERSION;[/PHP]
Result: 5.3.28-nmm4
Remark: This is ideal for short PHP expressions
 

[download=ID, ID ,ID] file-1 file-2 file-3[/download]

Use: With this replacement tag you can directly  offer files from the file center for download. (Available since v1.39 r187 - 21.05.2008)
(The IDs is determined in the file center. When driving over the file /the picture with the mouse the ID is indicated).
Notation: [download=ID, ID ,ID]file-1 file-2 file-3[/download]
Short tag: [download=ID,ID,ID/]
Result: --
Remark: Enables inline download based on default filelist template.
 

{BREADCRUMB}

Use:   This tag produces a navigational breadcrumb and indicates the end user's location within the phpwcms navigational site structure.
Notation: {BREADCRUMB}
Result: Home > English > The Docu > Admin > Replacement Tags > System Tags
Remark: To cusomize the Font, Link Color etc. add the follwoing rows to the frontend.css and customize the settings.

.breadcrumb, .breadcrumb a, .breadcrumb a:link, .breadcrumb a:active, .breadcrumb a:visited {
font-family: Verdana, Helvetica,Arial, sans-serif;
font-size: 10px;
color: #666666;
text-decoration: none;
}
.breadcrumb a:hover {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 10px;
color: #333333;
text-decoration: underline;
}

And this would be the soruce for the template to call your customized settings :

<tr><td height="20" bgcolor="#efefef" class="breadcrumb">{BREADCRUMB}</td></tr>
 

{BREADCRUMB:ID}

Use:   This tag produces a navigational breadcrumb and indicates the end user's location within the phpwcms navigational site structure. By editing the ID Value you can setup the starting point.
Notation: {BREADCRUMB:ID}
Result: English > The Docu > Admin > Replacement Tags > System Tags
Remark:  To cusomize the Font, Link Color etc. add the follwoing rows to the frontend.css and customize the settings.

.breadcrumb, .breadcrumb a, .breadcrumb a:link, .breadcrumb a:active, .breadcrumb a:visited {
font-family: Verdana, Helvetica,Arial, sans-serif;
font-size: 10px;
color: #666666;
text-decoration: none;
}
.breadcrumb a:hover {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 10px;
color: #333333;
text-decoration: underline;
}


And this would be the soruce for the template to call your customized settings :

<tr><td height="20" bgcolor="#efefef" class="breadcrumb">{BREADCRUMB}</td></tr>
 

{CONTENT}

Use: Arguably, the 'content' replacement tag is one of the most important within phpwcms. In effect phpwcms replaces this tag with the actual dynamic content of associated articles. Since this tag is deployed within the page templates (admin section), a certain level of control with regards to page layout is facilitiated.
Notation: {CONTENT}
Result: -
Remark: This tag, deployed within page templates, can be used only once. Future versions of phpwcms may expand on how this tag is implemented and deployed.

{PHP:my_external_PHP_script.php}

Use: This tag supports complete external php scripts, ending with the *.php suffix. Phpwcms buffers output to enable these scripts to execute. Very robust including connections to remote databases. See forum for details and usage.
Notation: {PHP:my_external_PHP_script.php}
Result: -
Remark: The file name including the necessary indication of path is to be entered.  Longer PHP scripts should be merged if necessary within iframe within phpwcms.

{URL:http://www.phpwcms.de}

Use: The URL tag offers support for the inclusion of both external as well as internal (phpwcms) web pages. It uniquely outputs markup that is found within the < BODY > and </BODY > tags.
Notation: {URL:http://www.phpwcms.de}
Result: -
Remark:

[BACK] Text or Image [/BACK]

Use: Creates an Back function, based on the javascript:history.back();
Notation: [BACK] one page back[/BACK]
Result: one page back
Alternative: The text can also replaced by an Image. See the example below:
[BACK]{IMAGE:back_link_en.gif}[/BACK]
 

[BOOKMARK] Text or Image [/BOOKMARK]

Use: Creates an link to add it to your browser favorites. Notice that this will only work under IE!
Notation: [BOOKMARK]Add to favorites[/BOOKMARK]
Result:  
Alternative: The text can also replaced by an Image. See the example below:
[BOOKMARK]{IMAGE:favourites_link_.gif}[/BOOKMARK]
 
 

[PRINT_PDF]Text or Image[/PRINT_PDF]

Usage:   Creates a pdf file of the actual page. This function is available since Version 1.3.2
Notation: [PRINT_PDF]Create PDF
Prompt:
Alternative: Instead of text also an image can be inserted,
in der form of:

[PRINT_PDF]{IMAGE:icon_pdf.gif}[/PRINT_PDF]
Notice: The output of the pdf file can be controlled with a template file.
You can find the template file in template/inc_default/pdf.tmpl .

 

[PRINT] Text or Image [/PRINT]

Use: Creates an printerfriendly preview of the content area. 

All Header, Footer and Navigationelements are hidden.
Notation: [PRINT]Print[/PRINT]
Result:
Alternative: The text can also replaced by an Image. See the example below:

[PRINT]{IMAGE:print_link_en.gif}[/PRINT]

[RSS all] Text [/RSS]

Verwendung:   With this replacement tag you can offer your content as an RSS feed.
Schreibweise: [RSS all]RSS-Feed[/RSS]
Anzeige: RSS
Bemerkung:

The following settings are possible:

[RSS all]RSS-Feed[/RSS]
shows the complete website as an RSS feed.

[RSS INT]RSS-Feed[/RSS]
replace INT with an ID of a structure level and only this will be shown as an RSS feed.

[RSS ALIAS]RSS-Feed[/RSS]
replace ALIAS with an existing alias of your website and only this level will be shown as an RSS feed.

Alternative:

Instead of text you can also insert an image:

[RSS all]{IMAGE:rss_valid.gif}[/RSS]

 

{SITE}

Use: This tag adds the complete URL.
Notation: {SITE}index.php?hello
Result: ./
Remark: Can be used for redirection. It's very helpful if you change the domain or build the site local.

[PHP]echo FE_CURRENT_URL[/PHP]

Use: This tag adds the complete URL.
Notation: [PHP]echo FE_CURRENT_URL[/PHP]
or
[PHP]echo abs_url()[/PHP]
Result: deutsche_version.html?system_tags
Remark: Can be used for complete URL output.


Article created: Friday, 13. August 2004
Last Changes: Wednesday, 20. April 2011