Closed Cleop closed 6 years ago
Came across this:
Here: http://apostrophecms.org/docs/tutorials/getting-started/reusable-content-with-pieces.html
Error no longer occurring as we've not implemented this piece of functionality for now. The links are hard coded with no highlighting.
However a proposed solution would be to use js and not apostrophe for this.
On the main blog page we are supposed to have 3 links/buttons that take you to either a whole view or 2 filtered views of the blog content by tag:![image](https://user-images.githubusercontent.com/16775804/35290137-326423dc-0061-11e8-96e8-6dd07acb0941.png)
We have set up this functionality on the CMS (including the colour change on the selected page) in the![image](https://user-images.githubusercontent.com/16775804/35290123-283fe436-0061-11e8-8dde-cf2981c27fe0.png)
page-link-widgets
folder and inindex.html
inapostrophe-blog-pages
. However since doing so we have been getting these warnings:The errors only occur on pages that link to the News or filtered tag pages. It works fine on the main navbar that links to news but we're calling it in a different way not using the home's child. Also, strangely, the number of the warning error messages seems to vary considerably for no obvious reason.
Tried resetting the db in case the way we have been manipulating the templates has caused this error. Did not resolve the issue.
In theory we could hard code the links but we would not achieve the highlighting for the selected page unless we were to use js.
Alternatives: hard code the links but without the highlighting on the selected link