Artikel ID

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
bayvs
Posts: 12
Joined: Fri 12. Dec 2003, 12:48
Location: München

Artikel ID

Post by bayvs »

Ich möchte im Fussbereich einen Link "bearbeiten des Artikels" einbauen - wie komme ich an die richtige ID ?
Der Link wir dann in etwa lauten http://www.foo.de/phpwcms.php?do=articles&p=2&s=1&id=???? :?:

Kann mir jemand helfen ?

*_____________________*

I want to add a link in the foot section of the page "work with article" but dont´t know where to get the right id for the link.
can anybody help me with the link like http://www.foo.de/phpwcms.php?do=articles&p=2&s=1&id=???? :?:

greetings

thomas
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

In site structure and article list, hover your mouse pointer over the leading "x box" of each article name and the article ID will be revealed (ie: article ID:5).
bayvs
Posts: 12
Joined: Fri 12. Dec 2003, 12:48
Location: München

Post by bayvs »

... yes, thats fine, but i need it as a variable in php to use it an each page automatically
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

i think it's the $article_id, but don't ask me if it's correct...
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

See this maybe:
"Retrieve The Articles ID"
http://www.phpwcms.de/forum/viewtopic.php?t=1058

OTHERWISE here's some examples:
Linking:

Code: Select all

<A HREF=[PHP]echo $_SERVER['SCRIPT_URI'];[/PHP]>HREF with SCRIPT_URI<BR></A>
<A HREF=[PHP]echo $_SERVER['REQUEST_URI'];[/PHP]>HREF with REQUEST_URI<BR></A>
<A HREF=[PHP]echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];[/PHP]>HREF with HOST+REQUEST</A>
[PHP]echo '[BR]'[/PHP]
<A HREF=[PHP]echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PATH_INFO'].'?'.$_SERVER['QUERY_STRING'];[/PHP]>HREF with HOST+PATH+QUERY</A>
Composing:

Code: Select all

[PHP]echo 'This is the address of this page:'.'[BR]';[/PHP]
[PHP]echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'].'[BR]';[/PHP]
[PHP]echo $_SERVER['SCRIPT_URI'].'[BR]';[/PHP]
[PHP]echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].'[BR]';[/PHP]
[PHP]echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PATH_INFO'].'?'.$_SERVER['QUERY_STRING'].'[BR]';[/PHP]
Post Reply