Some problems understanding the syntax to access two trackers at the same time
This is not a bug report, merely, I did not quite grasp the concepts that CART utilizes to access trackers.
I want to establish -besides CART that successfully contains a small product shop- something to contain a database of magazines. It shall show magazine covers, and some table of contents. To reach that goal I copied the concept of CART.
I established two new trackers. One to contain every issue of the magazine, and a second to contain a table of content like listing of articles of all magazines. The two are interconnected via a text field containing the edition number (in the articles tracker defined as an element link) pointing to the text in the first tracker.
The data structure (that currently contains some demo elements) works well in looking at the tracker with list_trackers & view_tracker. Also, the first level (which is very close to what CART does on the product tracker) works well, too:
code extracted #1
What I cannot get to run is that clicking on an edition shall open that edition. This itself works, just like in CART, but I want that listing to contain the data from tracker #4 where the edition field contains the id of the selected edition. I did not quite get the concept how to access that.
This code partially works:
code extracted #2
Partially meaning: Cover & Edition & Year come correctly from tracker #3. From tracker #4 ONE result of column/title/subtitle gets selected. And I get way to many pages (one per record in tracker 4...). Currently, with my test data, there are 2 elements in magazine and 59 in articles (describing 59 articles in the 2 magazines).
What I would like to accomplish is to list every article from tracker #4, from the magazine selected.
Thanks
hman