Express Details Block

Permalink
I'm playing around creating a small directory that lists organisations and then the people linked to each organisation. It's easy to setup on the Dashboard.

So far I have a Page (Organisation), and on that page the Express Listing, so that you can search and then click to go through a another page (Organisation Details), which has the Express Details block that lists all of the details of the organisation. Simple.

What I really want to now happen is on the Organisation Details page that the people are 'clickable' so that you are taken to another page (People Details), or Modal which will show you the details of that person. In affect it's like having another Express List on the Organisation Details page but that reflects the people based upon the Church Details being displayed above.

Has anyone done something similar to this and have any suggestions?

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi justynpride,

Using a different example, are you looking for something like this?

Teams page > Teams list > Players list > Player details
On the Teams page is a list of teams. Each team is a link to a list of the team players. Each player is a link to the player details.
justynpride replied on at Permalink Reply
That's a much better description of what I was thinking about.,
MrKDilkington replied on at Permalink Best Answer Reply 1 Attachment
MrKDilkington
@justynpride

I came up with a quick example of Teams > Team > Player using Express. There is an attached ZIP file with screenshots and custom templates to recreate it. I am sure there is a better way to do this, but this does appear to work.

Express Objects:

Team
- Team Name (text)
- Team Logo (image/file)
Team > Player association

Player
- First Name (text)
- Last Name (text)
- Position (text)
- Photo (image/file)
Player > Team association

Pages:
Teams > Team > Player
- Team would have the Exclude Sub-Pages From Nav attribute set
- Team and Player would have the Exclude From sitemap.xml and Exclude From Page List attributes set

Teams
- Express Entry List block with Teams block custom template
application\blocks\express_entry_list\templates\teams.php

Team
- Express Entry Detail block
- Team block custom template
application\blocks\express_entry_detail\templates\team.php
- block settings
Entry > Get entry from list block on another page
Entity > Team

Player
- Express Entry Detail block
- Player block custom template
application\blocks\express_entry_detail\templates\player.php
- block settings
Entry > Get entry from list block on another page
Entity > Player
justynpride replied on at Permalink Reply
That is absolutely amazing! It's just want I was after, and provides a huge base from which to move on from.

Thank you! It's these kind of resources that are massively helpful for the non developers like myself.
smeranda replied on at Permalink Reply
smeranda
@MrKDilkington

Thanks for sharing this, it's nearly exactly what we're trying to do as well.

I'd like to be able to programmatically create the player page upon creation of the player entry. Your player page has the Express Entry Detail block with the Player custom template. How can I automatically generate a page, in the site map, that by default has this block and template?

Does that make sense?