<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970; background-color:#F7F9FA; color:#8D3970; font-size:14px; line-height:22px; font-family: Calibri, Arial, Helvetica, sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<p><font size="5">It worked like a charm (3.3 with frontpage template)! Thanks!</font></p>
<p><font size="5">It is documented here: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.eprints.org%2Fw%2FAPI%3Aperl_lib%2FEPrints%2FApache%2FTemplate.pm&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C01ff298a80644940c3ac08da5e665dba%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637926090993488714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=PkwHhgaWax%2Bj0Cgi6Cu9BlAZjVMhMsdmN6ODUrJheNY%3D&amp;reserved=0" originalSrc="https://wiki.eprints.org/w/API:perl_lib/EPrints/Apache/Template.pm" shash="kkQcIR7SpegouztsosVk3Rinwb9B1IpodQZUzpXM4d9/ms1DgmzeUvg/RJb6Z4z0QUfYz6EN008v6LWz5xtHJvWPxXFTDyrOFUUaUMd5IMa9b2YcFNFIw+VudmTCL+oZKM1Ep/Aun61aaUajzvp52IUVTnLr4D0aFdGBFYaclnQ=">
https://wiki.eprints.org/w/API:perl_lib/EPrints/Apache/Template.pm</a></font></p>
<p><font size="5"></font><br>
</p>
<div class="moz-cite-prefix">Il 05/07/22 10:49, David R Newman via Eprints-tech ha scritto:<br>
</div>
<blockquote type="cite" cite="mid:EMEW3|8f856f4d68a5d5526c9011e8092f0f2ey649n603drn|ecs.soton.ac.uk|c92f8687-929c-fcec-a808-f967c4ee2a32@ecs.soton.ac.uk">
<p><font size="4">Hi Yuri,</font></p>
<p><font size="4">For EPrints 3.4.3 I implemented a solution that may address your question:</font></p>
<p><font size="4"><a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fissues%2F111&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C01ff298a80644940c3ac08da5e665dba%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637926090993488714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=EzHPDRk46mjMjVqn5NkdXcDXc%2BM38dIMKtZ6NaXqKNI%3D&amp;reserved=0" originalSrc="https://github.com/eprints/eprints3.4/issues/111" shash="MHBgTaX/+JE9VRmO6LW8USCVpFhksQOsqTOmDSikVd3ub23cLnKptgOlc/FHk1EzFMOnEXawrko+NibptawekceR0Raax/TrSpbOayq8EbMxXzzA6DyKOkYsG9wl1Z8s9n2fFnDv4bQA1Bk8UqySP/9kDKaGCCcNl4UPITVN36w=" originalsrc="https://github.com/eprints/eprints3.4/issues/111" shash="OIC/1BzkeN+aNGHoUtkuMbxYbznQxAG2ethzUwXTtSygN6akS2+g7V/gLBLtQNkjYOhcHCVK/EtV76ocLmuK0fyW5GJ5dvk2HET9yBX6WhG5eFbd3gMyswWx3Lykn1oWtOorKWv+XyQgsrj/rCrvqkxhd6CJNkB5ibgxj0lTxyk=" moz-do-not-send="true">https://github.com/eprints/eprints3.4/issues/111</a></font></p>
<p><font size="4">This can be implemented by adding converting a simple </font><font face="monospace">&lt;body&gt;</font><font size="4"> tag in your template to something like:</font></p>
<p><font face="monospace">&lt;body id=&quot;page_{pin:page_id}&quot;&gt;</font></p>
<p><font size="4">This can then be used in CSS by starting the entry with:</font></p>
<p><font face="monospace">#page_</font></p>
<p><font size="4">An example might be that you want to change the summary box on abstract pages only:</font></p>
<p><font face="monospace">#page_static_abstract .ep_summary_box </font><font size="4"><br>
</font></p>
<p><font size="4">Or you may want to change the report title heading on the IRStats2 report pages:</font></p>
<p><font face="monospace">#page_IRStats2_Report .report_title</font></p>
<p><font size="4">I had been meaning to document this properly on the wiki but had not got round to it.&nbsp; As I did it sometime before the release of 3.4.3, I did not want to document it for people to then find they could to use it until 3.4.3 was out.&nbsp; Then
 when 3.4.3 was released, I forgot about writing the documentation.</font></p>
<p><font size="4">I guess this functionality could be used to solve your problem in the following way.&nbsp; As the homepage has no path using the markup for the
</font><font face="monospace">&lt;body&gt;</font><font size="4"> tag I described above would use:</font></p>
<p><font face="monospace">#page_static</font></p>
<p><font size="4">So say you wanted the hide the main heading on the homepage you could add the following to the CSS:</font></p>
<font face="monospace">#page_static h1#page-title {</font><br>
<font face="monospace">&nbsp;&nbsp;&nbsp; display: none;</font><br>
<font face="monospace">}</font><font size="4"><br>
</font>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><font size="4">If you are not currently using 3.4.3, it is not straightforward to backport this code for earlier versions of EPrints, especially pre-3.4.&nbsp; You could always just create a separate template for your homepage.&nbsp; This
 is quite common across EPrints repositories.&nbsp; This would allow you to have complete control over your
