before you begin with this steps, you should comment that line, of course!
Then do this steps agein (don't forget to save the record, before trying to add new records to the media-table)
And please copy/paste the responded SELECT................ here (not an image)
I need the generated mysql - statement of the media-grid, not the one of the mediaList - grid.
This means, you should uncomment that line not before trying to load the media-grid.
in the firebug-console, the tab 'all' - click the + - symbol at the post-response.
SELECT `media`.`id`, `media`.`title`, `media`.`description`, `media`.`file`, `media`.`medialist_id`, `media`.`pos`, `media`.`published`, `media`.`createdby`, `media`.`createdon`, `media`.`editedby`, `media`.`editedon`, `media`.`deleted`, `media`.`deletedon`, `media`.`deletedby`, `media`.`publishedon`, `media`.`publishedby`, `` FROM `modx_migx_media` AS `media` WHERE ( `MedialistItem`.`id` = 3 AND `media`.`deleted` = 0 ) ORDER BY id ASC LIMIT 10 {"total":"0","results":[]}
Thank you for your patience.
ok, seems this isn't generated correctly. Can I see your xpdo-schema?
I think the issue is, you have both classes in different packages.
MIGX, by default loads only one package in its getlist-processor and xpdo(modx) doesn't know anything about the other package at this moment.
While its possible to load the other package additionaly, its not necessary, when your classes, which belong to this project, are all in the same package and defined in the same xpdo-schema.
that said, you should put both definitions into one xpdo-schema.
How should I call the media files from the "mediaListRowTpl"?
I tried this, but nothing happens:
[[!migx? &configs=`mediaFile` &sortConfig=`[{"sortby":"pos","sortdir":"ASC"}]` &where=`{"published":"1"}`]]
That should just output an array (without the tpl-parameter), but it doesn't...
[ed. note: Eminos last edited this post 12 years, 4 months ago.]