Hi all - I’ve run into a puzzling issue - I’m setting up a journal using the Immersion theme, and neither of the front page template files appear to exist. Any suggestions welcome (different file name perhaps?)
Running OJS 3.2.0.2
~Jon
Hi all - I’ve run into a puzzling issue - I’m setting up a journal using the Immersion theme, and neither of the front page template files appear to exist. Any suggestions welcome (different file name perhaps?)
Running OJS 3.2.0.2
~Jon
Hi John
I believe the Immersion theme is a child theme from the default theme so it doesn’t need any tpl files
Hi @Jon_Roffe and @navotera,
The Immersion isn’t a child theme of the Default theme. Front-end templates are here: https://github.com/pkp/immersion/tree/master/templates/frontend
Thanks to you both, very much appreciated.
best
~Jon
Hi
I wonder if I can again impose on you Vitaliy. I’m trying to resolve a couple of quite basic things but can’t seem to find the right .tpl files to modify:
I’d like to have the author text under the title
I’d like the link on the title text to go straight to the article, rather than to the presentation of the abstract page (presumably the same template will allow me to delete the ‘PDF’ text insertion
Thanks in advance - and apologies for the tedious questions. First time around with this great software and this very good looking theme
~Jon
article_summary.tpl
. Do you want to add a link to the HTML galley instead of a link to the article landing page? You can take a look at the galley_link.tpl
for examples of such links.Hi Vitaliy
apologies for the long delay writing back. The URL for the site in development is https://www.parrhesiajournal.org/index.php
I’ve just been looking in the two .tpl files you referred me to and I can’t see how to edit them to get the required effects. To explain more clearly than I did in my earlier message (and looking at the site)
In article_summary.tpl it appears that the author is after the title.
I appreciate you taking the time to help me out with this.
~Jon
Hi @Jon_Roffe,
It’s article_summary.tpl
, which is imported by issue_toc.tpl
, which in turn is used in indexJournal.tpl
and issue.tpl
.
$article->getAuthors()
will retrieve an array with Author objects, associated with a submission.
The title is underneath authors: https://github.com/pkp/immersion/blob/56f135f59c34ef810fc9deb6f81464f1e3987871/templates/frontend/objects/article_summary.tpl#L47
The link to PDF is generated here: https://github.com/pkp/immersion/blob/56f135f59c34ef810fc9deb6f81464f1e3987871/templates/frontend/objects/galley_link.tpl#L61, particularly this part: {url page=$page op="view" path=$path}
The $path
variable is created here: https://github.com/pkp/immersion/blob/56f135f59c34ef810fc9deb6f81464f1e3987871/templates/frontend/objects/galley_link.tpl#L44-L48
From the version 3.2 and introduction of the versioning feature, galley ID is retrieved from a Publication object and each Submission can have several Publications