New template / tags ?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

New template / tags ?

Post 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} .
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post 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
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post 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
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post 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
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post by jmj »

but some of them appear as text
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post by Klappstuhl28 »

Please get sure that there´s no space { whatever}
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post by jmj »

Klappstuhl28 wrote:Please get sure that there´s no space { whatever}
i copied them from here and they have no space ...
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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}
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post 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?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Looks like it should be {NAV_ROW:2:0}
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post 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 ?
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post 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
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

All the NavigationTags can only show categories... not articles :idea:

Where are your categories????
jmj
Posts: 24
Joined: Thu 16. Feb 2006, 22:36

Post 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 ??
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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} :!:
Post Reply