Menu

#12 Change path handling in <PHPCMS_INCLUDE>

open
nobody
None
8
2003-04-04
2003-04-04
No

At the moment files, which are included with
<PHPCMS_INCLUDE> have to be entered with a path
relative to the document root.

A much better behavoiur and easier to understand for
the user would be, if the paths would be relative to the
path of the actual parsed file .. it's not very logical that I
have to write in a content file:

<a href="anotherfile.txt">
<PHP_CMS "/path/from/docroot/anotherfile.txt">

to access the same file within a content file..

Same with other files, if I have the menu-file

document_root/template/home.mnu

and I add the command

<PHPCMS_INCLUDE "extra.mnu">

I expect that the parser tries to include

document_root/template/extra.mnu

and not

document_root/extra.mnu

as it is done at the moment.
As the <PHPCMS_INCLUDE> command was added
just in phpCMS 1.1.9 and due to various bugs in the
implementation and a missing documentation there
aren't many people using it at the moment. So I would
recommend to change the behavoiur of this command
already in phpCMS 1.1.10

ciao.. Iggi

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.