Hi,
I need to change a little bit the template of the submission wizard. I found the file I need to change, I’ve tried to create a subfolder in my theme, but it does not work.
The file path is: theme_name/templates/submission/submissionMetadataFormTitleFields.tpl
Hmm, that template gets called with {include file="core:submission/submissionMetadataFormTitleFields.tpl"} from other templates. So maybe adding a template to the theme plugin folder is not getting registered for that reason. Having that core parameter will always call it from the pkp-lib? @NateWr?
Yes, I believe that is the case. You’ll probably need to override any template which calls it to remove the core: from the call. Those are submission/form/step3.tpl and controllers/modals/submissionMetadata/form/IssueEntrySubmissionReviewForm.tpl.
I am trying to override an Admin template:
I would like to add a new link after Site Settings with name ‘Others’
It 'is a copy of Hosted Journals link (list all the journals) and modify link ‘edit’ with others questions)
I created a new child-theme and structure: Plugins/themes/default-child/templates/admin/
Oh, and one other thing: when on the admin page, you’re technically under the “site” area, not a specific journal. So you’ll need to make sure that you’ve activated your custom theme for the site, not just a journal.
My log: "GET /ojs/index.php/index/user/authorizationDenied?message=user.authorization.roleBasedAccessDenied HTTP/1.1" 200 8838
Image with error:
I am logged with my admin user.
I have the same error as OJS 3 - Authorization Denied
I installed in localhost with xampp mysql --version mysql Ver 14.14 Distrib 5.7.22, for Linux (x86_64) using EditLine wrapper
I cannot access to show the page with all the journals to edit like this:
I’m glad you were able to get it working. I’m sorry but I don’t understand what you’re trying to accomplish. Can you describe in detail, from the end-user’s perspective, what you are trying to make happen? What do you want the user to see/do that isn’t currently there? That will help me understand the changes you’re making and I may be able to offer a good solution.
Hi @NateWr, I created a custom admin page satisfactorily
I created a new handler, DAO and templates and it’s running OK
I would like to use this variables in my admin template,
I am not sure if I need to modify function initData() from lib/pkp/…/ ContextSiteSettingsForm.inc.php
initData() - Use this to initialize data for a new form (ie - when the form is first loaded).
fetch() - Use this to pass data to the form’s template and load the template. It’s common to use readInputData() here to get any data that might have been submitted as part of the form.
execute() - Use this to validate the form and save changes to the database.