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

Is there a way to set a flag or create a user-controlled variable in a channel entry?

Development and Programming

txdigital's avatar
txdigital
17 posts
14 years ago
txdigital's avatar txdigital

Is there a way to manipulate/create a variable in an entry? I’m using a plugin I bought but its not as robust I had wanted.

I’m supposed to use it like this:

{exp:member_categories:check category_id="1"}

//If True, shows this

{if no_results}

//If not true, shows whats in here

{/if} 

{/exp:member_categories:check}

But I want it to be able to check multiple category_id’s…That only checks one.

So I want to create a variable that sets $isitokaytoshowthis=1 if multiple category id’s are set to true.

Does EE allow something like this? I cant seem to use PHP in my wysiwyg editor to make variables, so im out of options.

       

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.