Forum Discussion
<#-- a freemarker comment -->
-Doug
- luk10 years agoBoss
DougS: Could you check if @override also works for non-contract components? Had the "post-list" (found on RecentPostsPage quilt) throw an error when trying to use @override, e.g. post-list@override didn't work...
Additionally it seems that the character limit of the "new component" modal window input (for the component name) is too low to even override all default components (which should be possible IMHO), e.g. it's not possible to override for example the "recommendations.widget.recommended-content-taplet" with a component named "recommendations.widget.recommended-content-taplet@override" because that exceeds the character limit of 50 chars...I think it would be good if that limit is set to the longest name of any default (contract or non-contract) component + 9 chars (for @override).
- luk10 years agoBoss
If you need the original custom component to show somewhere (but not everywhere else) you could also add a FreeMarker if statement that checks for the page you're currently on and then decide to display or not display the component based on that. The "page" context object should give you what you need for that (essentially the page name like "CommunityPage").
Related Content
- 2 years ago
- 2 years ago
- 12 months ago
- 12 months ago