cul-2016 / site

The Quodl website - where the latest information on Quodl, the science behind it and sign up links can be found.
http://quodl-site.herokuapp.com/
MIT License
5 stars 0 forks source link

Bug: blog current page link causing recursion error #13

Closed Cleop closed 6 years ago

Cleop commented 6 years ago

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

We have set up this functionality on the CMS (including the colour change on the selected page) in the page-link-widgets folder and in index.html in apostrophe-blog-pages. However since doing so we have been getting these warnings: image

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

Cleop commented 6 years ago

Came across this: image Here: http://apostrophecms.org/docs/tutorials/getting-started/reusable-content-with-pieces.html

Cleop commented 6 years ago

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.