Discussion:
[Exist-open] Moving the Template .html Files
Michael Joyce
2017-05-24 19:39:04 UTC
Permalink
Hello everybody.

I have an eXist 2.2 (I know, we haven't had time to upgrade yet) app
that I put together following the tutorial here:

http://exist-db.org/exist/apps/doc/development-starter.xml

It uses the normal eXist template system. But now we have too many
.html template files, and I'd like to move them into their own
subdirectory, without changing the URLs that access those pages.

I've looked in controller.xql, templates/page.html, and even in the
$shared/templating module to try to figure out how to configure eXist
to use pages/search.html to respond to search.html. I can move
search.html to the pages collection, but then the URL changes to
pages/search.html, which I don't want.

Is this possible or supported in eXist?

Thanks,

Michael
Mathias Göbel
2017-06-09 08:15:21 UTC
Permalink
You can have a look on this controller.xql
https://gitlab.gwdg.de/kolimo/exist-app/blob/master/controller.xql where
all the *.html are moved to the template collection, but you are free to
change this to any collection you want.

hope this helps,
mathias
Post by Michael Joyce
Hello everybody.
I have an eXist 2.2 (I know, we haven't had time to upgrade yet) app
http://exist-db.org/exist/apps/doc/development-starter.xml
It uses the normal eXist template system. But now we have too many
.html template files, and I'd like to move them into their own
subdirectory, without changing the URLs that access those pages.
I've looked in controller.xql, templates/page.html, and even in the
$shared/templating module to try to figure out how to configure eXist
to use pages/search.html to respond to search.html. I can move
search.html to the pages collection, but then the URL changes to
pages/search.html, which I don't want.
Is this possible or supported in eXist?
Thanks,
Michael
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
https://lists.sourceforge.net/lists/listinfo/exist-open
--
Mathias Göbel
Georg-August-UniversitÀt Göttingen
NiedersÀchsische Staats- und UniversitÀtsbibliothek Göttingen
D-37070 Göttingen

Abteilung Forschung & Entwicklung
Papendiek 14 (hist. GebÀude, Raum 2.408
<https://lageplan.uni-goettingen.de/?ident=7209_4_2.OG_2.408>)
+49 551 39-20184 (Tel.)
+49 551 39-33856 (Fax.)

Abteilung Digitale Bibliothek
Gruppe Software- und Service-Entwicklung
Platz der Göttinger Sieben 1 (Zentralbibliothek, Raum 2.129
<https://lageplan.uni-goettingen.de/?ident=5383_1_2.OG_2.129>)
+49 551 39-10230 (Tel.)

***@sub.uni-goettingen.de <mailto:***@sub.uni=%0A-goettingen.de>
http://www.sub.uni-goettingen.de

--
Loading...