I'm running into a problem on a project that I assumed would work with Liquid Content Items and Visualizers. Basically, trying to create a blog that shows 1) a list of post summaries, 2) the full length posts, 3) author pages with links to their posts.
I have two content types:
- Blog Post
- Author, which is a reference object of Blog Post
I have a two pages:
- mysite.com/blog
- mysite.com/authors
The /blog/ page has a List/Detail Visualizer that shows the Title and Author from Blog Post content type.
- The Title is linked via the {{contentDetailsUrl}} tag to the full-length blog post at a URL like mysite.com/blog/blog-post-title.
- The Author is linked via {{author.contentSlug}} to a URL like mysite.com/authors/author-name.
What I'd like to do now, that I can't figure out how to do, is display a List on the /author/author-name page that includes Blog Posts where the reference object matches this author. (aka Blog posts by this author).
A major problem that I'm running into is that when I'm on /author/author-name, the {{currentPageUrl}} does not match. It only says /author/. Same goes for content at /blog/blog-post-title. {{currentPageUrl}} only shows /blog/.
Am I doing this wrong or expecting more from Liquid than I should? Any advice would be appreciated. Thanks.