When editing Article and executing a code inside phpwcms.php:
case 2: include_once ("./include/inc_lib/article.editcontent.inc.php");
we reach the lines of code inside article.editcontent.inc.php that are:
if(!intval($_GET["aktion"])) {; //Solange nicht Editieren gewählt
$_SESSION["article_path"] = $article["article_cat"]."#|#".$article["article_title"];
include_once PHPWCMS_ROOT."/include/inc_tmpl/articlecontent.list.tmpl.php";
PHPWCMS_ROOT is based on $phpwcms["root"] from conf.inc.php and it is oryginaly set to:
$phpwcms["root"] = "";
Because of this none of the Articles can be edited because there is an incorect path build. When we put the directory where phpwcms has been installed editing Articles work fine but Page Layout, Templates etc. have a wrong path now. So it is either or. WHen we don't put it that piece of path is missing for editing Articles. When we put it there is an extra one added and that builds the wrong path for everythign else.
Please advise.
Thanks.
Problem with a path to templates, page layout and articles.
- Oliver Georgi
- Site Admin
- Posts: 9892
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Not so sure...
When you say wrong settings what and where would that be. If I follow the instructions to fill root with the folder name where I installed phpwcms then for page layout and templates when path is generated inside the code there is a duplication of that directory. If I don't put and leave an empty string then Articles don't work.
If the settings are wrong where would that be?
Thanks
If the settings are wrong where would that be?
Thanks