Hi Bruno - thank you very much for your great help on understanding migx, a bit more every time. I used your code and it's working now. I am very sorry to ask so many questions about using migx for the stuff I want to do, but I find it very hard to find documentations or easy example tutorials to learn to use it more independently.
So I have one more question about it.
When I have the detail view for one Job - e.g. "Tellerwäscher" - I'd like to also have this in the header of the page - like "Jobs: Tellerwäscher" - "Sitename".
I was thinking of creating a
and in the "titel=" I put the "[*title]" from the migx item. But of course - the title doesn't show up, hence modx doesn't "reads" it.
Is it a good way of using something like "if this is migx item "MyJobs" do this" in the normal header? What would be the most useful way for this? Is it better to use one Template and use conditional stuff, or is it better to use different Templates?
I am using this code now in a DetailView Template:
<title>[[!getImageList?
&tvname=`MyJobs`
&docid=`4`
&tpl=`detailHeadTitle`
&where=`{"MIGX_id":"[[!getReqParam? &name=`migx_id`]]"}`
]] - [[++site_name]]</title>
where
ocnstist of "[[+title]]. This works now. Is it a good way or could it be better?
Sorry again for tons of questions and thank you very much again for your great help!
AD
[ed. note: ad2003 last edited this post 13 years, 3 months ago.]