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
Related Pages Link not being published #177
Comments
Thanks for reporting @am071092. The problem is that BasePage declares a many many through relationship to RelatedPageLink, which is versioned, but doesn't define ownership permissions for it to be automatically published when the BasePage is published. I'll patch this in CWP, but as a workaround you can add this to your project code: # File: app/_config/cwp177workaround.yml
# Remove this file once updated to CWP 2.2.2
CWP\CWP\PageTypes\BasePage:
owns:
- RelatedPagesThrough |
PR at #178 |
@robbieaverill Thanks will try that! |
Wow, that's bad. I'll log a new issue for that. |
@robbieaverill cool thanks |
@robbieaverill Just had to republish to get it to work :) |
If I had a large set of related pages in a SS3 site that I upgrade to SS4, these |
@matt-in-a-hat for anything to do with data migration I would suggest writing BuildTasks that are designed specifically for your use case. |
I have created and published two pages :
Added Page B as a link to the Related pages section on Page A and republished.
The Related pages section doesn't appear on the page.
It only appears when view viewing the page as a logged in user.
Here are package versions being used:
"cwp/cwp-recipe-core": "2.2.1@stable",
"cwp/cwp-recipe-cms": "2.2.1@stable",
"silverstripe/recipe-blog": "1.1.3@stable",
"silverstripe/recipe-form-building": "1.2.1@stable",
"silverstripe/recipe-authoring-tools": "1.2.1@stable",
"silverstripe/recipe-collaboration": "1.2.1@stable",
"silverstripe/recipe-reporting-tools": "1.2.1@stable",
"cwp/cwp-recipe-search": "2.2.1@stable",
"silverstripe/recipe-services": "1.1.3@stable",
"silverstripe/subsites": "2.2.0@stable",
"tractorcow/silverstripe-fluent": "4.2.0@stable",
"silverstripe/registry": "2.1.0@stable",
"cwp/starter-theme": "2.0.3@stable",
"cwp/watea-theme": "^2.1"
The text was updated successfully, but these errors were encountered: