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

Blog category updates aren't reflected in Wagtail component #3822

Closed
kristinashu opened this issue Oct 29, 2019 · 7 comments · Fixed by #3849
Closed

Blog category updates aren't reflected in Wagtail component #3822

kristinashu opened this issue Oct 29, 2019 · 7 comments · Fixed by #3849
Assignees

Comments

@kristinashu
Copy link

Changes when adding or editing a blog category do not get updated in the Wagtail component list of categories:

image

Can Wagtail component list automatically update or should adding/editing a category not be possible in the CMS?

cc @Pomax @youriwims

@youriwims
Copy link
Contributor

Sorry, I don't think I understand. @kristinashu can you give more details, pls?...or an example of what you're trying to do here so I can better understand?

@kristinashu
Copy link
Author

I don't seem to have permissions anymore but I used to be able to add a new blog category in Wagtail. This worked well and would create a new page. For example if I wanted to add a Category Internet Health Report then it would create a blog landing page at https://foundation.mozilla.org/blog/category/internet-health-report. The issue is that if I then want to use the Recent Blog Entries component, I don't see Internet Health Report as an option to filter by.

Can we either?

  • give be back permission to add a new Category and update the Recent Blog Entries component so new categories show up as a filter option or,
  • decided that new categories need to be added manually in which case I am requesting we update Internet Health to Internet Health Report for both the blog landing page and the Recent Blog Entries component

Does that make sense?

@youriwims
Copy link
Contributor

Ah, yes that makes complete sense. As far as I know, the categories are hard coded. So, for now, I could update Internet Health to Internet Health Report, but if you were previously able to add new categories before, seems like that would probably be a better long-term solution.

Where in the cms were you able to add new categories previously?

@kristinashu
Copy link
Author

kristinashu commented Nov 4, 2019

Oh nvm, I can still update the categories (it's hidden in Snippets):
image

So would it be possible for the Recent Blog Entries component to reflect changes made to the categories?

@youriwims
Copy link
Contributor

I think it may be possible, but let me double check with Pomax on implementation first.

@Pomax what would be the best way to pull dynamic data from the BlogPageCategory model to populate the RecentBlogEntries(RBE) streamfield dropdown? Currently, the categories in RBE are hardcoded; however, it looks like there's a way to do this (...If we haven't done this elsewhere yet) 👉 see link.

@youriwims
Copy link
Contributor

youriwims commented Nov 5, 2019

@kristinashu, it looks like we're going to have to do the automatic updates as a follow-up [#3851]. For now, I can go ahead and update Internet Health to Internet Health Report manually. A few questions though:

  1. Are there any other categories that you want to either add or update right now?
  2. If not, is renaming Internet Health to Internet Health Report the only deliverable of this ticket?

decided that new categories need to be added manually in which case I am requesting we update Internet Health to Internet Health Report for both the blog landing page and the Recent Blog Entries component

  1. Do you mean updating Internet Health to Internet Health Report as the category on the blog cards on the blog landing page?...just want to clarify since that's the only place that I see it.
  2. Should these instances be updated to internet-health-report and Internet Health Report Blog as well?
    Screen Shot 2019-11-05 at 2 04 11 PM

@kristinashu
Copy link
Author

Are there any other categories that you want to either add or update right now?

Nothing else right now.

If not, is renaming Internet Health to Internet Health Report the only deliverable of this ticket?

Yes.

decided that new categories need to be added manually in which case I am requesting we update Internet Health to Internet Health Report for both the blog landing page and the Recent Blog Entries component
Do you mean updating Internet Health to Internet Health Report as the category on the blog cards on the blog landing page?...just want to clarify since that's the only place that I see it.

Yes and, just to make sure, updating it in the Recent Posts component. Example https://foundation.mozilla.org/en/internet-health-report/blog/

Should these instances be updated to internet-health-report and Internet Health Report Blog as well?

Yes please!

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

Successfully merging a pull request may close this issue.

2 participants