Page 1 of 1

Artikel ID

Posted: Mon 8. Mar 2004, 18:51
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

Posted: Mon 8. Mar 2004, 18:59
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).

Posted: Mon 8. Mar 2004, 19:00
by bayvs
... yes, thats fine, but i need it as a variable in php to use it an each page automatically

Posted: Mon 8. Mar 2004, 19:58
by Jan212
i think it's the $article_id, but don't ask me if it's correct...

Posted: Mon 8. Mar 2004, 23:27
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]