First Info / Erste Informationen

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

First Info / Erste Informationen

Post by Oliver Georgi »

Ich bin "fast" soweit. Die neue Projekt-Seite ist im Entstehen (http://www.phpwcms.de). Diese basiert auf der aktuellsten phpwcms Version. In diesem Zusammenhang habe ich eine erste öffentliche Version von phpwcms vorbereitet - der aktuelle Projektstand ist hier verfügbar:

http://www.phpwcms.de?download


Es mangelt momentan noch an der Dokumentation. Aber es gibt einen SETUP Ordner. Die teilautomatische Installation startet man dann durch http://www.meineseite.de/setup/index.php

Zum Testen: erstmal meine Ordnerstruktur übernehmen und darauf achten, dass die Schreibrechte etc gegeben sind:
Bevor eine Doku verfügbar ist, empfehle ich Dir für alle Ordner und darin enthaltene Dateien erstmal alle Rechte auf 777 zu setzen (außer img). Das kann man später auch differenzieren - es sind eigentlich nur Rechte für bestimmte Dateien und Verzeichnisse nötig - oder teste Dich heran ;-)

Es existieren ein ganze Reihe von Replacements-Tags - hier kurz die Beschreibung:
{BREADCRUMB} = Brotkrümel-Menü
{CONTENT} = Der komplette Content
{NAV_TABLE_COLUMN} = Beispiel-Navigation
{NAV_TABLE_SIMPLE} = ganz einfache Navigation

-> hierfür in die Datei include/conf.template_defaults.inc.php schauen
{DATE_LONG} = abhängig von Formatierung
{DATE_MEDIUM} = abhängig von Formatierung
{DATE_SHORT} = abhängig von Formatierung
{DATE_ARTICLE} = abhängig von Formatierung
{TIME_LONG} = abhängig von Formatierung
{TIME_SHORT} = abhängig von Formatierung
{TIME_ARTICLE} = abhängig von Formatierung

ACHTUNG!!!! Geänderte Tags
[ID int]string[/ID] = internal Link to article ID (int)
[ID string]string[/ID] = internal Link to category alias (string)
[EXT url]string[/EXT] = external Link to url - öffnet in neuem Fenster
[INT url]string[/INT] = external Link to url - öffnet in selbem Fenster

# Das hier ist nicht mehr ganz optimal - nehmt die neue Variante
{RANDOM_GIF:path_to_random_GIFs} = liefert Zufalls GIF-Bild als fertiges Image-Tag <img src...
{RANDOM_JPEG:path_to_random_JPEGs} = liefert Zufalls JPEG-Bild als fertiges Image-Tag <img src...
{RANDOM_PNG:path_to_random_PNGs} = liefert Zufalls PNG-Bild als fertiges Image-Tag <img src...

