We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Understanding code which outputs entries of a specific event template

How Do I?

bfsog's avatar
bfsog
2 posts
about 11 years ago
bfsog's avatar bfsog

I am very new to Expression Engine, trying to get my head round it.

I have 3 template files named

events_speaker_series_locationA events_speaker_series_locationB events_speaker_series_locationC

In each file after some static content there is this code

{exp📆events calendar_id="52" sort="asc" dynamic="off" status="current"} // HTML Code which formats the entry {/exp📆events}

The only difference in the {exp:} line is the calendar_id=”number” so this is where we specify which entries to load. Correct?

My question is how did the original developer know that the entry id was 52 (in the above case)? The ids used for the 3 templates are 52,114 and 117 but I would like to know where in EE I can see this id so if I need to create a template in the future I know where to get the id from.

       
Riverboy's avatar
Riverboy
2,993 posts
about 11 years ago
Riverboy's avatar Riverboy

Just head over edit channel entries , filter to calendar: calendar channel and you will see entry IDs on the left side of listed entries. For more calendar related questions its better to ask directly from solspace team @ solspace.com. Hope this helped a bit?

       
Boyink!'s avatar
Boyink!
5,011 posts
about 11 years ago
Boyink!'s avatar Boyink!

So - just to clarify. EE has some native calendaring abilities, and there are 3rd party providers that have built add-ons to extend the native abilities.

If the code was

{exp:channel:calendar

This would be native EE code, as the calendar function lives within the channel module.

You list

{exp:calendar:events

Which is, as Riverboy stated, an addon by http://solspace.com.

That add-on still uses channels and channel entries to hold events but adds a lot of different tags and views for more powerful calendars.

Each entry in EE gets an ID - it is always unique, much like in a database. If you create a new entry, and EE assigns the ID number, then you delete that entry and create a new one, the number will be different. IDs are not reused.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.