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

FFmatrix w/ fieldframe with conditional - PLEASE SOMEONE HELP!!!

Development and Programming

glogurl's avatar
glogurl
13 posts
15 years ago
glogurl's avatar glogurl

I am running EE 1.6.8 and ffmatrix 1.3.5 with bulk addon 0.5.1 with fieldframe 1.4.2. I am trying to show rules and coupons which are each entered in different fields within the matrix, without a limit on the matrix rows. No matter what i do, offset=”…” limits … nothing works to pull in only the info for that one row. it either pulls in both, none, or the same for both. below you will see an attached picture of how my matrix is set up and the code i use to pull the info. I need this by 2pm mst Tuesday may 25!!! please, someone help!!!

below is the code that pulls in the coupon and rules into a new page:

{exp:weblog:entries weblog="center_content" dynamic="off" limit="1" url_title="{selected_mall}"}
            {promotions}
            <div id="rewards">
            <table class="rewards">
                <tr>
                    <td class="imageContainer">
                        {exp:imgsizer:size src="{image}" width="175"  alt="{title}"}
                    </td>
                    <td>
                        <h2>{title}</h2>
                        {description}
                        {if coupon}
                            <a >Print Coupon</a>


                        {/if}
                        {if rules}
                            <a >Rules</a>
                        {/if}
                    </td>
                </tr>        
            </table>
            </div> <!-- END REWARDS DIV -->
            {/promotions}
            {/exp:weblog:entries}

below is how i am displaying the coupon:

{exp:weblog:entries weblog="center_content" dynamic="off" limit="1" url_title="{selected_mall}"}
                    <table class="printableReward">
                        <tbody>
                            <tr>
                                <td class="left" valign="top" align="left" >
                                    {exp:imgsizer:size src="{center_logo}" width="179"  alt="{title}"}

                                    {center_location}
                                        {center_street}

                                        {center_city}, {center_state} {center_zip}

                                        {center_phone}

                                        {center_email}        
                                    {/center_location}
                                </td>
                                <td class="right" valign="top" align="right">
                                    {promotions offset="1" limit="1"}
                                    <h2>{title}</h2>

                                    {coupon}
                                    {/promotions}
                                </td>
                            </tr>
                            <tr>
                                <td class="left">
                                {if logged_in} 
                                    

                                    <a >Print Coupon</a>
                                {/if}
                                </td>
                            </tr>
                        </tbody>
                    </table>
            {/exp:weblog:entries}

and last below is how i’m displaying the rules which worked for a bit and now doesn’t!:

{exp:weblog:entries weblog="center_content" limit="1" dynamic="off" url_title="{selected_mall}"}
            {promotions offset="1" limit="1"}
                <div class="rules">{rules}</div>
            {/promotions}
            {/exp:weblog:entries}
       

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.