[SOLVED] Show List- and Detail-Template on same page but in different blocks

Permalink Browser Info Environment
I can't get the to work.

I would like to show the list template as a navigation like menu to show the detail of the associated record but this in a different block on the same page.

Sample:
List of teachers in block A and
detailed data of the clicked teacher item in block B of the same page.

Type: Discussion
Status: New
habinho
View Replies:
jgarcia replied on at Permalink Reply
jgarcia
Let me look into this and I'll get back to you today.
habinho replied on at Permalink Reply
habinho
Thx.
You could see my (not) working sample hier:
http://www.atelierdeladanse.de/meta-left/atelier/leitung/...

There are coming more teachers and I would like to make the list like a navigation in the top section and the detail view at the bottom section.


After playing around with the code I guess, without some changes in the basic architecture of the package, it's not possible.

Perhaps it would make sense, to separate the list and the detail part in the generated code. In the config dialog you should then be able to check whether the list and the detail view should be visible or only one.
habinho replied on at Permalink Reply
habinho
I've done the following:
- in view.php of the block "sixeightdatadisplay" I removed the if-then check whether it is in list or in detail mode and then remove the output for detail-mode

- in controller.php of the block "sixeightdatadisplay" ,around line 138, after the
if($displayList == 1) { .. }
I put the line
$answerSets = $f->getAnswerSets($this->approvedOnly,$this->defaultFilterField,$this->defaultFilterValue,$this->searchableFields,$q,$sortBy,$sortOrder,$pageNum,$this->itemsPerPage,$this->showExpiredRecords,$this->showOwnedRecords);


in this case the list view is complete, even in detail-mode

- in controller.php of the block "sixeightdatadisplaydetail" in function view I put a fallback for an empty $parameter. In this case I take the record id given in the URL

so now I can put on the same page the list template in one block and the detail template in another block and the list template gives every time the hole record list

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.