OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Customisation question. Which file to edit?

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Customisation question. Which file to edit?

Postby jayantabsarma » Sat Oct 11, 2008 1:08 pm

I am customizing the OCS as a Workshop/CME only system and as such do not require the following links to appear to the user under the 'Conference Information' in the page and in the block (http://www.necef.in/workshop/index.php/ebm/april09):

Conference Information that do not require:

» Call for Papers
» Proposal Submission
» Track Policies
» Presentations and Authors
» Accommodation

I will appreciate if someone tell which page to edit to delete these links. I do not want to overhaul the system but simply to delete these few links.

Thanks.
jayantabsarma
 
Posts: 5
Joined: Sat Oct 11, 2008 12:56 pm

Re: Customisation question. Which file to edit?

Postby jmacgreg » Mon Oct 13, 2008 2:25 pm

Hi jayantabsarma,

You will want to edit plugins/blocks/navigation/block.tpl for the block content, and for the main Scheduled Conference page, you'll want to edit templates/schedConf/index.tpl.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Customisation question. Which file to edit?

Postby jayantabsarma » Wed Oct 22, 2008 2:08 am

Many thanks.
Please give me a clue how to locate the string to delet the link e.g., 'Call for Paper'. I will really appreciate.
jayantabsarma
 
Posts: 5
Joined: Sat Oct 11, 2008 12:56 pm

Re: Customisation question. Which file to edit?

Postby jmacgreg » Wed Oct 22, 2008 10:38 am

Hi jayantabsarma,

Please bear in mind that to make these kinds of modifications you may have to have at least a limited understanding of HTML and the Smarty templating engine (http://smarty.net). In the case of plugins/block/navigation/block.tpl, the overall piece of code you are interested in is as follows:

Code: Select all
        {if $currentSchedConf}
                <span class="blockSubtitle">{translate key="schedConf.contents"}</span>

                <ul class="plain">
                        <li>&#187; <a href="{url page="schedConf" op="overview"}">{translate key="schedConf.overview"}</a></li>
                        {if $schedConfShowCFP}
                                <li>&#187; <a href="{url page="schedConf" op="cfp"}">{translate key="schedConf.cfp"}</a>{if $submissionsOpenDate} ({$submissionsOpenDate|date_format:$dateFormatLong} - {$submissionsCloseDate|date_format:$dateFormatLong}){/if}</li>
                        {/if}
                        {if $schedConfShowSubmissionLink}
                                <li>&#187; <a href="{url page="presenter" op="submit" requiresPresenter="1"}">{translate key="schedConf.proposalSubmission"}</a></li>
                        {/if}
                        <li>&#187; <a href="{url page="schedConf" op="trackPolicies"}">{translate key="schedConf.trackPolicies"}</a></li>
                        {if $schedConfShowProgram}<li>&#187; <a href="{url page="schedConf" op="program"}">{translate key="schedConf.program"}</a></li>{/if}
                        <li>&#187; <a href="{url page="schedConf" op="presentations"}">{translate key="schedConf.presentations.short"}</a></li>
                        {if $schedConfPostSchedule}<li>&#187; <a href="{url page="schedConf" op="schedule"}">{translate key="schedConf.schedule"}</a></li>{/if}
                        {if $schedConfPaymentsEnabled}<li>&#187; <a href="{url page="schedConf" op="registration"}">{translate key="schedConf.registration"}</a></li>{/if}
                        <li>&#187; <a href="{url page="schedConf" op="accommodation"}">{translate key="schedConf.accommodation"}</a></li>
                        <li>&#187; <a href="{url page="about" op="organizingTeam"}">{translate key="schedConf.supporters"}</a></li>
                        {if $schedConfPostTimeline}<li>&#187; <a href="{url page="schedConf" op="timeline"}">{translate key="schedConf.timeline"}</a></li>{/if}
                </ul>
                {/if}


The chunk that creates the Call for Papers link is near the top:

Code: Select all
                        {if $schedConfShowCFP}
                                <li>&#187; <a href="{url page="schedConf" op="cfp"}">{translate key="schedConf.cfp"}</a>{if $submissionsOpenDate} ({$submissionsOpenDate|date_format:$dateFormatLong} - {$submissionsCloseDate|date_format:$dateFormatLong}){/if}</li>
                        {/if}


If you remove that chunk, the Call for Papers link will be removed from the block. You would repeat similarly for the other template file I mentioned above.

Cheers,
James
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: Customisation question. Which file to edit?

Postby jayantabsarma » Wed Oct 22, 2008 12:17 pm

Many thanks. I have successfully modified the page and the block.
jayantabsarma
 
Posts: 5
Joined: Sat Oct 11, 2008 12:56 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest