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

Auto page creation #121

Open
ondics opened this issue Jan 13, 2023 · 0 comments
Open

Auto page creation #121

ondics opened this issue Jan 13, 2023 · 0 comments

Comments

@ondics
Copy link

ondics commented Jan 13, 2023

I need to create two pages: about and privacy policy.

In my case, they change from time to time and there are multiple ckan instances with the identical content on these two pages,

I need to automate the creation and update of these two pages. Unfortunately ckanext-pages has no API yet to create or update page content.

When looking at the database table ckanext_pages it would be easy to directly INSERT an new page using psql and SQL INSERT/UPDATE statements. .

However there is the id attribute which is required in the database table ckanext_pages.

How to get such an id? Is it possible to get an idusing the CKAN-api?

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