EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #05835
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] [3.3.15] How to define the path in a pin?
- To: "eprints-tech@ecs.soton.ac.uk" <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] [3.3.15] How to define the path in a pin?
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Mon, 25 Jul 2016 08:38:51 +0000
Does this help: https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Update/Views.pm#L717-L728 A phrase “viewintro_view_1” might work? It gets inserted at the top of the page – which might not be what you want? You can also include a ‘template’ argument for a view, if that helps? Cheers, John From: eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Denis Pitzalis Hi Eprinters, I am configuring a view and I want to display something only in a certain condition. The logic solution would be to use a pin I think. I can think of three methods: 1) a test in the template <epc:if test="current_path eq '/views/1'" > <div class="view_1" /> </epc:if> 2) a test in a dynamic_template <epc:pin ref="view1" /> and then in the dynamic_template.pl 3) a test in phrase? does this really works? obviously I have been unable to make any of these works, do you have any experience? Best, Denis |
- References:
- [EP-tech] [3.3.15] How to define the path in a pin?
- From: Denis Pitzalis <denis.pitzalis@gmail.com>
- [EP-tech] [3.3.15] How to define the path in a pin?
- Prev by Date: [EP-tech] [3.3.15] How to define the path in a pin?
- Next by Date: Re: [EP-tech] [3.3.15] How to define the path in a pin?
- Previous by thread: [EP-tech] [3.3.15] How to define the path in a pin?
- Next by thread: Re: [EP-tech] [3.3.15] How to define the path in a pin?
- Index(es):