Tagged: , ,

Viewing 8 reply threads
  • Author
    Posts
    • #2901

      Hi guys!

      I have a question. Is it possible to hide an tab of an WorkFlow if the post is new (ie the post status is ‘auto-draft’ or ‘draft’)?

      Something like the ‘New’ option for metaboxes.

      Best Regards!

    • #2912
      Steve
      Keymaster

      @Darlan ten Caten– Not yet… I think we can put something together for you in the next day.

    • #2913

      @Steve it will be awesome!

      The inputs on second tab depend in values inserted on the first tab when the new custom post is created. So the user should see the second tab only if the post status is not ‘draft’.

      At the moment I’m hiding all the metaboxes of the second tab by post status but will be a lot better if I can just hide the entire tab.

    • #2926
      Steve
      Keymaster

      @Darlan ten Caten– We decided that New didn’t really work for Workflow tabs since Workflows can actually be anywhere in WordPress. Instead we extended the Page attribute to work for individual tabs.

      To only show a tab once the post is created, use:
      Page: post.php

      Documentation has been updated to reflect this new feature >

      You will need to upgrade to Piklist v0.9.4.21 to enable this.

    • #2946

      @Steve that way don’t work very well because if the post status is ‘auto-draft’ the tab will show.

      Make this test: Create a Workflow with two Tabs. The second one should be visible only on Page: post.php.

      Now add a new post and click on the first tab (the only one visible). The page will reload and now the post status is ‘auto-draft’ and the second tab is visible!

    • #2947

      @Steve the 0.9.4.21 version isn’t handling well the tabs.

      In fact I’m finding several problems in Workflows with the last version.

    • #2952
      Steve
      Keymaster

      This should be fixed in v0.9.4.22. Let me know if you still have issues.

    • #2977

      @Steve the problems continue on the last version.

      The “Big problem”: When I set the ‘Page’ paremeter on my tabs and then I click to edit a post the second tab is open by default. That’s ugly.

      If I remove the ‘Page’ paremeter everything works fine. Like it:

      First Tab:

      <?php
      /*
      Title: Principal
      Order: 10
      Flow: Fluxo Ordem de Servico
      Default: true
      */

      Second Tab:

      <?php
      /*
      Title: Adicionais
      Order: 20
      Flow: Fluxo Ordem de Servico
      */
    • #2988

      Tried now with v0.9.4.23 and the problem continues.

Viewing 8 reply threads
  • You must be logged in to reply to this topic.