[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[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 at uzh.ch<mailto:jens.witzel at uzh.ch>
phone: +41 44 63 56777
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0ee1b238401c4dd57bec08daf7d95f84%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638094810223772679%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=HG%2BbylOMXikKCbxXSqjMykNAfrcLNiKDJresbBC1DWA%3D&reserved=0
Von: John Salter <J.Salter at leeds.ac.uk>
Gesendet: Montag, 16. Januar 2023 16:39
An: eprints-tech at ecs.soton.ac.uk; Jens Witzel <jens.witzel at 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 at ecs.soton.ac.uk<mailto:eprints-tech-bounces at ecs.soton.ac.uk> [mailto:eprints-tech-bounces at ecs.soton.ac.uk] On Behalf Of Jens Witzel via Eprints-tech
Sent: 16 January 2023 15:30
To: eprints-tech at ecs.soton.ac.uk<mailto:eprints-tech at 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 at uzh.ch<mailto:jens.witzel at uzh.ch>
phone: +41 44 63 56777
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0ee1b238401c4dd57bec08daf7d95f84%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638094810223772679%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=HG%2BbylOMXikKCbxXSqjMykNAfrcLNiKDJresbBC1DWA%3D&reserved=0<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.zi.uzh.ch%2F&data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C0ee1b238401c4dd57bec08daf7d95f84%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C638094810223772679%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000%7C%7C%7C&sdata=HG%2BbylOMXikKCbxXSqjMykNAfrcLNiKDJresbBC1DWA%3D&reserved=0>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20230116/4d0251f7/attachment-0001.html