WordPress.org

Ready to get started?Download WordPress

Forums

Smart WYSIWYG Blocks Of Content
Preview of Smart Block? (4 posts)

  1. joo-joo
    Member
    Posted 3 years ago #

    Hello Coen,
    that's beautiful plugin! Really smart block of code!
    :-)

    Everything works nice, nevertheless I have the minor question: "View Smart Block" preview button - the result is (in my case) "Page not found" message (the same for the "Preview" in "Publish" section of page edit area).

    With best regards, Joo

    http://wordpress.org/extend/plugins/smart-wysiwyg-blocks-of-content/

  2. Coen Jacobs
    Member
    Plugin Author

    Posted 3 years ago #

    That's correct and supposed to happen. I'm looking into a way to disable that button.

    Reason to this is that a Smart Block is not a standalone object. It can not be used outside a widget, or a containing post or page. That way, it can not be indexed by Google, or be visited by site visitors.

    Perhaps there should be a way to 'preview' the contents of a Smart Block, some way... Thanks for the idea!

  3. joo-joo
    Member
    Posted 3 years ago #

    Hello Coen,
    you are absolutely right. For me this is not any problem, it was just notice for perfectionists.

    It seems the buttons have IDs "view-post-btn" and "post-preview". I think the CSS solution "display:none;" is quite sufficient for this purpose. It would be necessary to enque the script only for "edit.php?post_type=smartblock" location, probably via some $_GET string test?

    Thanks for this plugin.
    Joo

  4. Coen Jacobs
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the idea, but I believe this should be done in a more compatible way. Hiding the button with CSS is a bit dirty. When Custom Post Types aren't standalone viewable (it's a parameter in the Custom Post Type declaration), the button shouldn't be shown, I think.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic