Buy Now
Sign in

publish/unpublish-button

Fredolino , May 06 2019, 18:24
Fredolino 472
May 06 2019, 18:24 #386583
Hi,
I test the demo "Dynamic actions" in CC6. In the preview view, I see the column "Publish".
If I click on the publish / unpublish button, then no publish / unpublish button is visible.
I first have to refresh the page with the demo form in the browser. After that I will again see the publish / unpublish button.
What do I have to change on the form?
healyhatman 7
May 06 2019, 22:08 #386594
 Answer
There is a check_publish_result switch that uses {var:publish_article} in the data source. But because of changes to the data returned by save data actions, you should change it to
{var.empty:publish_article}
and change the values setup to
false:{fn:choose_article_publish_link}
true:Error!
Save data actions now return either a copy of the newly saved data, or nothing. So if it's empty, it hasn't saved.
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
Fredolino 472
May 07 2019, 09:18 #386610
Wow Super! Thank you very much! :-)