Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Richard Hainsworth Member

@finanalyst · Joined 9 years ago · 96 posts · 30 topics · 9 reputation

Badges

✏️ First Post 💬 Conversation Starter

Recent posts

  • Display content side by side and keep current page on one side when other clicked · 8 years ago

    Responding to @pamtbaau's mail. I've just published the content-edit plugin. I had to transfer md and final html using AJAX to another element in the same page. Not quite sure what you're looking for,

  • Get html in plugin · 8 years ago

    OK. Got it working. Generate a redirect in response to an AJAX request, then feed that into an <iframe> with success: { $('#iframe-container').attr('srcdoc', response); } This does not cause

  • Get html in plugin · 8 years ago

    That's more-or-less what happens with another grav-plugin called editable-simplemde. I'm trying to avoid that because of the problems with editing a modular page. Currently, I'm trying (a) to cut of

  • Get html in plugin · 8 years ago

    NOT Solved! :(( The redirect sends the whole site with the new page, and exits. Thus the line after the redirect is not executed. Since this code is generated by an AJAX call, the whole site gets put

  • Get html in plugin · 8 years ago

    @pamtbaau Thank you for your help!! I think I have solved the problem. Not quite the same as you have done (basically because I too don't understand how the final html should be ready so early). Also

  • Get html in plugin · 8 years ago

    I tried dumping $this->grav inside the plugin 'onPageInitialised', but ..grav['output'] is null.

  • Get html in plugin · 8 years ago

    Very interesting. Thanks for the tip. But like you said, there should not be any output in onPageInitialized. I wonder if this is the cached output.

  • Get html in plugin · 8 years ago

    @Perlkonig, I was looking at the GRAV hooks and found onOutputGenerated. It mentions that the output is now html. So how do I gain access to this string? I have just submitted a new plugin content-ed

  • Get html in plugin · 8 years ago

    How can I get the HTML for a route? I am working on frontend editing plugin and want to preview a page (route) (or modular root route) in a <div>. The quickest way is to set the src of an <if

  • Bin/plugin: No such file or directory · 8 years ago

    I had something like the same problem when I first started with GRAV. My problems were related to permissions. I am assuming you know a bit about linux, groups and permissions. If you are new to a Lin