WordPress.org

Ready to get started?Download WordPress

Forums

Content Aware Sidebars
[resolved] Previewing CAS with Draft content (5 posts)

  1. cyphog
    Member
    Posted 6 months ago #

    Hi,

    Is it possible to preview sidebars with posts/pages that are still drafts and not yet published?

    I have an unpublished post that I've created a custom sidebar for and I'd like to see what everything looks like put together before publishing, and I don't see any drafts listed in CAS under "Posts" to select.

    I realize I can create a post-specific tag (or something) else to trigger the sidebar in preview, but I'm wondering if there's something cleaner, more direct, than I can use.

    Thanks!

    http://wordpress.org/plugins/content-aware-sidebars/

  2. cyphog
    Member
    Posted 6 months ago #

    Also, anyway to have a sidebar display on all content types by default (in essence, replacing the primary sidebar) without having to check all static pages, posts, pages, etc., boxes? Would love to see a one-click covers all type button.

    Thanks again!

  3. Joachim Jensen (Intox Studio)
    Member
    Plugin Author

    Posted 6 months ago #

    This is a good use case I have not thought about. Currently it is not possible because you cannot select draft posts in the sidebar editor, but if you go to modules/post_type.php line 63 and change:

    'post_status' => 'publish,private,future',

    to

    'post_status' => 'publish,private,future,draft',

    it should be possible. If you try it out, let me know if it works and I will consider adding it in a future release.

    I could make some shortcut buttons, but it is definitely not a priority at the moment.

  4. cyphog
    Member
    Posted 6 months ago #

    If you go to modules/post_type.php line 63 and change...

    This worked! The draft shows up and the CAS appeared when previewed. Thanks!

    w/r/t:

    I could make some shortcut buttons, but it is definitely not a priority at the moment.

    Are you referring to my second post asked if there's an "all-on" choice for a sidebar instead of having to create numerous conditions?

  5. Joachim Jensen (Intox Studio)
    Member
    Plugin Author

    Posted 6 months ago #

    Yes. I try to make the plugin as compatible, modular and flexible as possible and at the same time suit all kinds of use cases, and currently, in my opinion, an "all-on" functionality does not fit into this "philosophy". It might change in the future and I have noted the suggestion.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.