twig Date and time: Format, set Timezone and Language – twig-Attribute syntax

Task:
Format the date and time from a JSON-API. Also set the timezone and language.

If only simple formatting is required: see here.


Details for “dateformat”:
The twig-extension “dateformat” accepts three arguments:

  • The format of the date, see PHP strftime for that.
  • The second optional argument sets the Timezone, see PHP List of Supported Timezones for more. If empty the default value of the PHP-Installation is used.
  • The third optional argument sets the Language, see PHP Locale for more. If empty the default value of the PHP-Installation is used.

    In case of encodein problems add “.UTF-8” like this: {{JSONFIELD | dateformat(“%B %Y”, ‘Europe/Berlin’, ‘de_DE.UTF-8’)}}

Also note this syntax:
{{ attribute(c.definition.parkingRecord.parkingRecord, ‘@id’) }}
If a JSON-Node has a “special Name” like having special Chars or numbers you’re safe with such a syntax.

JCI-Shortcode:

[jsoncontentimporterpro nameoftemplate="nottingham-parking.json"]

JCI-Template:

{% for c in carParks.carPark | slice(0,3) %}
{{ attribute(c.definition.parkingRecord.parkingRecord, '@id') }} - parkingRecordVersionTime: 
{{ c.status.parkingRecord.parkingRecordStatus.parkingStatusOriginTime  | dateformat('%A %m/%d/%y %H:%M:%S ', 'Europe/Berlin', 'nl_NL')}}
<br>
parkingSiteStatus: {{c.status.parkingRecord.parkingRecordStatus.parkingSiteStatus }}<br>
parkingSiteOpeningStatus: {{c.status.parkingRecord.parkingRecordStatus.parkingSiteOpeningStatus}}<br>
measurementOrCalculationTime: {{c.status.parkingRecord.parkingRecordStatus.parkingOccupancy.vehicleCountAndRate.vehicleRate.measurementOrCalculationTime | date("d.m.Y, H:i") }}<br>
fillRate: {{c.status.parkingRecord.parkingRecordStatus.parkingOccupancy.vehicleCountAndRate.vehicleRate.fillRate.vehicleFlowRate}}<br>
exitRate: {{c.status.parkingRecord.parkingRecordStatus.parkingOccupancy.vehicleCountAndRate.vehicleRate.exitRate.vehicleFlowRate}}<hr>
{% endfor %}

In Action:

12233069 - parkingRecordVersionTime: donderdag 03/12/20 16:28:18
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
12233071 - parkingRecordVersionTime: maandag 03/09/20 13:17:42
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
12233072 - parkingRecordVersionTime: vrijdag 03/13/20 13:21:07
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0

PRO: Simple twig loop

API: https://api.opendota.com/api/heroes

JSON locally stored at: http://api.json-content-importer.com/extra/json/heroes.json

Shortcode (the twig-template is here inline in the shortcode. It’s way better to use JCI-Templates!):
“slice(2,5) means that the loops starts at item 2 and loops through 5 items

[jsoncontentimporterpro url=https://api.opendota.com/api/heroes parser=twig332adj]
{% for item in _context | slice(2,5) %}
{{item.id}} {{item.name}} {{item.localized_name}}<br>
{% endfor %}
[/jsoncontentimporterpro]

In Action:

3 npc_dota_hero_bane Bane
4 npc_dota_hero_bloodseeker Bloodseeker
5 npc_dota_hero_crystal_maiden Crystal Maiden
6 npc_dota_hero_drow_ranger Drow Ranger
7 npc_dota_hero_earthshaker Earthshaker

twig: Sorting JSON

The PRO Version can sort JSON by using a JCI-twig-extension.
Example-JSON: http://api.json-content-importer.com/extra/json/travel.json

This is done like this:

{% for item in JSONArray | sortbyjsonfield("fieldA##fieldB,desc##fieldC,,num") %}
fieldA: {{item.fieldA}}  / fieldB: {{item.fieldB}} / fieldC: {{item.fieldC}}
{% endfor %}

Syntax:

sortbyjsonfield(STRING) with a special string like “fieldname” (sort field as string from A to Z)

  • “fieldname,desc” (sort field as string from Z to A)
  • “fieldname,,num” (sort field as number from -infinity to infinity)
  • “fieldname,desc,num” (sort field as number from infinity to -infinity)
  • “fieldname,,date” and “fieldname,desc,date” (sort field as date)

“,” and “##” are delimiters (if those are part of the fieldname this won’t work – contact developer in this case to make the delimiter dynamic).

Here we use it like this:


{% for i in Offers | sortbyjsonfield("Refnum,desc,") | slice(0,5) %}
    {{i.Refnum}}: {{i.Arraptname}}<br>
{% endfor %}

In action:

WEBPCK1919-276: Tenerife, Sur Int.(Reina Sofia
WEBPCK1919-275: Tenerife, Sur Int.(Reina Sofia
WEBPCK1919-274: Tenerife, Sur Int.(Reina Sofia
WEBPCK1919-273: Lanzarote (Arrecife) Int.
WEBPCK1919-272: Lanzarote (Arrecife) Int.

PRO: Send authentication data in http-header

Website: http://www.veezi.com/, API: http://api.us.veezi.com/help/Authentication


Create new JCI.Template:

  • Name of template: veezi
  • URL: https://api.us.veezi.com/v1/film (local storage)
  • Method: CURL-GET
  • Curloptions: CURLOPT_HTTPHEADER=VeeziAccessToken:YOUR_VEEZI_TOKEN
  • twig-template:
{% for item in _context %}{% if item.Id != false %}
{{item.OpeningDate | date("d.m.Y") }}<br>
<b>Title: {{item.Title}}</b><br>
{{item.Synopsis}} 
<ul>{% for p in item.People %}
<li>{{p.LastName}}</li>
{% endfor %}</ul>
<hr>
{% endif %}
{% endfor %}

Shortcode:

[jsoncontentimporterpro nameoftemplate="veezi"]

In Action:

02.10.2017
Title: The Silence of the Lambs
Screen legends Jodie Foster and Anthony Hopkins deliver sensational, Oscarwinning performances in this spellbinding thriller based on the bestselling novel by Thomas Harris (Red Dragon, Hannibal). A psychopath nicknamed Buffalo Bill (Ted Levine, Heat) is murdering women across the Midwest. Believing it takes one to know one, the FBI sends trainee Clarice Starling (Foster, The Accused) to interview a demented prisoner who may provide clues to the killer's actions. That prisoner is psychiatrist Dr. Hannibal Lecter (Hopkins, Nixon), a brilliant, diabolical cannibal who agrees to help Starling only if she'll feed his morbid curiosity with details of her own complicated life. As their relationship develops, Starling is forced to confront not only her own hidden demons, but also an evil so powerful that she may not have the courage-or strength-to stop it! This terrifying masterpiece co-starred Scott Glenn (The Challenge) and garnered five Academy Awards, including Best Picture, Best Director for Jonathan Demme (Philadelphia) and Best Adapted Screenplay for Ted Tally (Before and After), only the third film in history to sweep these five categories.

    12.08.2022
    Title: E.T. the Extra-Terrestrial
    Join Elliot (Henry Thomas), Gertie (Drew Barrymore) and Michael (Robert MacNaughton) as they come together to help E.T. find his way back home. Winning four Academy Awards®, including one for the iconic score by John Williams, E.T. The Extra-Terrestrial is "one of the great American films" (Leonard Maltin) that forever belongs in the hearts and minds of audiences everywhere.
    • Spielberg
    • Howell
    • Barrymore
    • Coyote
    • Thomas

    22.08.2019
    Title: Event Blocking

      13.05.2020
      Title: Random Movie In The Future

        20.05.2020
        Title: Test One
        This is Test One

          20.05.2020
          Title: Test Film 2
          This is Test Film 2

            22.08.2019
            Title: Video Game Blocking

              02.08.2021
              Title: Halloween 48 Hour Film Project

                20.05.2020
                Title: House Will Call
                Will Call

                  11.06.2021
                  Title: Wordpress film creation tracking
                  Haunted by his mysterious past, a devoted high school football coach leads a scrawny team of orphans to the state championship during the Great Depression and inspires a broken nation along the way.
                  • Shaw
                  • Lofland
                  • De Luca
                  • Williams
                  • Knight
                  • Roberts
                  • Hill
                  • Dylan
                  • Bryan
                  • De Luca
                  • Walker
                  • DuVall
                  • Wilson
                  • Sheen

                  22.08.2019
                  Title: OCAP WEDNESDAY!!! DON'T FORGET!

                    07.10.2022
                    Title: Amsterdam
                    Set in the '30s, it follows three friends who witness a murder, become suspects themselves, and uncover one of the most outrageous plots in American history.
                    • Shannon
                    • Saldana
                    • Riseborough
                    • Robbie
                    • Nivola
                    • Washington
                    • Malek
                    • Schoenaerts
                    • Milchan
                    • Swift
                    • Taylor-Joy
                    • Russell
                    • Katagas
                    • Budman
                    • De Niro
                    • Bale
                    • Myers
                    • Rock
                    • Olyphant

                    22.08.2019
                    Title: Boom and Bust

                      26.04.2022
                      Title: Redslate Films Fantasy Premiere
                      The Theater is honored to host the Redslate Films Fantasy Premiere on Monday, Sept. 19 at 7:30 p.m., followed by a brief Q&A with the local indie filmmakers. The premiere includes: - Arrivederci Bastardo - Fire - Runai - Children as Giants This event is free to the public but reservations are recommended as space is limited.

                        05.10.1979
                        Title: Nosferatu with music by Tom Roberts
                        Nosferatu: A Symphony of Horror (German: Nosferatu – Eine Symphonie des Grauens) is a 1922 silent German Expressionist horror film directed by F. W. Murnau and starring Max Schreck as Count Orlok, a vampire who preys on the wife (Greta Schröder) of his estate agent (Gustav von Wangenheim) and brings the plague to their town. The silent film will be paired with new music composed and performed live in the Theater by Pittsburgh native, Tom Roberts.

                          22.04.2022
                          Title: Marvelous and The Black Hole
                          A teenage delinquent (Miya Cech) befriends a surly magician (Rhea Perlman) who helps her navigate her inner demons and dysfunctional family with sleight of hand magic. A coming-of-age comedy that touches on unlikely friendships, grief and finding hope in the darkest moments. Official selection at Sundance Film Festival 2021 and Tribeca Film Festival 2021
                          • Perlman
                          • Nam
                          • Cech
                          • Tsang
                          • Mao
                          • Omachi
                          • Powell

                          23.11.2022
                          Title: The Fabelmans
                          A semi-autobiography based on Spielberg's own childhood.
                          • Williams
                          • Spielberg
                          • Macosko Krieger
                          • Dano
                          • Kushner
                          • LaBelle
                          • Lynch
                          • Rogen

                          23.11.2022
                          Title: Strange World
                          The legendary Clades are a family of explorers whose differences threatened to topple their latest and most crucial mission.
                          • Tudyk
                          • Conli
                          • Hall
                          • Union
                          • Young-White
                          • Quaid
                          • Gyllenhaal
                          • Liu

                          11.11.2022
                          Title: Black Panther: Wakanda Forever
                          In Marvel Studios’ “Black Panther: Wakanda Forever,” Queen Ramonda (Angela Bassett), Shuri (Letitia Wright), M’Baku (Winston Duke), Okoye (Danai Gurira), and the Dora Milaje (including Florence Kasumba), fight to protect their nation from intervening world powers in the wake of King T’Challa’s death. As the Wakandans strive to embrace their next chapter, the heroes must band together with the help of War Dog Nakia (Lupita Nyong’o) and Everett Ross (Martin Freeman) and forge a new path for the kingdom of Wakanda. Introducing Tenoch Huerta as Namor, king of a hidden undersea nation, the film also stars Dominique Thorne, Michaela Coel, Mabel Cadena, and Alex Livanalli.
                          • Boseman
                          • Feige
                          • Bassett
                          • Coogler
                          • K. Brown
                          • Nyong'o
                          • Duke
                          • Jordan
                          • Wright
                          • Gurira
                          • Coel
                          • Huerta
                          • Thorne
                          • Cadena
                          • Livanalli
                          • Whitaker
                          • Freeman

                          04.11.2022
                          Title: Good Night Oppy
                          Good Night Oppy tells the inspirational true story of Opportunity, a rover that was sent to Mars for a 90-day mission but ended up surviving for 15 years. The film follows Opportunity’s groundbreaking journey on Mars and the remarkable bond forged between a robot and her humans millions of miles away.
                          • White
                          • Hargrave
                          • Frank
                          • Falvey
                          • Carroll
                          • Goldberg

                          28.10.2022
                          Title: Armageddon Time
                          A coming-of-age story about growing up in Queens in the 1980s.
                          • Chastain
                          • Gray
                          • Isaac
                          • Katagas
                          • Teixeira
                          • Lombardozzi
                          • Feldshuh
                          • Strong
                          • Terpins
                          • De Niro
                          • Hopkins
                          • Blanchett
                          • Hathaway
                          • Sutherland

                          21.10.2022
                          Title: Ticket to Paradise
                          Academy Award® winners George Clooney and Julia Roberts reunite on the big screen as exes who find themselves on a shared mission to stop their lovestruck daughter from making the same mistake they once made.
                          • Bevan
                          • Fellner
                          • Parker
                          • Dever
                          • Bravo
                          • Heslov
                          • Lourd
                          • Balderstone
                          • Gill
                          • Gillan
                          • Harvey
                          • Roberts
                          • Clooney

                          30.09.2022
                          Title: BROS
                          This fall, Universal Pictures proudly presents the first romantic comedy from a major studio about two gay men maybe, possibly, probably, stumbling towards love. Maybe. They're both very busy. From the ferocious comic mind of Billy Eichner (Billy on the Street, 2019's The Lion King, Difficult People, Impeachment: American Crime Story) and the hitmaking brilliance of filmmakers Nicholas Stoller (the Neighbors films, Forgetting Sarah Marshall) and Judd Apatow (The King of Staten Island, Trainwreck, The Big Sick), comes Bros, a smart, swoony and heartfelt comedy about finding sex, love and romance amidst the madness. Starring Billy Eichner, the first openly gay man to co-write and star in his own major studio film, Bros is directed by Nicholas Stoller from his screenplay with Eichner. The film is produced by Judd Apatow, Stoller and Joshua Church (co-producer Trainwreck, Step Brothers). The film is executive produced by Eichner.
                          • Apatow
                          • Stoller
                          • Rash
                          • Macfarlane
                          • Eichner
                          • Fierstein
                          • Raymund
                          • Church

                          23.09.2022
                          Title: Don’t Worry Darling
                          From New Line Cinema comes “Don’t Worry Darling,” directed by Olivia Wilde (“Booksmart”) and starring Florence Pugh (Oscar-nominated for “Little Women”), Harry Styles (“Dunkirk”), Wilde (upcoming “Babylon”), Gemma Chan (“Crazy Rich Asians”), KiKi Layne (“The Old Guard”) and Chris Pine (“All the Old Knives”). Alice (Pugh) and Jack (Styles) are lucky to be living in the idealized community of Victory, the experimental company town housing the men who work for the top-secret Victory Project and their families. The 1950’s societal optimism espoused by their CEO, Frank (Pine)—equal parts corporate visionary and motivational life coach—anchors every aspect of daily life in the tight-knit desert utopia. While the husbands spend every day inside the Victory Project Headquarters, working on the “development of progressive materials,” their wives—including Frank’s elegant partner, Shelley (Chan)—get to spend their time enjoying the beauty, luxury and debauchery of their community. Life is perfect, with every resident’s needs met by the company. All they ask in return is discretion and unquestioning commitment to the Victory cause. But when cracks in their idyllic life begin to appear, exposing flashes of something much more sinister lurking beneath the attractive façade, Alice can’t help questioning exactly what they’re doing in Victory, and why. Just how much is Alice willing to lose to expose what’s really going on in this paradise? An audacious, twisted and visually stunning psychological thriller, “Don’t Worry Darling” is a powerhouse feature from director Olivia Wilde that boasts intoxicating performances from Florence Pugh and Harry Styles, surrounded by the impressive and pitch-perfect cast. The film also stars Nick Kroll (“How It Ends”), Sydney Chandler (“Pistol”), Kate Berlant (“Once Upon a Time… In Hollywood”), Asif Ali (“WandaVision”), Douglas Smith (“Big Little Lies”), Timothy Simons (“Veep”) and Ari’el Stachel (upcoming “Respect the Jux”).
                          • Lee
                          • Chan
                          • Pugh
                          • Wilde
                          • Styles
                          • Layne
                          • Stachel
                          • Silberman
                          • Yoon
                          • Simons
                          • Pine

                          16.09.2022
                          Title: See How They Run
                          In the West End of 1950s London, plans for a movie version of a smash-hit play come to an abrupt halt after a pivotal member of the crew is murdered. When world-weary Inspector Stoppard (Sam Rockwell) and eager rookie Constable Stalker (Saoirse Ronan) takes on the case, the two find themselves thrown into a puzzling whodunit within the glamorously sordid theater underground, investigating the mysterious homicide at their own peril.
                          • Oyelowo
                          • Jones
                          • Dickinson
                          • Wilson
                          • Carter
                          • George
                          • Shearsmith
                          • Fortune-Lloyd
                          • Clifford
                          • Cooper
                          • Bennet-Warner
                          • Chanda
                          • Brody
                          • Rockwell
                          • Ronan

                          16.09.2022
                          Title: Moonage Daydream
                          Moonage Daydream illuminates the life and genius of David Bowie, one of the most prolific and influential artists of our time. Told through sublime, kaleidoscopic, never-before-seen footage, performances and music, Brett Morgen’s (The Kid Stays in the Picture, Cobain: Montage of Heck, Jane) feature-length experiential cinematic odyssey explores David Bowie’s creative, musical and spiritual journey. The film is guided by David Bowie’s own narration and is the first officially sanctioned film on the artist.
                          • Gerber
                          • Stardust
                          • White Duke
                          • Jones
                          • Eisenstadt
                          • Morgen
                          • Bowie

                          30.03.1988
                          Title: Beetlejuice
                          After Barbara (Geena Davis) and Adam Maitland (Alec Baldwin) die in a car accident, they find themselves stuck haunting their country residence, unable to leave the house. When the unbearable Deetzes (Catherine O'Hara, Jeffrey Jones) and teen daughter Lydia (Winona Ryder) buy the home, the Maitlands attempt to scare them away without success. Their efforts attract Beetlejuice (Michael Keaton), a rambunctious spirit whose "help" quickly becomes dangerous for the Maitlands and innocent Lydia.
                          • O'Hara
                          • Jones
                          • Bender
                          • Hashimoto
                          • Wilson
                          • Baldwin
                          • Ryder
                          • Davis
                          • Keaton
                          • Burton

                          09.11.1984
                          Title: A Nightmare on Elm Street
                          The monstrous spirit of a slain janitor seeks revenge by invading the dreams of teenagers whose parents were responsible for his untimely death.
                          • Langenkamp
                          • Craven
                          • Blakley
                          • Saxon
                          • Shaye
                          • Depp
                          • Englund

                          30.09.2022
                          Title: The Good House
                          The Good House follows Hildy Good (Sigourney Weaver), a wry New England realtor and descendant of the Salem witches, who loves her wine and her secrets. Her compartmentalized life begins to unravel as she rekindles a romance with her old high-school flame, Frank Getchell (Kevin Kline), and becomes dangerously entwined in one person’s reckless behavior. Igniting long-buried emotions and family secrets, Hildy is propelled toward a reckoning with the one person she’s been avoiding for decades: herself. Veteran screenwriters Maya Forbes (who also directed Infinitely Polar Bear) and Wallace Wolodarsky adapt and direct Ann Leary’s novel as a piercing observation of a woman capable of great charm, but always ready to sabotage her own success when the mood descends. Seeing the risk escalate, her family stages an intervention. It goes about as well as expected.
                          • Delaney
                          • Baccarin
                          • Weaver
                          • Forbes
                          • Rosenthal
                          • Ryder
                          • Rasche
                          • Wolodarsky
                          • Welsh
                          • Kline

                          22.08.2019
                          Title: Teen Screen--Repairing the World

                            07.10.2022
                            Title: Lyle, Lyle, Crocodile
                            Based on the best-selling book series by Bernard Waber, Lyle, Lyle, Crocodile, starring Academy Award-winner Javier Bardem, Constance Wu and Shawn Mendes, is a live-action/CGI musical comedy that brings this beloved character to a new, global audience. When the Primm family (Wu, Scoot McNairy, Winslow Fegley) moves to New York City, their young son Josh struggles to adapt to his new school and new friends. All of that changes when he discovers Lyle - a singing crocodile (Mendes) who loves baths, caviar and great music-living in the attic of his new home. The two become fast friends, but when Lyle’s existence is threatened by evil neighbor Mr. Grumps (Brett Gelman), the Primms must band together with Lyle’s charismatic owner, Hector P. Valenti (Bardem), to show the world that family can come from the most unexpected places and there’s nothing wrong with a big singing crocodile with an even bigger personality.
                            • Wu
                            • McNairy
                            • Parker
                            • Gordon
                            • Speck
                            • Gelman
                            • Fegley
                            • Mendes
                            • Hurd
                            • Bardem

                            21.12.2022
                            Title: Puss in Boots: The Last Wish
                            Puss in Boots discovers that his passion for adventure has taken its toll: he has burned through eight of his nine lives. Puss sets out on an epic journey to find the mythical Last Wish and restore his nine lives.
                            • Colman
                            • Pugh
                            • Swift
                            • Crawford
                            • Miller
                            • Moura
                            • Randolph
                            • Kayo
                            • Guillén
                            • Flanagan
                            • Mercado
                            • Mulaney
                            • Mendez
                            • Banderas
                            • Hayek
                            • Winstone

                            16.12.2022
                            Title: Avatar: The Way of Water
                            Set more than a decade after the events of the first film, “Avatar The Way of Water” begins to tell the story of the Sully family (Jake, Neytiri and their kids), the trouble that follows them, the lengths they go to keep each other safe, the battles they fight to stay alive and the tragedies they endure
                            • Worthington
                            • Saldana
                            • Weaver
                            • Lang
                            • Chaplin
                            • Falco
                            • Moore
                            • Landau
                            • Curtis
                            • Winslet
                            • Cameron
                            • Ribisi
                            • Thewlis

                            18.11.2022
                            Title: She Said
                            New York Times reporters Megan Twohey and Jodi Kantor break one of the most important stories in a generation — a story that helped launch the #MeToo movement and shattered decades of silence around the subject of sexual assault in Hollywood.
                            • Kazan
                            • Gardner
                            • Kleiner
                            • Pelphrey
                            • Braugher
                            • Mulligan
                            • Morton
                            • Schrader
                            • Barta
                            • Pitt
                            • Clarkson

                            21.10.2022
                            Title: Black Adam
                            The world needed a hero… It got Black Adam From New Line Cinema, Dwayne Johnson stars in the action adventure “Black Adam.” The first-ever feature film to explore the story of the DC Super Hero comes to the big screen under the direction of Jaume Collet-Serra (“Jungle Cruise”). Nearly 5,000 years after he was bestowed with the almighty powers of the ancient gods—and imprisoned just as quickly—Black Adam (Johnson) is freed from his earthly tomb, ready to unleash his unique form of justice on the modern world. Johnson stars alongside Aldis Hodge (“City on a Hill,” “One Night in Miami”) as Hawkman, Noah Centineo (“To All the Boys I’ve Loved Before”) as Atom Smasher, Sarah Shahi (“Sex/Life,” “Rush Hour 3”) as Adrianna, Marwan Kenzari (“Murder on the Orient Express,” “The Mummy”) as Ishmael, Quintessa Swindell (“Voyagers,” “Trinkets”) as Cyclone, Bodhi Sabongui (“A Million Little Things”) as Amon, and Pierce Brosnan (the “Mamma Mia!” and James Bond franchises) as Dr. Fate. Collet-Serra directed from a screenplay by Adam Sztykiel and Rory Haines & Sohrab Noshirvani, screen story by Adam Sztykiel and Rory Haines & Sohrab Noshirvani, based on characters from DC. Black Adam was created by Bill Parker and C.C. Beck. The film’s producers were Beau Flynn, Dwayne Johnson, Hiram Garcia and Dany Garcia, with Richard Brener, Walter Hamada, Dave Neustadter, Chris Pan, Eric McLeod, Geoff Johns and Scott Sheldon. “Black Adam” smashes into theaters and IMAX internationally beginning 19 October 2022 and in North America on October 21, 2022. It will be distributed worldwide by Warner Bros. Pictures.
                            • Hodge
                            • Kenzari
                            • Johnson
                            • Garcia
                            • Garcia
                            • Collet-Serra
                            • Flynn
                            • Shahi
                            • Centineo
                            • Swindell
                            • Sabongui
                            • Brosnan

                            21.10.2022
                            Title: The Banshees of Inisherin
                            Set on a remote island off the west coast of Ireland, THE BANSHEES OF INISHERIN follows lifelong friends Pádraic (Colin Farrell) and Colm (Brendan Gleeson), who find themselves at an impasse when Colm unexpectedly puts an end to their friendship. A stunned Pádraic, aided by his sister Siobhán (Kerry Condon) and troubled young islander Dominic (Barry Keoghan), endeavours to repair the relationship, refusing to take no for an answer. But Pádraic's repeated efforts only strengthen his former friend’s resolve and when Colm delivers a desperate ultimatum, events swiftly escalate, with shocking consequences.
                            • McDonagh
                            • Keoghan
                            • Czernin
                            • Broadbent
                            • Condon
                            • Farrell
                            • Gleeson

                            21.10.2022
                            Title: My Policeman
                            A beautifully crafted story of forbidden love and changing social conventions, My Policeman follows three young people – policeman Tom (Harry Styles), teacher Marion (Emma Corrin), and museum curator Patrick (David Dawson)– as they embark on an emotional journey in 1950s Britain. Flashing forward to the 1990s, Tom (Linus Roache), Marion (Gina McKee), and Patrick (Rupert Everett) are still reeling with longing and regret, but now they have one last chance to repair the damage of the past. Based on the book by Bethan Roberts, director Michael Grandage carves a visually transporting, heart-stopping portrait of three people caught up in the shifting tides of history, liberty, and forgiveness.
                            • Roache
                            • Styles
                            • Grandage
                            • Berlanti
                            • Schechter
                            • Dawson
                            • Herd
                            • Palfrey
                            • Mckee
                            • Rogers
                            • Corrin
                            • Everett

                            14.10.2022
                            Title: Till
                            Till is a profoundly emotional and cinematic film about the true story of Mamie Till Mobley’s relentless pursuit of justice for her 14 year old son, Emmett Till, who, in 1955, was lynched while visiting his cousins in Mississippi. In Mamie’s poignant journey of grief turned to action, we see the universal power of a mother’s ability to change the world.
                            • Broccoli
                            • Faison
                            • Bennett
                            • Lawson
                            • Deadwyler
                            • Cole
                            • Smith
                            • Carroll
                            • Chukwu
                            • Reilly
                            • Hall
                            • Thompson
                            • Beauchamp
                            • Zollo
                            • Levine
                            • Goldberg
                            • Thomas

                            23.09.2022
                            Title: Catherine Called Birdy
                            The year? 1290. In the Medieval English village of Stonebridge, Lady Catherine (known as Birdy) is the youngest child of Lord Rollo and the Lady Aislinn. Her playground is Stonebridge Manor, a house that, like the family, has seen better days. Financially destitute and utterly greedy, Rollo sees his daughter as his path out of financial ruin by marrying her off to a wealthy man for money and land. But Birdy, like all the great teen heroines, is spirited, clever, and adventurous and ready to put off any suitor that comes calling in increasingly ingenious ways. Her imagination, defiance, and deep belief in her own right to independence put her on a collision course with her parents. When the vilest suitor of all arrives, they are presented with the ultimate test of love for their daughter.
                            • Alwyn
                            • Bevan
                            • Fellner
                            • Scott
                            • Chapman
                            • Okonedo
                            • Dunham
                            • Kaye
                            • Piper
                            • Hainsworth
                            • Ramsey
                            • Wallett
                            • Sharp

                            PRO: API bikereg.com

                            API: https://www.bikereg.com/api/EventSearchDoc.aspx, Example: https://www.bikereg.com/api/search?region=Rocky%20Mountain

                            Local stored JSON: http://api.json-content-importer.com/extra/json/bikereg-search.json


                            Shortcode:

                            [jsoncontentimporterpro nameoftemplate="bikereg"]

                            twig-Template:

                            <ul>{% for me in MatchingEvents | slice(0,3) %}
                            <li><a href={{me.EventPermalink}} target=_blank>{{me.EventName}}</a>
                            {{me.EventCity}}, {{me.EventState}}, 
                            {% set dateofevent = me.EventDate | slice(6, 10) %}
                            {{dateofevent | date("d.m.Y H:i") }}</li>
                            {% endfor %}</ul>

                            In Action:

                            PRO: API workshopbutler.com

                            This pages shows you how simple you can loop through a JSON-feed.

                            API: https://www.workshopbutler.com
                            locally stored at http://api.json-content-importer.com/extra/json/workshopbutler/1.json

                            {% for item in _context %}
                            {{item.unique_name}}: rating: {{item.rating}}, countries: 
                                {% for co in item.countries %}
                                    {{co}}<br>
                                {% endfor %}
                            {% endfor %}

                            In Action:

                            char..maq: rating: 8.96999988556, countries: AU
                            danny: rating: 0, countries: AU
                            NZ
                            dtellu: rating: 0, countries: NZ
                            d.josey: rating: 0, countries: IE
                            : rating: , countries:

                            PRO: Pagination by twig – 1 feed, many pages

                            This page demonstrates how you can paginate data. All data comes in 1 feed (see here for data in several feeds)

                            Create a new JCI-Template for that:

                            {% set noonpage = 20 %}
                            {% set noofitems = ( days | length ) %}
                            {% if urlparam.no %}{% set selno = urlparam.no %}{% else %}{% set selno = 1 %}{% endif %}
                            
                            number of data-items: {{ noofitems  }} at <a href="http://api.json-content-importer.com/extra/paginationdata.php" target="_blank">http://api.json-content-importer.com/extra/paginationdata.php</a><br>
                            {% set noofpages = (noofitems /noonpage) | round(0, 'ceil') %} show on {{noofpages}} pages:
                            
                            {% set start = noonpage *(selno-1) %}
                            {% set end= start + noonpage %} 
                            
                            {% for i in 1..noofpages %} 
                            {% if i==selno %} 
                            <b>this is page: </b> {{selno}} ({{start+1}} - {{end}})
                            {% else %} 
                            <a href=?no={{i}}>{{i}}</a>
                            {% endif %} 
                            {% endfor %}
                            <hr>
                            {% if noofitems ==0 %} No data-items found {% endif %} 
                            <ul>
                            {% for day in days | slice(start, noonpage) %} 
                            <li>
                            {% set currno = start + loop.index0+1 %} {{currno}}. {{day.FORENAMES}} {{day.SURNAME}}
                            </li>
                            {% endfor %} 
                            </ul>

                            Shortcode:

                            [jsoncontentimporterpro parser=twig nameoftemplate=pagination]

                            Example in action:

                            number of data-items: 165 at http://api.json-content-importer.com/extra/paginationdata.php
                            show on 9 pages: 1 this is page: 2 (21 - 40) 3 4 5 6 7 8 9
                            • 21. Ramirez Campbell
                            • 22. Mitchell Roberts
                            • 23. Carter Phillips
                            • 24. Evans Turner
                            • 25. Torres Parker
                            • 26. Collins Edwards
                            • 27. Stewart Flores
                            • 28. Morris Nguyen
                            • 29. Murphy Rivera
                            • 30. Cook Rogers
                            • 31. Morgan Peterson
                            • 32. Cooper Reed
                            • 33. Bailey Bell
                            • 34. Gomez Kelly
                            • 35. Howard Ward
                            • 36. Cox Diaz
                            • 37. Richardson Wood
                            • 38. Watson Brooks
                            • 39. Bennett Gray
                            • 40. James Reyes

                            PRO: Basic JSON-/Twig-Usage with “_context” or “_parent”

                            API-Source: http://api.json-content-importer.com/extra/json/2.json

                            If your JSON starts with “[{” try this:


                            JCI-template:

                            _context<br>
                            _context.0.id: {{_context.0.id}}<br> 
                            _context : {{_context | json_encode }}<br>
                            {% for item in _context %}
                            item {{loop.inxes}}: {{item | json_encode}}<br>
                            {% endfor %}
                            <hr>
                            _parent<br>
                            _parent.0.id: {{_parent.0.id}}<br> 
                            {% for item in _parent %}
                            _parent : {{_parent | json_encode }}<br>
                            item {{loop.inxes}}: {{item | json_encode}}<br>
                            {% endfor %}

                            Shortcode:

                            [jsoncontentimporterpro nameoftemplate="contextparent"]

                            twig defines some Global Variables

                            • _self: references the current template name;
                            • _context: references the current context;
                            • _charset: references the current charset.

                            _parent is almost the same as _context but:
                            note the differnce of _context and _parent loops

                            In Action:

                            _context
                            _context.0.id: 1696
                            _context : {"0":{"id":1696,"title":"1Experiment Your Way Through Change","type":14},"1":{"id":2696,"title":"2Experiment Your Way Through Change","type":24},"urlparam":{"no":"2"}}
                            item : {"id":1696,"title":"1Experiment Your Way Through Change","type":14}
                            item : {"id":2696,"title":"2Experiment Your Way Through Change","type":24}
                            item : {"no":"2"}
                            item : {"0":{"id":1696,"title":"1Experiment Your Way Through Change","type":14},"1":{"id":2696,"title":"2Experiment Your Way Through Change","type":24},"urlparam":{"no":"2"}}

                            _parent
                            _parent.0.id:
                            _parent : {"0":{"id":1696,"title":"1Experiment Your Way Through Change","type":14},"1":{"id":2696,"title":"2Experiment Your Way Through Change","type":24},"urlparam":{"no":"2"}}
                            item : {"id":1696,"title":"1Experiment Your Way Through Change","type":14}
                            _parent : {"0":{"id":1696,"title":"1Experiment Your Way Through Change","type":14},"1":{"id":2696,"title":"2Experiment Your Way Through Change","type":24},"urlparam":{"no":"2"}}
                            item : {"id":2696,"title":"2Experiment Your Way Through Change","type":24}
                            _parent : {"0":{"id":1696,"title":"1Experiment Your Way Through Change","type":14},"1":{"id":2696,"title":"2Experiment Your Way Through Change","type":24},"urlparam":{"no":"2"}}
                            item : {"no":"2"}

                            Free & PRO: API Stadt Köln open-data

                            API-Source:
                            https://www.stadt-koeln.de/externe-dienste/open-data/traffic.php
                            and
                            https://www.stadt-koeln.de/leben-in-koeln/verkehr/verkehrskalender/

                            JSON stored locally: http://api.json-content-importer.com/extra/json/koeln-20220130-traffic.json

                            In Action:

                            Free Plugin (show the first four items)

                            [jsoncontentimporter url=https://www.stadt-koeln.de/externe-dienste/open-data/traffic.php]STRASSE:AUSLASTUNG
                            {subloop-array:features:4}{subloop:features.attributes:-1}{NAME}: {AUSLASTUNG}
                            {/subloop:features.attributes}{/subloop-array:features}
                            [/jsoncontentimporter]
                            STRASSE:AUSLASTUNG
                            Ost-West-Achse - Deutzer Brücke bis Innere Kanalstraße: 16
                            Ost-West-Achse - Innere Kanalstraße bis Deutzer Brücke: 0
                            Nord-Süd-Fahrt - Ebert Platz bis Cäcilienstraße: 0
                            Düsseldorfer Straße - Flittard bis Mülheimer Zubringer: 16


                            PRO-Plugin (show only >0 values and only 6 items):

                            URL: https://www.stadt-koeln.de/externe-dienste/open-data/traffic.php
                            twig-Template:

                            {% set numb = 0 %}
                            found features: {{features| length}}<br>
                            {% for f in features %}
                            {% if (f.attributes.auslastung>0) and (numb<6) %}
                                {% set numb = numb  + 1 %}
                                {{numb}}. {{f.attributes.name}}: {{f.attributes.auslastung}}<br>
                            {% endif %}
                            {% endfor %}
                            found features: 113
                            1. Ost-West-Achse - Deutzer Brücke bis Innere Kanalstraße: 16
                            2. Riehlerstraße - Mülheimer Brücke (Schanz) bis Zoobrücke: 16
                            3. Siegburger Straße - A4 - Ausfahrt Poll bis Severinsbrücke: 16
                            4. Rheinufer - Ubierring bis Theodor-Heuss-Ring: 1
                            5. Dürener Straße - Gürtel bis A1 - Ausfahrt Frechen: 16
                            6. Olpener Straße - A4 - Ausfahrt Refrath bis A4 - Ausfahrt Merheim: 16