HubDB - Listing rows on a dynamic page (Child Table)
SOLVE
Hi,
apologises if this is a dumb question, but I'm very tired and have been working on a new FAQ section all day, and I think I'm burnt out.
Set up:
I have a Parent HudDB, that connects to Child DB's. My FAQ section has 3 dynamic pages:
Page 1 - Main Page that lists different categories (Parent DB)
Page 2 - A page that lists the Frequently asked Questions (Child DB)
Page 3 - A page that has the Answer to the Questions. (Child DB)
Problem:
What I want to achieve is on Page 3, the Answers page. I want the page to include a list of Questions from the Child DB. I can get this list working on Page 2 using the following code, but for some reason, this code doesn't want to work on Page 3. Any advice on how to do this?
HubDB - Listing rows on a dynamic page (Child Table)
SOLVE
On page 2, it's
{% set rows = hubdb_table_rows(dynamic_page_hubdb_row.hs_child_table_id) %}
And that works, and I'm using the same code on Page 3, as it is, and it no longer works. I assume because when I'm on page 3, it can only check what's in a single row, rather than the entire DB?
The child database has 2 columns:
Question
Answer
Page 3 I have displaying a single Question, with the corresponding answer. What I also need is a list of the other Questions in that child database.
HubDB - Listing rows on a dynamic page (Child Table)
SOLVE
Hello,
I rather think that he loses his reference to "page2" iwo do you pass parameters in the url? would it be easier to work with url parameters so that you are permanently saved and can also share the links?