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

Dynamically switch between includes - how?

How Do I?

Okapi Creative's avatar
Okapi Creative
359 posts
about 6 years ago
Okapi Creative's avatar Okapi Creative

I have two includes - one which essentially displays a tab with a date, and another which has two tabs with two dates. Basically: Includes/include_one & Includes/include_two.

All working fine but these are needed to be dynamic and choosable from the CP by the user who is not able to edit the templates to change this.

How would you go about this?

       
webmaster_keith's avatar
webmaster_keith
3 posts
about 6 years ago
webmaster_keith's avatar webmaster_keith

Could use a toggle field or drop down

{if toggle_field}
  Yes - {embed:inc_1...}
{if:else}
  No - {embed:inc_2...}
{/if}
       

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.