Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Articles are not imported properly #28

Open
obuisard opened this issue Dec 1, 2024 · 0 comments
Open

Articles are not imported properly #28

obuisard opened this issue Dec 1, 2024 · 0 comments

Comments

@obuisard
Copy link
Contributor

obuisard commented Dec 1, 2024

The workflow tables must be filled up or else articles won't show.

From conversation on Mattermost:

image

Information needs to be added to the asset table as well.

Use the Content model to properly insert data into those tables.

$factory = Factory::getApplication()->bootComponent('com_content')->getMVCFactory();
$content_model = $factory->createModel('Article', 'Administrator', ['ignore_request' => true]);

And save through the model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant