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 |
||
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 | ||
|headers = Authorization: Bearer STRAPI_TOKEN | |||
|data = | |data = | ||
DisseminationID = data.*.id, | |||
CreatedAt | CreatedAt = data.*.createdAt, | ||
UpdatedAt | UpdatedAt = data.*.updatedAt, | ||
PublishedAt | PublishedAt = data.*.publishedAt, | ||
SocialMediaID = data.*.attributes.Dissemination.*.id, | |||
Platform = data.*.attributes.Dissemination.*.platform, | |||
Views = data.*.attributes.Dissemination.*.views, | |||
GainedFollowers = data.*.attributes.Dissemination.*.gained_followers, | |||
Followers = data.*.attributes.Dissemination.*.followers, | |||
Activities = data.*.attributes.Dissemination.*.activities | |||
|debug = 1 | |debug = 1 | ||
}} | }} | ||
<!-- | <!-- Store each dissemination as a subobject --> | ||
{{# | {{#store_external_table: StrapiPublicDissemination | ||
= | |DisseminationID = {{{DisseminationID}}} | ||
|CreatedAt = {{{CreatedAt}}} | |||
|UpdatedAt = {{{UpdatedAt}}} | |||
|PublishedAt = {{{PublishedAt}}} | |||
|SocialMediaID = {{{SocialMediaID}}} | |||
|Platform = {{{Platform}}} | |||
|Views = {{{Views}}} | |||
|GainedFollowers = {{{GainedFollowers}}} | |||
|Followers = {{{Followers}}} | |||
|Activities = {{{Activities}}} | |||
}} | |||
<!-- Query and display all dissemination records in a table --> | |||
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] | |||
|?DisseminationID | |||
| | |?CreatedAt | ||
|?UpdatedAt | |||
|?PublishedAt | |||
|?SocialMediaID | |||
|?Platform | |||
|?Views | |||
|?GainedFollowers | |||
|?Followers | |||
|?Activities | |||
|format=table | |||
|class=wikitable | |||
|headers=show | |||
|mainlabel=- | |||
}} | }} |
Revision as of 11:37, 28 January 2025
DisseminationID | CreatedAt | UpdatedAt | PublishedAt | SocialMediaID | Platform | Views | GainedFollowers | Followers | Activities |
---|---|---|---|---|---|---|---|---|---|
17 | |||||||||
4 | 100 | 100 | 1,100 | 1 | |||||
5 | 10 | 0 | 1,300 | 10 | |||||
19 | 100 | 200 | 1,350 | 22 | |||||
8 | 300 | 400 | 2,500 | 10 | |||||
16 | |||||||||
11 | |||||||||
11 | 200 | 200 | 2,100 | 10 | |||||
7 | 100 | 0 | 1,900 | 12 | |||||
12 | |||||||||
9 | |||||||||
14 | |||||||||
6 | 200 | 100 | 1,700 | 10 | |||||
8 | 100 | 100 | 100 | 10 | |||||
15 | |||||||||
15 | 100 | 50 | 1,150 | 1 | |||||
10 | 200 | 300 | 2,000 | 10 | |||||
10 | |||||||||
9 | 100 | 300 | 1,600 | 10 | |||||
13 |