Available WCMS Variables
Available WCMS Variables
Great CMS:
Has anyone put together a list of phpwcms variables that can be used in a PHP script?
How are those variables used in the script??
For Example: Can I use a variable that holds the current cateogry name so that I can call a script with that category name?? (I want to query a database from my Guides>Accomodations page. But I want to pass Accomodations to the script ??
Thanks Oliver
Oliver your scripts are just what I have been looking for.
Steve
South Mississippi
Has anyone put together a list of phpwcms variables that can be used in a PHP script?
How are those variables used in the script??
For Example: Can I use a variable that holds the current cateogry name so that I can call a script with that category name?? (I want to query a database from my Guides>Accomodations page. But I want to pass Accomodations to the script ??
Thanks Oliver
Oliver your scripts are just what I have been looking for.
Steve
South Mississippi
Re: Available WCMS Variables
Is it this you are looking for?SouthMS wrote:Great CMS:
Has anyone put together a list of phpwcms variables that can be used in a PHP script?
http://www.phpwcms.de/forum/viewtopic.p ... highlight=
http://www.studmed.dk Portal for doctors and medical students in Denmark
Re: Available WCMS Variables
Thanks for the response frold.frold wrote:Is it this you are looking for?SouthMS wrote:Great CMS:
Has anyone put together a list of phpwcms variables that can be used in a PHP script?
http://www.phpwcms.de/forum/viewtopic.p ... highlight=
Those are the tags that can be used. I'm looking for ways to include variables from wcms in PHP scripts. For Example. IF the wcms variable for category is $category_id then I could use that variable in my script. I was looking for a list of the available variables.
I'm new to PHP and haven'tt had time to look at the scripts to see what the global variables are.
Thanks Again
Steve
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
What did you need I´m curious
http://www.studmed.dk Portal for doctors and medical students in Denmark
Hey Oliver,Oliver Georgi wrote:Have a look into the content.func.inc.php and content.article.inc.php. The used vars are self explaining (most of them I hope). Test it by using simple php inludes <?php echo $var ?>
I have not prepared a list.
Oliver
I have been away and havent had time to work on my project.
I tried coping <?php echo $var ?> into my default template with several variables but nothing appeared. (I'm very new to PHP BTW).
I want to add to my template the acat_name variable so that which ever category I'm in it will display the name.
Thanks
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
This really does not work.
It's not possible to add <?php mnnn ?> anywhere in your template. This will show <?php...?> inside of your doc.
Custom PHP code can only be included by using external files. This is the same as including a file in a function. That's why you have to use $GLOBALS to get phpwcms vars into your external script. But you have direct access to all $_SERVER, $_POST, $_GET... because these are always global vars.
How to get current cat name is described in forum anywhere
It's not possible to add <?php mnnn ?> anywhere in your template. This will show <?php...?> inside of your doc.
Custom PHP code can only be included by using external files. This is the same as including a file in a function. That's why you have to use $GLOBALS to get phpwcms vars into your external script. But you have direct access to all $_SERVER, $_POST, $_GET... because these are always global vars.
How to get current cat name is described in forum anywhere
external php-file
if I write an external php-file to show a $var, does this externel php-file need any includes or database references to work?
Thanks a lot
Macangelo
Thanks a lot
Macangelo
- Oliver Georgi
- Site Admin
- Posts: 9907
- Joined: Fri 3. Oct 2003, 22:22
- Contact: