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

FF Matrix Offset doesn't work with a variable

Development and Programming

BC Team's avatar
BC Team
244 posts
16 years ago
BC Team's avatar BC Team

I can’t get a variable like the following to work:

{assign_variable:var_offset="{exp:simple_math calculate='{segment_4}-1'}"}

{myMatrix  limit="1" offset="{var_offset}"}
      //Content
{/myMatrix}
       
BC Team's avatar
BC Team
244 posts
16 years ago
BC Team's avatar BC Team

Has anyone done anything like this?

       
Thomas Jacobs's avatar
Thomas Jacobs
9 posts
15 years ago
Thomas Jacobs's avatar Thomas Jacobs

Had the same problem and found the solution in this post. Key is to enable php AND input mode.

       

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.