Page 1 of 2

New template / tags ?

Posted: Fri 17. Feb 2006, 13:26
by jmj
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} .

Posted: Fri 17. Feb 2006, 13:57
by Kosse
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

Posted: Fri 17. Feb 2006, 16:54
by jmj
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
hi kosse,

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

Posted: Fri 17. Feb 2006, 17:08
by Kosse
jmj 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
Hi Jimj, you asked
My second question is where can i find all default tags that already are defined like {CONTENT} .
those you can find at http://www.phpwcms-docu.de:

Look ;) (and these are only the system tags...)
{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.

As for the menu:

{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

Posted: Mon 1. May 2006, 16:38
by jmj
but some of them appear as text

Posted: Mon 1. May 2006, 17:06
by Klappstuhl28
Please get sure that there´s no space { whatever}

Posted: Mon 1. May 2006, 17:12
by jmj
Klappstuhl28 wrote:Please get sure that there´s no space { whatever}
i copied them from here and they have no space ...

Posted: Mon 1. May 2006, 18:52
by DeXXus
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}

Posted: Mon 1. May 2006, 23:14
by jmj
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}
oke i have this artikel structure :

Image

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?

Posted: Tue 2. May 2006, 02:39
by DeXXus
Looks like it should be {NAV_ROW:2:0}

Posted: Tue 2. May 2006, 11:42
by jmj
DeXXus wrote:Looks like it should be {NAV_ROW:2:0}
It does not work it disapears even in the source i cant find somthing back from it, but when i make the code {NAV_ROW:2:1} i see one link only Sub1. :x

I wonder why it dis-apears, or do i have to use other numbers ?

Posted: Thu 4. May 2006, 13:02
by jmj
@ DeXXus

Yow did you run out of answers :lol:

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.
Image
i only want to show the red marked like in the picture here above

Posted: Thu 4. May 2006, 15:33
by pepe
All the NavigationTags can only show categories... not articles :idea:

Where are your categories????

Posted: Thu 4. May 2006, 16:17
by jmj
pepe wrote:All the NavigationTags can only show categories... not articles :idea:

Where are your categories????
'Sub1' is a Catogorie as you can see, so if im not mistaking for evrey page/articel i want to put in the menu as link i have to create a new catagorie ??

Posted: Thu 4. May 2006, 17:04
by pepe
{NAV_ROW:2:0}

The navi starts in Cat ID 2 and shows all Categories UNDER this given CAT... but there are no = 0 = nill = null = nix = niente categories!!!! only articles :roll:

Put some subsub-categories under SUB1... and you will see :roll:


Try that first: {NAV_ROW:0:1} :!: