Jump to content

Recommended Posts

  • 11 months later...
  • 1 month later...
Posted

I keep coming back to this module hoping. I think it's a very valuable add-on for any site in which the admin is not the same person as the developer and I get requests for a preview all the time. I downloaded the latest version (module pages says last update was March 29 2014) but I am a bit confused on a couple of things. The install instructions are:

This module's files should be placed in /site/modules/AutoUpgrade/. To use it you have to copy "preview.php" to your root folder. (If the module has write permission it should do it automatically).

First you should update the text to change AutoUpgrade to ProcessPreview.

Where does the preview.php page come from? Do I have to create that? The module has write permission but nothing was created automatically. What do I need to put in the preview.php page that I create? Or is it just a container.

  • 1 month later...
Posted

I'm finally continuing this module - thanks to Ole who's sponsoring it. 

Please post all open bugs here or directly at GitHub so I get an overview on what to do (you don't need to repost them if they are already posted here of course).

Thanks, nico

  • Like 6
Posted

I'm also in with a little inspection and think there might be solider ways to do it. But this is now sponsored? :P

  • Like 1
Posted

Hey Nico.

I have this installed now and testing. I'm using pw 2.4.0 and first attempt worked as expected. So far no major problems at all.

Nice work. This may become standard in each of my sites as it is often requested.

I'll report back if I find a bug.

  • Like 2
  • 2 weeks later...
Posted

in processwire 2.4 any one seeing ":ignore:"  in their $page->body fields on "preview" (rendered page, when preview button is clicked) rather then seeing the body text?

  • 1 month later...
Posted

Jeez, so some reason I didn't see your notification. 

I just upgraded to PW 2.4.9 and preview 2.5.0 and still get the ignore issue.

CKEditor 1.1.8
 

Seems to be just on the  $page->body field, so maybe its a CKeditor issue?

post-1913-0-76863100-1406841492_thumb.pn

Posted

Could you try deactivating the CKEDitor (jst got to setup->fields->body and change the textarea type to simple "textarea"). 

It maybe an error between the new version of CKEditor and my module.

Posted

That sure enough fixed the problem. CKEditor inline mode is what breaks the preview feature. Regular CKeditor works great!

Posted

Didn't even know that there is an inline mode. Could you add this as an issue to GitHub? So I'll keep it in my to-do list rather then forgetting about that I read it here?

  • 1 month later...
Posted

Has this been fixed yet? I'm using inline editors all over the place for my new site, and I really don't want to convert them (unless someone can tell me how to stop the irritating border issue when the editor attains focus).

:)

  • 3 months later...
Posted

I'm experiencing the same issue @Soma was in relation to having to press Preview twice to see the changes. I've noticed this only doesn't work on a live server... on my localhost it works without any issues at all.

Hope this helps.

  • 1 month later...
Posted

I have a suggestion, may or may not affect the issue above, but was causing the preview to render the page twice:

in function init(), execute calls page->render(), then it is rendered again in the function changeView() with the preview data.

I found changing:

$this->addHook('ProcessPageView::execute', $this, 'changeView');

to:

$this->addHookBefore('ProcessPageView::ready', $this, 'changeView');

and removing:

// return the preview merged page
$event->return = $page->setOutputFormatting(true)->render();

Works for me to view unpublished pages, etc as I have enough access to view (i.e. I can already edit it in the admin).
 

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...