EPrints Technical Mailing List Archive

Message: #09170


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Different templates or depending on URI


CAUTION: This e-mail originated outside the University of Southampton.

… i love your answer John – it works! 😃

 

Cheers from Switzerland
Jens

 

--
Jens Witzel
Zentrale Informatik
Universität Zürich
Stampfenbachstrasse 73
CH-8006 Zürich

mail:  jens.witzel@uzh.ch
phone: +41 44 63 56777
http://www.zi.uzh.ch

 

Von: John Salter <J.Salter@leeds.ac.uk>
Gesendet: Montag, 16. Januar 2023 16:39
An: eprints-tech@ecs.soton.ac.uk; Jens Witzel <jens.witzel@uzh.ch>
Betreff: RE: Different templates or depending on URI

 

This is possible in v3.3.16 (and probably earlier 3.3 versions. Not sure about 3.4):
$c->{user_area_template} = 'user';

 

This will use a template file 'user.xml'.

 

Cheers,

John

 

From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk] On Behalf Of Jens Witzel via Eprints-tech
Sent: 16 January 2023 15:30
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Different templates or depending on URI

 

CAUTION: This e-mail originated outside the University of Southampton.

 

Another question: is there a ‘<epc:if expr…>’ way inside a template or a config in general, to let front and backend have different looks or let there be different templates? E.g. depending on «/cgi/users» as URI? Otherwise I’ll have to use dynamic_template.pl

 

Any hint is welcome
Jens

--
Jens Witzel
Zentrale Informatik
Universität Zürich
Stampfenbachstrasse 73
CH-8006 Zürich

mail:  jens.witzel@uzh.ch
phone: +41 44 63 56777
http://www.zi.uzh.ch