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

Conditional for embed variable

How Do I?

SiteWaves's avatar
SiteWaves
19 posts
8 years ago
SiteWaves's avatar SiteWaves

I have this-cat-id variable used in an embedded template, but I can’t seem to figure how to use a conditional with it.

The variable: -embed=”group/temp” this-cat-id=”{categories limit="1"}{category_id}{/categories}”-

If the category_id == “” How do I assign a value, like 68 for example. I’ve tried many different ways where I assign the variable and where the embedded variable is embedded.

       

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.