Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Publisher not updating publisher_lib->status when changed
Status | Resolved |
Add-on / Version | |
Severity | Blocker |
EE Version |
iain urquhart
Oct 20, 2012Hi Brian, filing under Blueprints as I don’t see Publisher listed here.
I’m trying to update my Module Tab to publisher and it looks like the publish_data_db method in Tab files are not picking up the correct publisher_lib->status.
You can reproduce if you download for example the SEO Lite module, and then simply publish a draft entry in Publisher.
After you publish, add the following into the publish_data_db method in tab.seo_lite.php
if (isset($this->EE->publisher_lib)) {
echo "lang_id: " . $this->EE->publisher_lib->lang_id;
echo " | status: " . $this->EE->publisher_lib->status;
exit();
}
Then edit the entry, and change the Publisher ‘save as’ to ‘published’, on save you’ll see “lang_id: 1 | status: draft”
Likewise if the entry is Published and I change to draft, on save you’ll get “lang_id: 1 | status: open”
Let me know if you need any more info.
** Update **
I see that I can access view_status and save_status from within publish_data_db, so I should be able to get round this, but I’m not sure how I’m going to access the lang ID, which is going to be needed down the road.
Iain
BoldMinded (Brian)
Oct 21, 2012
Interesting. Not sure why those values would be different in a tab file. The language id is post[site_language], so you should be able to reference that.
BoldMinded (Brian)
Oct 21, 2012
Sent a code update, the next version of Publisher will have a fix, and sent a diff to Bjorn so hopefully he updates SEO Lite with official support.