New template / tags ?
New template / tags ?
Hello,
I installed phpwcms succesfully, now i want to use the layout of my old website, the question is : Is it nesecerely to use "Frontend setup: Layouts".
Cause then i am forced to use the blocks system.
My second question is where can i find all default tags that already are defined like {CONTENT} .
I installed phpwcms succesfully, now i want to use the layout of my old website, the question is : Is it nesecerely to use "Frontend setup: Layouts".
Cause then i am forced to use the blocks system.
My second question is where can i find all default tags that already are defined like {CONTENT} .
Hi jmj,
1. you don' t need to use the preseted page layout settings, you can choose css or custom css, though choosing custom css is loosing a little bit of functionnality. I would choose css with blocks and adapt the frontend.css
2. Almost all replacemnt tags (RT) can be found at the docu-site: http://www.phpwcms-docu.de as for "having" them... well those at docu-site are include in phpwcms, the others... look at my signature there is a package @sourceforge with 24 rep tags included. (first link left)
Cheers
1. you don' t need to use the preseted page layout settings, you can choose css or custom css, though choosing custom css is loosing a little bit of functionnality. I would choose css with blocks and adapt the frontend.css
2. Almost all replacemnt tags (RT) can be found at the docu-site: http://www.phpwcms-docu.de as for "having" them... well those at docu-site are include in phpwcms, the others... look at my signature there is a package @sourceforge with 24 rep tags included. (first link left)
Cheers
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
hi kosse,Kosse wrote:Hi jmj,
1. you don' t need to use the preseted page layout settings, you can choose css or custom css, though choosing custom css is loosing a little bit of functionnality. I would choose css with blocks and adapt the frontend.css
2. Almost all replacemnt tags (RT) can be found at the docu-site: http://www.phpwcms-docu.de as for "having" them... well those at docu-site are include in phpwcms, the others... look at my signature there is a package @sourceforge with 24 rep tags included. (first link left)
Cheers
I stil dont understand what you mean about the Tags, i dont see a list of tags i can use.
Second the template worked, but where can i custimize the menu(layout not the structure) ?
thx
Hi Jimj, you askedjmj wrote:
I stil dont understand what you mean about the Tags, i dont see a list of tags i can use.
Second the template worked, but where can i custimize the menu ?
thx
those you can find at http://www.phpwcms-docu.de:My second question is where can i find all default tags that already are defined like {CONTENT} .
Look (and these are only the system tags...)
As for the menu:{DATE_LONG}
Use: Displays the current date - in long notation
Notation: {DATE_LONG}
Result: Freitag, 17. Februar 2006
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: Fr, 17. Feb. 06
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: 17:03
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: 17:03:42
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: 4.4.1
Remark: This is ideal for short PHP expressions
{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 Docu2/13/2006 > Admin2/13/2006 > 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 Docu2/13/2006 > Admin2/13/2006 > 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: Add to favorites
Alternative: The text can also replaced by an Image. See the example below:
[BOOKMARK]{IMAGE:favourites_link_.gif}[/BOOKMARK]
[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: Print
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: http://www.phpwcms-docu.de/
Remark: Can be used for redirection. It's very helpful if you change the domain or build the site local.
{NAV_TABLE_COLUMN}
{NAV_TABLE_COLUMN:integer}
{NAV_LIST_TOP}
{NAV_LIST_TOP:IndexName:ClassName}
{NAV_ROW}
{NAV_ROW:CURRENT:0 or 1}
{NAV_LIST_CURRENT}
{NAV_LIST_CURRENT:0 oder 1:IndexName:list_class}
and many more....
So, yet again, look in docu-site, that is your friend (and mine too since 2 years almost)
Cheers
1.3 out, testing, testing...
Sponsoring 4 phpwcms Blog and Usermanagement
Sponsoring 4 phpwcms Blog and Usermanagement
- Klappstuhl28
- Posts: 833
- Joined: Fri 4. Mar 2005, 01:58
- Location: Hamburg
- Contact:
Trust ONLY the line that is labeled Notation: as having the tags in their correct syntax and lower case parameters must be replaced with valid names of classes or id numbers of levels or articles, etc.
(All the rest may have description/explanation of options and/or usage.)
Examples that are NOT a VALID tag (as shown):
[PHP] PHP_code [/PHP]
NAV_ROW:CURRENT:0 or 1}
{NAV_LIST_CURRENT:0 oder 1:IndexName:list_class}
(All the rest may have description/explanation of options and/or usage.)
Examples that are NOT a VALID tag (as shown):
[PHP] PHP_code [/PHP]
NAV_ROW:CURRENT:0 or 1}
{NAV_LIST_CURRENT:0 oder 1:IndexName:list_class}
oke i have this artikel structure :DeXXus wrote:Trust ONLY the line that is labeled Notation: as having the tags in their correct syntax and lower case parameters must be replaced with valid names of classes or id numbers of levels or articles, etc.
(All the rest may have description/explanation of options and/or usage.)
Examples that are NOT a VALID tag (as shown):
[PHP] PHP_code [/PHP]
NAV_ROW:CURRENT:0 or 1}
{NAV_LIST_CURRENT:0 oder 1:IndexName:list_class}
on evrey page i only want to give the artikel links that are red marked
by the way Sub1 = id:2
so what would be the correct nav code for me if i want a horizontal menu?
@ DeXXus
Yow did you run out of answers
when i fill in {NAV_ROW:2:1} it dis apears even in the code there is nothing to find from it, when i do {NAV_ROW:2:0} i only get the Catagory and when i click on it go to the next articel but the menu dis apears again.
i only want to show the red marked like in the picture here above
Yow did you run out of answers
when i fill in {NAV_ROW:2:1} it dis apears even in the code there is nothing to find from it, when i do {NAV_ROW:2:0} i only get the Catagory and when i click on it go to the next articel but the menu dis apears again.
i only want to show the red marked like in the picture here above