 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Thomas Leitner
RE: path problem in submenu-folders [ reply ] 2010-11-19 07:16
|
The first line because webgen knows abouit css/default.css but since *.php are not handled by webgen by default, it does not know about it and cannot find it.
You can tell webgen about the php files by modifying the config.yaml file:
patterns:
Copy:
add: [**/*.php]
(Note that the "Copy:" line needs to be indented with two spaces and the "add..." line four spaces).
This tells the copy handler to copy all php files to the output directory.
|
By: Interested Beginner
RE: path problem in submenu-folders [ reply ] 2010-11-18 20:34
|
default.template:
why does this line work:
<link rel="stylesheet" href="{relocatable: css/default.css}" type="text/css" media="screen"
but not this one:
<ul><li id="disconnect"><a href="{relocatable: disconnect.php}">Logout</a></li></ul>
ERROR -- Could not resolve path 'disconnect.php' in </default.template>
disconnect.php is located in /src
Thanks for your help
|
By: Interested Beginner
RE: path problem in submenu-folders [ reply ] 2010-11-18 20:02
|
This seems to be a way - even if there are is warning during compile:
in default.template
<?php
$rel_path="{relocatable: ./}";
?>
Log messages:
INFO -- Log messages for run 1 are following
WARN -- No directory index path found for directory </>
INFO -- Log messages for run 2 are following
|
By: Interested Beginner
path problem in submenu-folders [ reply ] 2010-11-18 18:24
|
Is there for example a tag that I can include in the template and that returns the path to the top of the webgen site? So I could include this path in a php-variable and use It for correct path indications...
eg:
.../A/index.php Top of webgen site
.../A/library/file_with_function.php
.../A/submenu.php
So, in submenu.php the tag should return
".../A" and would allow me to find the top index
(.../A/index.php or ../index.php)
and the file_with_function.php
(.../A/library/file_with_function.php or
../library/file_with_function.php)
Thanks for your help
Fabio Vassalli
|
By: Interested Beginner
path problem in submenu-folders [ reply ] 2010-11-17 16:55
|
Hello,
I have generated a website with webgen. Every page starts with a php-scritp. That script includes a file with a function having the mission to redirect the user to the index.php page if the user is not logged in.
- When the page is situated in a submenu (subfolder), the php-scripte does not find the folder containing the file containing the function. How can I tell the script where to search that file (adapt the path for every page in every subfolder)?
- When the above fonction decides to redirect the user to the index.php-page, the user is directed to the index.php file of the current folder (submenu) instead of the top-index.php. How can I tell to the included function the actual path to the top?
Note that in my case the top-level is not the top-level of the domain, but the webgen-generated site is located somewhere in a subfolder of the main page.
Thanks for your precious help
Fabio
|
|
 |