Support » Plugin: Timely All-in-One Events Calendar » twig variables

  • Resolved paprika27

    (@paprika27)


    in event-single.twig,

    <h1 class=”entry-title”>{{ post_id }}</h1>

    works as expected. but I cannot figure out, which variable contains the title of the event.

    variations from adjacent twigs such as

    {{ event.filtered_title | raw }}

    don’t output anything.

    Which variable contains the title and is available in this file? where might I find a list?

    Thanks!

    • This topic was modified 5 years, 8 months ago by paprika27.
    • This topic was modified 5 years, 8 months ago by paprika27.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello paprika27,

    Unfortunately, a list of Twig variables is currenlty not available, but our development team is keeping it in mind for future release.

    This is the current documentation I can provide at this time:

    https://time.ly/changing-twig-template-variables/

    [ Moderator note: Signature redacted. ]

    • This reply was modified 5 years, 7 months ago by Jan Dembowski.
    Thread Starter paprika27

    (@paprika27)

    Thanks for your response. I must not have made myself clear.

    What is the variable containing the title?

    {{ event.filtered_title | raw }} does not work. The link you provided does not help.

    (Nice of you to add it to the roadmap but I don’t really care for the list, I just want the title instead of the post_id)

    Hello @paprika27,

    My apologies if my response wasn’t clear. Twig variable information has not been released, but may be available in a future release (no ETA). I do not have the specific information you requested.

    For faster assistance, please log into your Timely account and open a ticket by clicking on the Get Help link, or click here: https://dashboard.time.ly/account/get-help.

    [ Moderator note: Signature redacted. ]

    • This reply was modified 5 years, 7 months ago by Jan Dembowski.
    Thread Starter paprika27

    (@paprika27)

    Sunny Lal has since written to me the following solution to the problem:

    {{ event.get( ‘post’ ).post_title }}

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘twig variables’ is closed to new replies.