OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



OJS Plugin: Static Pages

The Plugin Gallery is a venue for users of PKP software to share their plugins.

Moderators: jmacgreg, michael, John

Forum rules
If you post a plugin here, please include information on which versions of which applications it is compatible with. Attach a tarball of the plugin (e.g. tar cvzf myPlugin-0.1.tar.gz plugins/generic/myPlugin). Thanks for contributing!

Rate this plugin

Terrible!
1
4%
Poor
0
No votes
OK
1
4%
Good
8
35%
Great!
13
57%
 
Total votes : 23

Re: OJS Plugin: Static Pages - dispalying images

Postby thebigchuckster » Sun Aug 02, 2009 7:09 pm

Are paths to image being resolved incorrectly or am I doing something wrong?

I'm using this plugin to host support pages for our Guest Editors - they'll be section editors with fairly limited access.

To host the training pages, I've setup a new journal <http://ojs.e-contentmanagement.com/index.php/train/> that's not 'public' but is still available to anyone who knows it.

The Static Page plugin is displaying pages without requiring login which what I wanted expected <http://ojs.e-contentmanagement.com/index.php/train/pages/view/section_editor_guide>

To store screenshots, I've setup a new directory in the File Browser <http://ojs.e-contentmanagement.com/index.php/train/manager/files/help_images> and it's not allowing access without a login which is also what I've expected ... but this is where it gets confusing for me.

When I look at the code that it generates for inserting an Image it re-maps the explicit path to the image with a relative path so I get:
<../../../index.php/train/manager/files/help_images/section_editor_guide_1_login.jpg>
when I had actually entered:
<http://ojs.e-contentmanagement.com/index.php/train/manager/files/help_images/section_editor_guide_1_login.jpg>

My current workaround is storing the images on another server (not for the access issue, but ensuring the URL to the image is correctly resoved).

Is this the normal behaviour of TinyMCE? (re-writing the URL to a relative one if on the same server)

... or just an adverse affect of using the File Browser for purposes other than intended on a journal that's no public? ;)
thebigchuckster
 
Posts: 22
Joined: Wed Jun 10, 2009 11:29 pm
Location: Maleny, Australia

Re: OJS Plugin: Static Pages

Postby netfunda » Thu Aug 20, 2009 1:16 am

This is a fantastic plug-in. Really!

What about creating a block that displays links to all static pages created using this plug-in?

Kindly help.
netfunda
 
Posts: 14
Joined: Tue Jul 28, 2009 8:42 am

Re: OJS Plugin: Static Pages

Postby jmacgreg » Thu Aug 27, 2009 1:35 pm

Hi netfunda,

You can use the Custom Block plugin for that purpose exactly (viewtopic.php?f=28&t=3459). Both of these plugins will be packaged with OJS 2.3.

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

Re: OJS Plugin: Static Pages

Postby jmacgreg » Thu Aug 27, 2009 2:23 pm

Regarding the problem Charles reported above: see viewtopic.php?f=28&t=3735&p=19096#p19096.
jmacgreg
 
Posts: 4186
Joined: Tue Feb 14, 2006 10:50 am

Re: OJS Plugin: Static Pages

Postby Fang » Thu Sep 03, 2009 8:10 pm

Thanks for taking the time to help, I really apprciate it.
Fang
 

Re: OJS Plugin: Static Pages

Postby DHatherley » Fri Dec 04, 2009 4:42 am

I have an install of OJS that must use URL parameters instead of PATH_INFO (disable_path_info=On) because I need to use mod_rewrite to rewrite the URL for access using various domain names for different journals. It seems, however, that saving static pages won't work with this setup. This persists even when I disable mod_rewrite so that the URL is untouched.

My setup is as follows:

one subdomain (ojs.mydomain.net) for us to manage journals.
one domain (journal1.com) to access one journal
one domain (journal2.com) to access another journal

mod_rewrite rewrites the url for journal1.com and journal2.com so that any parameter indicating the journal is rewritten to have the correct journal id (i.e. to ensure that it is not possible to access journal2 via journal1.com and vice versa).

We do all our maintenance and journal management using ojs.mydomain.net, and mod_rewrite does not touch any URLs for this domain. When attempting to edit a static page (e.g.
Code: Select all
http://ojs.mydomain.net/index.php?journal=journal1&page=manager&op=plugin&path[]=generic&path[]=StaticPagesPlugin&path[]=edit&path[]=7
) the edit can be carried out, but clicking the save button returns me to the plugin management page. This is the case when mod_rewrite is enabled and when it is disabled by completely removing the .htaccess file. Having investigated the plugin a little, it is clear that the plugin's manage() method is not being called for the save, either with or without mod_rewrite in operation.

The static page edit form's action attribute is
Code: Select all
http://ojs.mydomain.net/index.php?journal=journal1&page=manager&op=plugin&path[]=generic&path[]=StaticPagesPlugin&path[]=save&path[]=7
which looks correct to me.

As I say, I am having this problem regardless of whether mod_rewrite is in effect, and it only occurs when using URL parameters instead of PATH_INFO. Has anyone else come across this problem or have any hints on how to circumvent it? My current workaround is to revert to using PATH_INFO and disabling the individual journal domains while a colleague edits the static pages, but this is far from ideal.

The domains stated here are not the actual domains, they are illustrative.

Thanks.
DHatherley
 
Posts: 1
Joined: Fri Dec 04, 2009 4:19 am

Re: OJS Plugin: Static Pages

Postby luiz_borges » Thu Jan 14, 2010 5:00 am

