apostrophe
apostrophe copied to clipboard
Widgets in area not updated when you change the page type
To Reproduce
Step by step instructions to reproduce the behavior:
- Create a new page
- Click in add content to the main area
- It shows the available widgets (rich text, image, video)
- Change from default type to home type
- Click in add content on the main area, it shows the same widgets
- See error
Expected behavior
When you change to the home type it should only show the rich text widget in the main area
Describe the bug
The widgets available in an area are not updated when you change the page type
Details
Version of Node.js: v16.16
Server Operating System: Ubuntu 20
Video reproducing issue
https://user-images.githubusercontent.com/26570009/219337895-46e876a6-edf5-49d8-b85e-59f6e00831d9.mp4
Code https://github.com/ecb34/A3-area-bug
The project is the same as the boilerplate repository, only removing the image and video widget options for the home page main area
Hi @ecb34, EDITED: Missed your comment below the video.
~~What widgets do you have added to each page-type? What is the expected behavior? For the boilerplate project, both page types have the same three widgets. If you haven't altered those pages then what you are seeing is the expected behavior.~~ Cheers, Bob
Hi @ecb34, I can reproduce the problem. Thanks for bringing this to our attention. I'm opening a ticket now. Cheers, Bob
https://user-images.githubusercontent.com/91718608/226241781-cc8b77de-69cf-4679-8f02-bb1bc9e3cd5c.mp4
how old your issue is, as ui has changed a lot from what you are trying to say
Hi @abhijain2003 - What version of Apostrophe are you using?
it is the latest one,
Hi @ecb34 & @abhijain2003,
Can you check this problem again. I was playing around this morning and found that it only reproduces if the area I'm checking between the two pages has the same name. So in the boilerplate, for example, the top area is named main
for both the home and default pages. If I rename one of them the problem goes away.
Thanks,
Bob
Hi @BoDonkey Yes, it only happens if the area has the same name in two different pages