I am still new to PHP, and to tied me over until the Jelsoft CMS comes out, I want to implement a PHP Template to make publishing articles easier.
I want to use the index.php of the folder for a article series to handle the index of articles if someone just calls that file or if they call it via /articleseries/?article=file-name then to display the article.
I have a section of code which calls the article varible from the URL
etc. But if someone just goes to the index page instad without entering an article ID.
So what am I missing?
and then after the article code
which will display the index of articles instead.
Also how do I do a loop, so it will get the $title varible from the included article to display in the title bar?
Thanks.
I want to use the index.php of the folder for a article series to handle the index of articles if someone just calls that file or if they call it via /articleseries/?article=file-name then to display the article.
I have a section of code which calls the article varible from the URL
PHP Code:
<?php Virtual("$article.txt"); ?>
So what am I missing?
PHP Code:
<?php if (!article=); {
PHP Code:
<?php } else {
Also how do I do a loop, so it will get the $title varible from the included article to display in the title bar?
Thanks.
Comment