OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Adding a link to the conference information block

Are you a Director, Presenter, Reviewer or Conference Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael

Forum rules
This forum is meant for general questions about the usability of OCS from an everyday user's perspective: conference managers, presenters, and directors are welcome to post questions here, as are librarians and other support staff. We welcome general questions about the role of OCS and how the workflow works, as well as specific function- or user-related questions.

What to do if you have general, workflow or usability questions about OCS:

1. Read the documentation. We've written documentation to cover from OCS basics to system administration and code development, and we encourage you to read it.

2. take a look at the tutorials. We will continue to add tutorials covering OCS basics as time goes on.

3. Post a question. Questions are always welcome here, but if it's a technical question you should probably post to the OCS Technical Support subforum; if you have a development question, try the OCS Development subforum.

Adding a link to the conference information block

Postby RickMath » Sun Oct 09, 2011 7:09 pm

I would like to add a link to the conference information block that takes users to instructions for submitting final formatted papers. This would be something to add to in the items that are displayed such as CFP, Registration, Accommodation, etc.

The link would lead to a page that is already on our server so all I need is a way to have a link name like Submitting Final Papers and then a url for the page I want to take them to.

Is this something that may be doable without some major recoding.

Thanks for any suggestions.

Rick
RickMath
 
Posts: 263
Joined: Fri Feb 27, 2009 12:30 am

Re: Adding a link to the conference information block

Postby jmacgreg » Mon Oct 17, 2011 10:55 am

Hi Rick,

If you've already created the page, all you should need to do is add the link to the template file(s) that generates the conference information listing. That would be plugins/blocks/navigation/block.tpl, as well as templates/schedConf/index.tpl if you want to modify the listing on the scheduled conference's index page. Another option to just add the link to the sidebar would be to create a custom block using the Custom Block plugin; add a link to the block; and then position it where you want. It won't be integrated visually with your conference information listing, however,

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

Re: Adding a link to the conference information block

Postby RickMath » Mon Oct 17, 2011 12:05 pm

Thanks James

I found the two tpl files. Do I need to add a variable (Hope that's the right term) similar to those in the last lines such as $schedConfPostTrackPolicies? Where would this be defined?

As always I appreciate your help! :D

Rick
Last edited by RickMath on Mon Oct 17, 2011 2:40 pm, edited 1 time in total.
RickMath
 
Posts: 263
Joined: Fri Feb 27, 2009 12:30 am

Re: Adding a link to the conference information block

Postby RickMath » Mon Oct 17, 2011 2:39 pm

James

I answered my own last question. I just pasted the URL into the two template files with the <li>&#187; in front and now both lists are working exactly as I wanted.

Hopefully other will benefit from this post.

Thanks so much! :D :D

Rick
RickMath
 
Posts: 263
Joined: Fri Feb 27, 2009 12:30 am

Re: Adding a link to the conference information block

Postby RickMath » Mon Oct 17, 2011 10:43 pm

James

It turns out that inserting the URLs results in these being listed for all of the three conferences 2010, 2011 and 2012 that I have in the database. Is there a way to restrict these to single conference like the way you select items to be displayed in the setup for each conference.

Guess I need to backtrack and refine my solution in the last post.

Thanks and I look forward to a refined solution.

Rick
RickMath
 
Posts: 263
Joined: Fri Feb 27, 2009 12:30 am

Re: Adding a link to the conference information block

Postby jmacgreg » Sun Oct 23, 2011 9:30 pm

Hi Rick,

What you can do is add a smarty if statement that only displays the code if something about the current scheduled conference (say, the title) checks out. For example, you can do something like the following:

Code: Select all
{if $schedConf->getFullTitle() == 'My scheduled conference title'}
<li>&#187; <a href="example.com">link</a></li>
 {/if}


In the above example, the link would only display when the title for the currently-viewed scheduled conference is "My scheduled conference title". Note that the matching text in that if statement must match exactly -- case, spaces, and everything.

If you have any questions about this, just let us know!

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

Re: Adding a link to the conference information block

Postby RickMath » Mon Oct 24, 2011 11:22 pm

Thanks James

That work but cause a problem when clicking on About. I sent a PM to you with the error and the code.

Rick
RickMath
 
Posts: 263
Joined: Fri Feb 27, 2009 12:30 am

Re: Adding a link to the conference information block

Postby jmacgreg » Tue Nov 01, 2011 10:33 am

Hi Rick,

Sorry, I didn't see your PMs until now -- I actually don't check those unless I've specifically solicited one, and we do prefer that errors etc. are talked about publicly where possible (eg. where it doesn't compromise site security) so that others can learn from the problems' resolutions.

Regarding your error -- I'd suggest clearing your template and data caches and see if the problem persists.

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

Re: Adding a link to the conference information block

Postby RickMath » Thu Nov 03, 2011 7:42 pm

James

Sorry about the PM but I did not want send the exact code with the links.

Anyway the error on clicking on About was resolved by clearing the date and template caches.

The items still show up in the current conference where I inserted the title of it. They also show up in the archived conferences that do not have the title to the current conference.

Rick
RickMath
 
Posts: 263
Joined: Fri Feb 27, 2009 12:30 am


Return to OCS Conference Support and Discussion

Who is online

Users browsing this forum: No registered users and 2 guests