</font><font face="monospace">&lt;title&gt;</font><font size="4"> and </font><font face="monospace">&lt;h1&gt;</font><font size="4"> tags, as any changes would only affect your homepage.&nbsp; To make the static page for your homepage use this alternative template, you just
 need to add it to the XML markup for the static page.&nbsp; Lets say the template is called frontpage.xml you would add (somewhere before the
</font><font face="monospace">xpage:body</font><font size="4"> tag):<br>
</font></div>
<div class="moz-cite-prefix"><font face="monospace"><br>
</font></div>
<div class="moz-cite-prefix"><font face="monospace">&lt;xpage:template&gt;frontpage&lt;/xpage:template&gt;</font><font size="4"><br>
</font></div>
<div class="moz-cite-prefix"><font size="4"><br>
</font></div>
<div class="moz-cite-prefix"><font size="4">Obviously, having a separate template for your homepage will add to your workload if/when you choose to rebrand your repository.</font></div>
<div class="moz-cite-prefix"><font size="4"><br>
</font></div>
<div class="moz-cite-prefix"><font size="4">Regards</font></div>
<div class="moz-cite-prefix"><font size="4"><br>
</font></div>
<div class="moz-cite-prefix"><font size="4">David Newman</font><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 05/07/2022 8:32 am, Yuri via Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:7aeaa8cc-443a-1712-0f8a-fc366a87499d@alfa.it">
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970;
            background-color:#F7F9FA; color:#8D3970; font-size:14px;
            line-height:22px; font-family: Calibri, Arial, Helvetica,
            sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the University of Southampton.
</div>
</div>
<div>
<p><font size="5">Hi!</font></p>
<p><font size="5">&nbsp;I would like to display any title in the eprints homepage (xpage) but still have a page title (&lt;title&gt; tag). Is this possible? Also a css solution is ok. Could be the h1 title in the page be marked by a class (for example the filename of
 the xpage)?</font><br>
</p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C01ff298a80644940c3ac08da5e665dba%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637926090993488714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=W9c%2FXboLMpuIPUStSkOmEGIMLreSE9VPUrK7PUe3VPQ%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="sD+0AS9kaat/T3stCasPe7X64dubxpFfstzgVBBpXFgfL/Li9YZt+2cHIL9vlcsTQqmuLOS4JaTs5KoXwyldPwPkAr16iG0CUos0yoS07L5dSAW7FkVp0TGIO9raNq0GZxS/0TzbdfnWE6FgQ3ZqjDWtXjwKkMsYExpfHVuC7D8=" originalsrc="http://www.eprints.org/tech.php/" shash="A/kRPJuPvo8Uky7cDQ+JNF2MX2QLtd3qUYxKtjY+vTdUxswRn80nSBd7XRcg0jqsXldSkLxWD65HN4rsRJ7yp4RMsJvHsfffwai/wHnBT2dkOkFBsYTf7RhjUCuAVTZcuVRchKdXrabVPbHFR64Ce3SRb5UPHNHgCvihJLMcKo4=" moz-do-not-send="true">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C01ff298a80644940c3ac08da5e665dba%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637926090993488714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qHcLpjh5vVo3cv6B%2BGBf9O%2FXWusuZZ9TmkbSEmRJdP0%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="WA8J3uhMTQqGryJ2pifc580UMoABmxxO1f5i6MKhiy1XC4ce/Hfel5CZwaEn8DPdnzeqOw6zn8xpaHEdEr/LIb0GlSWmLFSHPvlIJr7EjFmhwBHCatOEK0N6CnYNT4agCG1vmse2X64tO/dws0DAsv9F3E5luNEToFG8Yc5xB8g=" originalsrc="http://wiki.eprints.org/" shash="pKZVfbSyxY034QelbU5zYyxS05ICcfG9uhT+O/K8951QBGwW1BFMfR1LnA9Cj4jQYZPgL5vWigyAuUXrELaIIsXLB7aJ8Era8tI2T5txYdI0tEEDqXAjxfncv9dv8PIKjsZLF1MHO62HBnpuhJTaZUNu6EawY/jSHlTREIBTgqo=" moz-do-not-send="true">http://wiki.eprints.org/</a></pre>
</blockquote>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C01ff298a80644940c3ac08da5e665dba%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637926090993488714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=W9c%2FXboLMpuIPUStSkOmEGIMLreSE9VPUrK7PUe3VPQ%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="sD+0AS9kaat/T3stCasPe7X64dubxpFfstzgVBBpXFgfL/Li9YZt+2cHIL9vlcsTQqmuLOS4JaTs5KoXwyldPwPkAr16iG0CUos0yoS07L5dSAW7FkVp0TGIO9raNq0GZxS/0TzbdfnWE6FgQ3ZqjDWtXjwKkMsYExpfHVuC7D8=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=05%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C01ff298a80644940c3ac08da5e665dba%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637926090993488714%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=qHcLpjh5vVo3cv6B%2BGBf9O%2FXWusuZZ9TmkbSEmRJdP0%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="WA8J3uhMTQqGryJ2pifc580UMoABmxxO1f5i6MKhiy1XC4ce/Hfel5CZwaEn8DPdnzeqOw6zn8xpaHEdEr/LIb0GlSWmLFSHPvlIJr7EjFmhwBHCatOEK0N6CnYNT4agCG1vmse2X64tO/dws0DAsv9F3E5luNEToFG8Yc5xB8g=">http://wiki.eprints.org/</a></pre>
</blockquote>
</div>
</body>
</html>