EPrints Technical Mailing List Archive
Message: #08990
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] change the homepage title
- To: Yuri via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] change the homepage title
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Tue, 5 Jul 2022 09:49:02 +0100
Hi Yuri,
For EPrints 3.4.3 I implemented a solution that may address your question:
https://github.com/eprints/eprints3.4/issues/111
This can be implemented by adding converting a simple <body> tag in your template to something like:
<body id="page_{pin:page_id}">
This can then be used in CSS by starting the entry with:
#page_
An example might be that you want to change the summary box on abstract pages only:
#page_static_abstract .ep_summary_box
Or you may want to change the report title heading on the IRStats2 report pages:
#page_IRStats2_Report .report_title
I had been meaning to document this properly on the wiki but had not got round to it. 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. Then when 3.4.3 was released, I forgot about writing the documentation.
I guess this functionality could be used to solve your problem in the following way. As the homepage has no path using the markup for the <body> tag I described above would use:
#page_static
So say you wanted the hide the main heading on the homepage you could add the following to the CSS:
#page_static h1#page-title {display: none;
}
CAUTION: This e-mail originated outside the University of Southampton.Hi!
I would like to display any title in the eprints homepage (xpage) but still have a page title (<title> 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)?
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- References:
- [EP-tech] change the homepage title
- From: Yuri <yurj@alfa.it>
- [EP-tech] change the homepage title
- Prev by Date: [EP-tech] (EP3.3.16) Upload Workflow: new PDF manipulating screen plugin - problems refreshing the filelist
- Next by Date: Re: [EP-tech] change the homepage title
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):