{IMAGE:beliebiger_Bildname} = liefert Image-Tag zurück (<img src="picture/...)
{IMAGE_LEFT:beliebiger_Bildname} = liefert Image-Tag zurück (<img src="picture/...), Ausrichtung links
{IMAGE_RIGHT:beliebiger_Bildname} = liefert Image-Tag zurück (<img src="picture/...), Ausrichtung rechts
Basisverzeichnis DOCUMENT_ROOT."/picture/" - müsste aber auch ausgetrickst werden können, indem man einfach dann den Pfad z.B. so angibt: {IMAGE:../mein_anderer_Bildordner/bildname.jpg}

{SPACER:100x200} = erzeugen eines WIDTH x HEIGHT Pixel großen Platzhalters

{RANDOM:path_to_where_the_random_image_is} - holt sich per Zufall ein Bild aus dem angegebenen Ordner (GIF, JPG, JPEG, PNG)

{PHP:mein_externes_php_script.php} - bindet externes PHP Script ein und übernimmt dessen ausgaben an Stelle des Platzhalter-Tags

Diese Replacements können überall eingesetzt werden - also in Überschriften, im Pagelayout usw. Nach der Generierung des Gesamtcontents wird der gesamte Inhalt danach geparst und enstprechend werden diese Platzhalter-Tags ersetzt.

Wichtig: Nach Installation den Setup-Ordner löschen ABER vorher die erstellte conf.inc.php in include/inc_conf legen.


Achtung!!!
Bitte postet Eure Probleme unbedingt im Forum - dann haben auch andere was davon.

Oliver
Last edited by Oliver Georgi on Thu 8. Mar 2007, 15:54, edited 5 times in total.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
theblackbox
Posts: 3
Joined: Fri 7. Nov 2003, 05:36

Post by theblackbox »

I'm guessing this post is important, but I don't know German. Would someone be able to post it in English?

Thanks heaps

Steve
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I am working on this. You can also try. ;-)
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
brans

Post by brans »

I'm almost done. The new project Page is growing up (http://www.phpwcms.de). It is based on the recent version of phpwcms. Caused by this I have released a first public version of phpwcms - find the recent package here:

http://www.phpwcms.de?download


At the moment there is still some documentation missing but there is a setup folder. The semi-automatic installation is beeing started by: http://www.yoursite.com/setup/index.php

For a test: overtake my structure of the folders and be aware of the chmods:
Before there will be a documentation I recommend to put all the rights on all folders to chmod 777 ( all folders but img! ) This can be changed afterwards - there are only some rights on some specific folders really needed, so you can try out yourself what rights to give to which folder if you want to.

Here a short description of the replacement-tags:
{BREADCRUMB} = Breadcrumg-Menu
{CONTENT} = The main conten
{NAV_TABLE_COLUMN} = Example-Navigation
{NAV_TABLE_SIMPLE} = very simple navigation

-> for the following have a look at include/conf.template_defaults.inc.php first
{DATE_LONG} = depends on the configuration
{DATE_MEDIUM} = depends on the configuration
{DATE_SHORT} = depends on the configuration
{DATE_ARTICLE} = depends on the configuration
{TIME_LONG} = depends on the configuration
{TIME_SHORT} = depends on the configuration
{TIME_ARTICLE} = depends on the configuration

Warning!!! changed tags:
[ID int]string[/ID] = internal Link to article ID (int)
[ID string]string[/ID] = internal Link to category alias (string)
[EXT url]string[/EXT] = external Link to url - opens in a new window
[INT url]string[/INT] = external Link to url - opens in the current window

# These ones are not to use anymore, use the new ones!
{RANDOM_GIF:path_to_random_GIFs} = a random gif as full image tag <img src...
{RANDOM_JPEG:path_to_random_JPEGs} = the same for jpg <img src...
{RANDOM_PNG:path_to_random_PNGs} = same for png <img src...

{IMAGE:beliebiger_Bildname} = delivers Image-Tag (<img src="picture/...)
{IMAGE_LEFT:beliebiger_Bildname} = delivers Image-Tag (<img src="picture/...), align left
{IMAGE_RIGHT:beliebiger_Bildname} = delivers Image-Tag (<img src="picture/...), align right
Basedirectory DOCUMENT_ROOT."/picture/"
but you can include pictures from other folders like this: {IMAGE:../my_other_folder/nameofthepic.jpg}

{SPACER:100x200} = creates a WIDTHxHeight Placeholder
{RANDOM:path_to_where_the_random_image_is} - random image out of the avalaible one in the specified folder (GIF, JPG, JPEG, PNG)

{PHP:my_external_php_script.php} - tag for the inclusion of external php scripts

The replacements can be used everywhere - in the title, at the Pagelayout etc.

Important: After the succesful installation delete the setup folder but first copy the conf.inc.php to include/inc_conf !!!


Important Note!!!
Please post all your problems and questions to the forum so others can take advantage of the answers too!

Oliver


First effort to translate by:
brans :)
brans

Post by brans »

i just tried to translate olivers statement :)

maybe a english speaking person can correct my english now and post a clear and more understandable version :)
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Thank you. I have updated some links.

I'm extending documentation at the moment.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
marses
Posts: 26
Joined: Wed 5. Nov 2003, 09:53
Location: Dorking, England

Post by marses »

Cool! I've tried translating with babelfish before and got pretty weird translation e.g. 'Image-Tag' "translated" into 'Image day'. :shock:

Thanks Brans.

By the way, I hope that documentation on Replacement Tags or Content Types will also cover syntax used in Email form.

Marius
brans

Post by brans »

jo schon gemerkt ;-)

yes already recognized this :)
colech
Posts: 178
Joined: Thu 25. Mar 2004, 01:01
Location: Washington, USA
Contact:

Post by colech »

All you multilingual people amaze me. What can I say! I know a few words in Spanish but that sure doesn't help me out here too much does it! :D
TortillaBoy
Posts: 11
Joined: Thu 20. May 2004, 20:37
Location: Colorado, USA
Contact:

Post by TortillaBoy »

I was considering an attempt at a corrected translation but I'd hate to get something wrong. :shock: brans, I think you did good enough for us unilingual folks. ;) Thanks
Pulvertoast
Posts: 7
Joined: Thu 31. Mar 2005, 11:48
Contact:

Post by Pulvertoast »

Hallo!

Ich habe ne wichtige Frage!

Also mit dem {CONTENT} Tag binde ich ja die Artikel ein.
Ich möchte jetzt z.B. eine Newsseite haben.
Das heißt da möchte ich z.B. tägliche News mit Datum usw. einfügen.

Wo kann ich denn den {CONTENT} Tag bearbeiten bzw. wie kann ich mir selbst einen erstellen?
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

Den Content Tag fasst Du nicht an, sondern erstellst Dir eine Vorlage fuer Dein News-Listing in phpwcms_template\inc_cntpart\articlesummary\list.
Pulvertoast
Posts: 7
Joined: Thu 31. Mar 2005, 11:48
Contact:

Post by Pulvertoast »

Hast du vielleicht mal eine Vorlage für mich?

Bin Anfänger und grad dabei das etwas zu begreifen!
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

Hast Du denn mal in den Ordner reingeschaut? Da ist doch eine Vorlage drin: sample.tmpl!
Pulvertoast
Posts: 7
Joined: Thu 31. Mar 2005, 11:48
Contact:

Post by Pulvertoast »

Ja habs auch gesehn!
Bearbeite das gerade. Verstehe jetzt auch was du meinst.
Ist ja im Grunde supereinfach.

Am Anfang muss man eben nur Wissen wo alles liegt.

Was ist denn der Unterschied zwischen den Ordnern list und article?

Noch ne Frage. In der sample.tmpl werden manche Sachen so geschrieben:

Code: Select all

[TITLE]<h1>{TITLE}</h1>[/TITLE]
Warum? ;)
Post Reply