I found something strange in the plugin (I'm using the one that comes with version 2.3.1.2). When I'm viewing a page created with it (pages/view/) without being logged it, it doens't show the correct labels. See the screenshot:
static-error.jpg
Error in Static Plugin
static-error.jpg (9.12 KiB) Viewed 7087 times


This is the address of the page in question: http://seer.fclar.unesp.br/index.php/al ... w/conselho

Luiz Borges
luiz_borges
 
Posts: 29
Joined: Tue Jun 30, 2009 1:44 pm
Location: Araraquara-SP / Brasil

Re: OJS Plugin: Static Pages

Postby jmacgreg » Tue Jan 19, 2010 4:50 pm

Hi Luiz Borges,

Thanks for the report! I've replicated this, and have filed a bug report here: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=5073. Please feel free to CC yourself to that report for further updates.

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

Re: OJS Plugin: Static Pages

Postby mlynskey » Sun Mar 28, 2010 8:47 am

I just began using Static Pages plug-in and am having the problem of any text formatting created in the content editor getting lost and all appearing as normal paragraph text. If you look at the source code of the page the tags are missing. Has anyone else experienced this?
mlynskey
 
Posts: 1
Joined: Sun Mar 28, 2010 8:43 am

Re: OJS Plugin: Static Pages

Postby jmacgreg » Sun Apr 04, 2010 12:13 pm

Hi mlynskey,

Are you using the HTML button to add your HTML/text content, or are you just pasting right into the tinyMCE field? You may want to try using the HTML button, or possibly even the Word Paste button. If you're still having problems, please show us what kind of text you're trying to add so we can try and replicate the issue.

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

Re: OJS Plugin: Static Pages

Postby Bowers3333 » Fri Aug 06, 2010 7:50 pm

I'm one who voted "good" as it's a great plugin. It's most likely my lack of "techie skills" but I had a hard time making it work too. The formatting didn't look quite right when I used it.
Bowers3333
 
Posts: 1
Joined: Fri Aug 06, 2010 7:40 pm

Re: OJS Plugin: Static Pages

Postby sasutton » Fri Apr 15, 2011 1:02 pm

I'm running OCS 2.3.3.1 in a test implementation and just installed my first Static Page. It works fine except that the side navigation menu for the current conference disappears when the page is accessed. The static page (Conference Speakers) is linked from the test conference homepage at http://dcmi.ischool.uw.edu/index.php/SSIBT/S2011. The resulting static page is at http://dcmi.ischool.uw.edu/index.php/SSIBT/index/pages/view/speakers...the right-hand navigation block has vanished. Am I expecting the wrong behavior, doing it all wrong?
sasutton
 
Posts: 67
Joined: Thu Dec 07, 2006 8:19 pm
Location: Seattle, Washington

Re: OJS Plugin: Static Pages

Postby jmacgreg » Wed Apr 20, 2011 3:55 pm

Hi Stuart,

That's strange behaviour indeed. Are you still experiencing this behaviour? When I check your site, it appears that the navigation block is now on the left side. However, you'll note that information from the block (specifically, the "Conference Information" section) disappears when viewing the static page. Technically, this is behaving as it should: the static page is created as a Conference Website-level page, not a Scheduled Conference-level page, and so any sidebar block displays only information relevant to the conference website itself -- not information relevant to the scheduled conference.

Could you confirm if this this the problem behaviour here? If so, I'll submit a bug report/feature request suggesting that static pages be attributable to specific scheduled conferences.

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

Re: OJS Plugin: Static Pages

Postby sasutton » Wed Apr 20, 2011 4:24 pm

James, you answered my question. It was clear from the behavior that my first static page was at the conference website-level as opposed to the scheduled conference level. If that is the appropriate behavior for static pages as implemented, then it's performing properly.

I really do think that having the option to create static pages that are attributable to a scheduled conference so one could link to them while maintaining all scheduled conference side block data would be very useful. It would provide the means to link to additional (static) pages from within text that do not demand or justify scheduled conference-wide links in the navigation block or other custom blocks.

Thanks for taking a look at this, your time is much appreciated.

Stuart
sasutton
 
Posts: 67
Joined: Thu Dec 07, 2006 8:19 pm
Location: Seattle, Washington

Re: OJS Plugin: Static Pages

Postby sasutton » Wed Apr 20, 2011 4:52 pm

James, I need to recant a bit of my previous post. When I look at the site again, there is something here I am not understanding. If a "static page is created as a Conference Website-level page", then I would expect that all side-bar blocks assigned for a specif scheduled conference would disappear when the static page is accessed and not just the navigation block.:

(1) Go to http://dcmi.ischool.uw.edu/index.php/SSIBT/S2011 and you'll see a custom block on the right for keynote speakers (with greeking and Sir Berners-Lee's image) and on the right you'll see the navigation bar;

(2) The static page from my original post has been linked to the "##Speakers##" link in the header. Click that link to go to the static page with the resulting URL of http://dcmi.ischool.uw.edu/index.php/SSIBT/index/pages/view/speakers.

The static page that has appeared also has info on speakers with Sir Berners-Lee repeated twice. Note that the navigation block has disappeared as one would expect accessing a page at conference website level. BUT, the custom block--also attributable to a scheduled conference--remains. It's this latter behavior that now does not make sense. Why one block remains while another disappears?

Stuart
sasutton
 
Posts: 67
Joined: Thu Dec 07, 2006 8:19 pm
Location: Seattle, Washington

PreviousNext

Return to Plugin Gallery

Who is online

Users browsing this forum: No registered users and 2 guests