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

Pull header and footer from wordpress into ckan in an automated way #20

Open
fostermh opened this issue Oct 8, 2020 · 3 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@fostermh
Copy link
Member

fostermh commented Oct 8, 2020

Currently, the workflow for updating the CKAN header and footer is very manual. it involves scraping the WordPress site HTML and copying the relevant HTML into a CKAN template file. then adjusting CSS classes to match existing ones in CKAN. Inevitably there has been some small CSS change in WordPress that requires significant tweaking to the CKAN CSS to make it all look the same.

Solution:
find a way to pull menu changes and CSS from WordPress into CKAN. perhaps a shared CSS file that is used for both WordPress and CKAN sides of the header/footers? HTML would still need to be pulled across but this could also be a shared file. Would mean doing away with the mega-menu plugin in WordPress likely. That would work for pacific and Atlantic but may not work for OGSL

Alternatives:
???

Additional context:
???

@fostermh
Copy link
Member Author

On hold until wordpress site redesign/refactor is finished.

@fostermh fostermh added the on hold waiting for something else to happen label Apr 15, 2021
@fostermh
Copy link
Member Author

waiting for wordpress theme redesign to finish.

fostermh added a commit to cioos-siooc/ckanext-cioos_theme that referenced this issue Mar 21, 2022
this pr adds a command line command to pull the menu from a wordpress site that has implemented our api change into a file usable by ckan. It utilizes a template file so that individual RA's can customize there menu as needed.

to start the sync, run:
ckan --config=/etc/ckan/production.ini menu create url template output [echo=false]
@fostermh fostermh removed the on hold waiting for something else to happen label Mar 21, 2022
@fostermh
Copy link
Member Author

example site running new api endpoint: https://cioospacific.ca/wp-json/ra/menu/en

@fostermh fostermh added this to the v1.6.0 milestone Nov 3, 2023
@fostermh fostermh added the enhancement New feature or request label Nov 3, 2023
@fostermh fostermh removed this from the v1.6.0 milestone May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

3 participants