ckan / ckanext-pages

A simple builtin CMS for CKAN sites
GNU General Public License v3.0
51 stars 99 forks source link

Auto page creation #121

Open ondics opened 1 year ago

ondics commented 1 year ago

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?