<div dir="ltr"><div><div><div><div><div>Hi John,<br><br></div>thanks, but I&#39;m afraid that the phrase viewintro_view will not work, unless I&#39;ll be able to display it only in the list page. I am using a leaflet map, so I need a<br></div>&lt;div id=&quot;mymap&quot; /&gt; in my view_item_page<br><br></div>using a specific mymap template is nice because I can load the leaflet js only for that page, but I&#39;m obliged to have the mymap call also in the menu page.<br><br></div>and for the phrase it is unclear for me if I can display the phrase only on the item list page.<br><br></div>Denis<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 10:38 AM, John Salter <span dir="ltr">&lt;<a href="mailto:J.Salter@leeds.ac.uk" target="_blank">J.Salter@leeds.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-GB">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Does this help:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><a href="https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Update/Views.pm#L717-L728" target="_blank">https://github.com/eprints/eprints/blob/3.3/perl_lib/EPrints/Update/Views.pm#L717-L728</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">A phrase “viewintro_view_1” might work?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">It gets inserted at the top of the page – which might not be what you want?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">You can also include a ‘template’ argument for a view, if that helps?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d">John<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US"> <a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a> [mailto:<a href="mailto:eprints-tech-bounces@ecs.soton.ac.uk" target="_blank">eprints-tech-bounces@ecs.soton.ac.uk</a>]
<b>On Behalf Of </b>Denis Pitzalis<br>
<b>Sent:</b> 25 July 2016 09:15<br>
<b>To:</b> Eprints Tech Mailing List &lt;<a href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a>&gt;<br>
<b>Subject:</b> [EP-tech] [3.3.15] How to define the path in a pin?<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Eprinters,<br>
<br>
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">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:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">1) a test in the template<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">&lt;epc:if test=&quot;current_path eq &#39;/views/1&#39;&quot; &gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">   &lt;div class=&quot;view_1&quot; /&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">&lt;/epc:if&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2) a test in a dynamic_template<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    &lt;epc:pin ref=&quot;view1&quot; /&gt;<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    and then in the <a href="http://dynamic_template.pl" target="_blank">dynamic_template.pl</a><br>
    $c-&gt;{dynamic_template}-&gt;{function} = sub {<br>
        my( $repository, $parts ) = @_;<br>
        if ( current_path() eq &quot;/views/1&quot; ) {<br>
            my $xml = $repository-&gt;xml();<br>
            my $div = $xml-&gt;create_element( &quot;div&quot;, class =&gt; &quot;view_1&quot;);<br>
            $parts-&gt;{view1} = $div;<br>
        }<br>
    };<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">3) a test in phrase? does this really works?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">obviously I have been unable to make any of these works, do you have any experience?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Best,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Denis<u></u><u></u></p>
</div>
</div>
</div></div></div>
</div>

<br>*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="http://www.eprints.org/tech.php/" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="http://wiki.eprints.org/" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="http://forum.eprints.org/" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><b><a href="mailto:d.pitzalis@unesco.org" style="border:none;text-decoration:none;color:#049cdb" target="_blank"><span style="color:#049cdb">Denis Pitzalis, PhD</span></a></b><br><a href="http://www.unesco.org" style="border:none;text-decoration:none;color:#b0b0b0" target="_blank"><span style="color:#b0b0b0">Web Architect/Lead Developer</span></a>
                    
                
                
                     
                
                
                    
                        <a href="http://www.unesco.org" style="border:none;text-decoration:none;color:#b0b0b0" target="_blank">
                            </a><br><br><a href="http://www.unesco.org" style="border:none;text-decoration:none;color:#b0b0b0" target="_blank"><span style="color:#b0b0b0">ERI/DPI/WEB</span></a><br><a href="https://goo.gl/maps/U2TEZ2x14MM2" style="border:none;text-decoration:none;color:#b0b0b0" target="_blank"><span style="color:#b0b0b0">7, place de Fontenoy<br>
                            75007 <span style="color:#e0e0e0">•</span> Paris <span style="color:#e0e0e0">•</span> France</span></a> <br>
                        <span style="color:#b0b0b0">Tel. +33 (0) 1 45 68 18 16</span>
                                        
                                
                
                     
                
                
                    
                        <a href="http://www.unesco.org" style="border:none;text-decoration:none;color:#b0b0b0" target="_blank">
                            </a><br><br><a href="http://www.unesco.org" style="border:none;text-decoration:none;color:#b0b0b0" target="_blank"><span style="color:#b0b0b0">http://www.unesco.org</span></a></div></div></div></div></div></div></div>
</div>