OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Using HTML "id" attribute to name page items in te

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Using HTML "id" attribute to name page items in te

Postby rmichael » Fri Jun 01, 2007 9:47 am

To style our journal website, I've been frequently adding meaninful id attributes to the OJS templates. For example, because I want to "turn off" logins, the journal title above the breadcrumbs, and the breadcrumbs themselves, I've been naming those elements in order to do a simple "display: none;" in CSS. (I want them displayed on other pages, so I'll probably do if/then handling with Smarty.)

It possible OJS 2.2 will have more use of the ID attribute on page elements?

Working towards increased flexibility skinning of OJS would be great. (Meaning, an easy way to make different pages use different stylesheets for example, to avoid modifying the distributed tpl files.)

Perhaps this is something I can help with immediately?
rmichael
 
Posts: 113
Joined: Fri Mar 30, 2007 3:32 pm

Postby asmecher » Fri Jun 01, 2007 1:59 pm

Hi Richard,

We'll be adding theming support for OJS 2.2, but hadn't considered adding additional IDs. Could you describe a few sample changes you've made to template files? If they look promising, we'll certainly consider including them in the next release.

It'll also be possible to show and hide and rearrange various parts of the sidebar using the Layout Manager plugin, which will be released with OJS 2.2.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8453
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Thu Jun 07, 2007 2:28 pm

Hi all,

FYI, IDs have been added to the sidebar <div> elements in CVS, and will be included in OJS 2.2 when it is released. See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=2904 for the Bugzilla entry.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 8453
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests