DataSrc:DemoJan25/StrapiPublic-Disseminations: Difference between revisions
(Created page with "== Strapi Events Display == <!-- 1) Fetch the data with #get_web_data --> {{#get_web_data: |url = https://unitapedia.univ-unita.eu/strapi/api/events?populate=events,SupplementaryInfo |format = json |data = EventID = id, CreatedAt = createdAt, UpdatedAt = updatedAt, PublishedAt = publishedAt, EventType = Type, Participants = Participants, Certificate = Certificate, Category = Category, EventDa...") |
No edit summary |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#get_web_data: | {{#get_web_data: | ||
|url = https://unitapedia.univ-unita.eu/strapi/api/ | |url = https://unitapedia.univ-unita.eu/strapi/api/public-disseminations?populate=*,Dissemination.social-media | ||
|format = json | |format = json | ||
|data = | |data = | ||
DisseminationID = id, | |||
EntryDate = EntryDate, | |||
Platform = platform, | |||
Views = views, | |||
GainedFollowers = gained_followers, | |||
Followers = followers, | |||
Activities = activities | |||
|debug = 1 | |debug = 1 | ||
}} | }} | ||
<!-- | <!-- Store each dissemination as a subobject --> | ||
{{# | {{#store_external_table: StrapiPublicDissemination | ||
= | |DisseminationID = {{{DisseminationID}}} | ||
|EntryDate = {{{EntryDate}}} | |||
|Platform = {{{Platform}}} | |||
|Views = {{{Views}}} | |||
|GainedFollowers = {{{GainedFollowers}}} | |||
|Followers = {{{Followers}}} | |||
|Activities = {{{Activities}}} | |||
}} | |||
<!-- Query and display all dissemination records in a table --> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] | |||
|?DisseminationID | |||
| | |?EntryDate | ||
|?Platform | |||
|?Views | |||
|?GainedFollowers | |||
|?Followers | |||
|?Activities | |||
|format=table | |||
|class=datatable | |||
|format=datatables | |||
|mainlabel=- | |||
|header=show | |||
}} | }} |
Latest revision as of 13:53, 28 January 2025