From: Frank Z. <fra...@no...> - 2010-07-21 09:48:09
|
Hi, i'd like to provide some grouping functionality in displaying the result of a query. My problem is, that I'd like to display multiple answers to defined set of questions. The problem arises because there is an additional context Property, that the answers are restricted to. I could run a query on answers and sort by question, like {{#ask:[[Category:Answer]][[hasContext::{{{1}}}]]|?RefersToQuestion|?Answertext|sort=RefersToQuestion|format=ol|template=MyAnswers}} but I would have to repeat a questiontext to every answer in the MyAnswers template. Next try was to run a query on the questions and call a template on the answers. This would work if I hadn't the additional requirement to pass context. I dont't know a way to pass the {{{1}}} Parameter to the template of the question query. Is there a way to get this to work somehow? Thanks in advance Frank Staatlich anerkannte private Fachhochschule NORDAKADEMIE Gemeinnützige Aktiengesellschaft Köllner Chaussee 11 25337 Elmshorn Vorstand: Prof. Dr. Georg Plate (Vorsitzender), Dipl.-Ing. Jörg Meier (stellv. Vorstand) Vorsitzender des Aufsichtsrats: Dr. h.c. Hans-Heinrich Bruns Sitz: Elmshorn, Amtsgericht Elmshorn, HRB 1682 |