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

Import Content #40

Closed
andreituicu opened this issue Oct 20, 2023 · 2 comments · May be fixed by #55
Closed

Import Content #40

andreituicu opened this issue Oct 20, 2023 · 2 comments · May be fixed by #55
Assignees
Labels

Comments

@andreituicu
Copy link
Collaborator

We need to write import scripts for:

  • Blog Articles
  • Blog Topics
  • Blog Categories
  • Blog Year
  • Blog Author

and once we have the final structure of the site confirmed with the relationship of between geosites, run them to have everything in sharepoint ready for go live.

We probably don't really need an import script for the home pages and might be able to just do those manually, if it is too much effort.

@sergiucoman sergiucoman self-assigned this Oct 26, 2023
@sergiucoman sergiucoman mentioned this issue Oct 26, 2023
@andreituicu
Copy link
Collaborator Author

I found that the .json rendering for the blog pages is still enabled, which means we can get structured metadata directly from the pages, without having to go through DOM.
In particular, this is useful for tags (category, topic, trend) which we can use to clearly map previous identifiers to new ones.

E.g. https://www.servicenow.com/blogs/2017/servicenow-built-application-increases-approval-speed-legal-agreements-10x.1.json

has:

cq:tags:- [
"sn-blog-docs:topic/business-impact",
"sn-blog-docs:trend/business-impact",
"sn-blog-docs:category/about-servicenow",
"sn-blog-docs:author/chris-bedi",
"sn-blog-docs:year/2017",
"sn-blog-docs:new-trend/now-on-now"
]

We can use something like https://main--servicenow--hlxsites.hlx.live/blogs/tags.json to map the legacy identifiers to new ones in the import script.

@andreituicu
Copy link
Collaborator Author

Initial content import done. Only thing remaining is to do a diff import prior to go live.

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

Successfully merging a pull request may close this issue.

2 participants