Jump to content

Custom message on a module (Hooks)


Christian
 Share

Recommended Posts

I'm currently on creating a module. What I want is, on a certain user, their publish post must be accepted by some author before going to live. In order to do this, I will put save the revised content on child page of that page then redirect them to parent. I want to put a message like "Revision saved. Waiting for publisher confirmation.". My question is, how can I show custom message on ProcessWire. Is it via session (PW wiil detect certain session then displayed)?

  • Like 2
Link to comment
Share on other sites

Sounds like a great module - it has been talked about here a few times:

https://processwire.com/talk/topic/2700-new-pw-project-notification-and-approving-page-changes/

I think what you are looking for is:

$this->message("Revision saved. Waiting for publisher confirmation.");

There is also ->error and maybe ->warning (not sure on this last one)

  • Like 1
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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