- This topic has 8 replies, 2 voices, and was last updated 7 years, 2 months ago by
Darlan ten Caten.
-
AuthorPosts
-
-
December 2, 2014 at 1:46 am #2901
Darlan ten CatenMemberHi 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!
-
December 2, 2014 at 4:16 pm #2912
SteveKeymaster@Darlan ten Caten– Not yet… I think we can put something together for you in the next day.
-
December 2, 2014 at 4:28 pm #2913
Darlan ten CatenMember@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.
-
December 3, 2014 at 12:00 pm #2926
SteveKeymaster@Darlan ten Caten– We decided that
Newdidn’t really work for Workflow tabs since Workflows can actually be anywhere in WordPress. Instead we extended thePageattribute to work for individual tabs.To only show a tab once the post is created, use:
Page: post.phpDocumentation has been updated to reflect this new feature >
You will need to upgrade to Piklist v0.9.4.21 to enable this.
-
December 4, 2014 at 12:07 am #2946
Darlan ten CatenMember@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!
-
December 4, 2014 at 12:12 am #2947
Darlan ten CatenMember@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.
-
December 4, 2014 at 2:08 pm #2952
SteveKeymasterThis should be fixed in v0.9.4.22. Let me know if you still have issues.
-
December 5, 2014 at 2:14 pm #2977
Darlan ten CatenMember@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 */ -
December 6, 2014 at 10:57 am #2988
Darlan ten CatenMemberTried now with v0.9.4.23 and the problem continues.
-
-
AuthorPosts
- You must be logged in to reply to this topic.