I am trying to display additional information in the Related Resources section of a report. More specifically: if the related resource type has a node 'thumbnail_image', I want to display this.
But how do I get this information? I already found that the information is gathered in the frontend over here: https://github.com/archesproject/arches/blob/a6100830bc6628b365aa1bee9a26723828bf3099/arches/app/media/js/models/report.js#L123-L132 Now I need to find out where in the backend this information is coming from. I am currently looking in views/resources.py and models/resources.py. I figured the data is queried in resource.get_related_resources() in models/resources.py, and that the desired properties are appended in views/resources.py here: https://github.com/archesproject/arches/blob/a6100830bc6628b365aa1bee9a26723828bf3099/arches/app/views/resource.py#L542-L543 It seems my question is twofold: - Do I need to specify specific graph nodes in resource.get_related_resources() in order to send them to the frontend? - and if so, how? Also: how do find the name of the specific node I'm after? Thanks! Vincent -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
