Hello,
But I have an additional question: in the import file there are not only new items, but also items have been deleted in the external source. I would like new and existing items to be published and deleted items to be trashed. The only way I could figure this out is bij adding an import field State and setting the default to 1. Then having the settings of my template set to Unpublish before import = Yes. Is that the only way to do this?
By setting Unpublish before import to yes, all the articles in database are set to unpublished before running the import and with import and state field set to 1, the records which are imported are set to published. Other articles stays unpublished. If you want articles to be trashed then you need to set
state field value to -2 in import.
It seems that newly imported articles are always set to unpublished. Is that correct?
Thats correct. If you do not have
state field in import file set to 1 then it is content database table configuration which sets state field as 0 by default which makes articles to stay unpublished.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the
Joomla! Extension Directory