httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: [users@httpd] Includes based on a variable
Date Fri, 02 Jan 2004 22:24:40 GMT
* "Matthew Seymour" <matthew.seymour@bbc.co.uk> wrote:

> I want to include an SSI in a page, with the name of the SSI being
> chosen by a variable in the page (if that makes sense). Initially I
> tried this:
> 
> <!--#include virtual='/commentscps/northyorkshire/<!--#echo
> var="listname"-->.ssi' -->
> 
> Which of course doesn't work, and I think I understand why... But I
> don't know how to make this work, or even if it's possible.

<!--#include virtual='/commentscps/northyorkshire/${listname}.ssi' -->

:-)

Please read the docs
<http://httpd.apache.org/docs-2.0/mod/mod_include.html#substitution> for
further information.

nd

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message