dee
Dear Peter, I hope you are doing fine.
We are facing the following challenge, hopefully you (your extensions) can help us with:
On a quite complex website, the customer has many team members (each as an article with custom fields), which are automatically rendered via category blogs and custom layout overrides. Some of those team members though, need to be shown as well separately on other parts/pages of the website, with less/different custom fields rendered and/or different layouts.
Usually I would achieve this by using a
custom module (for example with the ID 555), having code & styling inside of it, rendering this way a category with an example ID of 33, and only for the team members tagged "showextra", similar to this:
<div class="container-main">{articles category:id="33" tags="showextra"}
<div class="container-image">[image-intro]</div>
<div class="team_name">[team-name]</div>
<div class="team_title">[team-title]</div>
<div class="team_phone-extension">Tel. 089/ 55-[team-phone-extension]</div>
<div class="team_mail">E-Mail: [team-mail]@domain.tld</div>
{/articles}</div>
...and then telling the customer to use just
...inside the article where he wants those team members tagged "showextra" to appear - so he does not have to mess around with the initial custom module html & layout.
This works quite well, but since there is an enormous amount of team members shown inside different articles, we would need to create for the customer many custom modules with separate category IDs inside. And here comes the big question:
Is there maybe a solution where the category ID could be set dynamically inside the loadmoduleid snippet (or maybe with the help of ModulesAnywhere), something like this:
...where the "33" after the comma is the category ID to load (the first parameter [param#1] or similar), changing the first line of the custom module to something like this:
<div class="container-main">{articles category:id=[param#1] tags="showextra"}
Or maybe you have even a better idea how to achieve this?