A little progress report and a new question.
I created two custom.html templates (custom.html.de and custom.html.en) and use two customised search pages from within one domain (index.html.de and index.html.en).
My search form looks like:
<form action='http://validate/phpdig/search.php' method='get'>
<input type='hidden'name='template_demo'
value='custom.html.en'/>
<input type='hidden' name='phpdig_language' value='en'/>
<input type='hidden' name='site' value=''/>
<input type='hidden' name='path' value=''/>
<input type='hidden' name='result_page' value='search.php'/>
With a few changes in the config.php I can now define the language and the result page for different home pages.
The changes in the config however won't let me access the script via
http://validate/phpdig/search.php or via
http://validate/phpdig/admin/index.php because no template information is given to the script. The same happens when I try to refine the search with the restart of course. If I type ../search.php?template_demo=phpdig.html....then it returns the desired template.
My question therefore: how do I define a "default template" in the config.php without defining a fixed template as in line:
$template = "$relative_script_path/templates/phpdig.html";
As stated before I am a beginner and "hobby webmaster" only and not yet good in php. I think it should be possible to set up something like "if no $template then phpdig.html.
Sorry if I am getting to your nerves but I think this script is flexible enough to do this but I'm just not up to the job (yet) and the solution is probably only two lines of code. Maybe this is of interest to real professionals who run multilanguage pages ?
Regards
Ulrich