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

FieldFrame

Development and Programming

vibe9's avatar
vibe9
96 posts
16 years ago
vibe9's avatar vibe9

I am unsure if I’ve come across a bug or whether I am implementing this incorrectly. When I use a conditional with FF Matrix EE still outputs the contents of what’s inside even when the conditional is unmet. Example:

{exp:weblog:entries weblog="mysection"}
{if cf_products_matrix}
 <ul>
{cf_products_matrix}
<li>{cell_1}</li>
{/cf_products_matrix}        
 </ul>
{/if}
{/exp:weblog:entries}

Outputs:

<ul>
<li></li>
</ul>

Whereas, in this case, I would expect the output should be empty.

Suggestions?

I am using EE 1.6.7, FieldFrame 1.0.0 and FF Matrix 1.0.0.

       
Max Lazar's avatar
Max Lazar
337 posts
16 years ago
Max Lazar's avatar Max Lazar

For people who use EngineHosting - do not activate the FF Matrix. EH not support JSON at this moment :(. So u just will see the fatal error :(.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
16 years ago
Sean C. Smith's avatar Sean C. Smith

deleted

question changed and I started a new thread.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
16 years ago
Brandon Kelly's avatar Brandon Kelly
For people who use EngineHosting - do not activate the FF Matrix. EH not support JSON at this moment :(. So u just will see the fatal error :(.

Just released FieldFrame 1.0.1, which fixes that issue.

       
IsabelS's avatar
IsabelS
27 posts
16 years ago
IsabelS's avatar IsabelS
Just released 1.0.1, which fixes that issue.

Thanks! 😊 It solved my problem, now I have a dozen new uses for the extension.

One thing though, I am using FF matrix to store a link list for the entry, one of the fields is obviously an url, the problem is that the tag doesn’t parse inside of <a href=”{shortname}”> , the other tags work just fine, apparently the issue is that this one is contained within “”. Is there a work around that I’m not seeing? I can’t use {path=} … so I have to rely on your wisdom again. 😊

And thanks for correcting the entities problem, you don’t image the help you gave me.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
16 years ago
Brandon Kelly's avatar Brandon Kelly
I am using FF matrix to store a link list for the entry, one of the fields is obviously an url, the problem is that the tag doesn’t parse inside of <a href=”{shortname}”> , the other tags work just fine, apparently the issue is that this one is contained within “”.

Sorry, didn’t see this post. That issue was fixed in FieldFrame 1.0.2 yesterday.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
16 years ago
Brandon Kelly's avatar Brandon Kelly
I am unsure if I’ve come across a bug or whether I am implementing this incorrectly. When I use a conditional with FF Matrix EE still outputs the contents of what’s inside even when the conditional is unmet.

This has been fixed in FieldFrame 1.0.3.

       
mapinfo's avatar
mapinfo
12 posts
16 years ago
mapinfo's avatar mapinfo

We are running into a javascript error that appears to prevent the adding of additional columns to the matrix field type. We have installed the latest FieldFrame extension - version 1.0.3. The jQuery for the Control Panel - v.1.1.1 extension is enabled and points to the latest Jquery scripts: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js and http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js. Our version of EE is 1.6.7 and our PHP version is 5.2. Below is the JS error shown in firebug:

$(rows[0]).sortable is not a function
(?)()()jquery.s...ttable.js (line 37)
nodeName()()jquery.min.js (line 21)
filter()()jquery.min.js (line 12)
sorttable()()jquery.s...ttable.js (line 7)
ffMatrixConf()()jquery.f...x_conf.js (line 134)
nodeName()()jquery.min.js (line 21)
filter()()jquery.min.js (line 12)
ffMatrixConf()()jquery.f...x_conf.js (line 10)
(?)()()index.ph...eld_id=78 (line 2911)
ready()()jquery.min.js (line 26)
trigger()()jquery.min.js (line 25)
[Break on this error] stop: function(event, ui) {

We can create the fields within the matrix cells and display the content using the tags within our templates. However, while we can delete columns, we can not add columns to this field type.

Is anyone else running into this error or have any ideas on how to resolve it?

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
16 years ago
Brandon Kelly's avatar Brandon Kelly

@mapinfo Could be an extension conflict. Can you try disabling other extensions?

       
mapinfo's avatar
mapinfo
12 posts
16 years ago
mapinfo's avatar mapinfo

Thank you for your suggestion Brandon. The problem is a conflict with another extension.

I disabled all of the extensions except for fieldframe and verified that the js conflict was gone and that I was able to add columns to the matrix field. At that point I began enabling each extension one by one until I located the conflict.

In our specific situation, the conflict is between fieldframe and the Playa extension. But, I should qualify my statement by explaining that the conflict is probably due to a modification I made to your extension in order to provide category filtering for related content, at the request of my manager. To meet this requirement, I added Ajax functionality to filter the category selection based on the site and weblog selection.

The conflict is most likely due to the including of JQuery more than once. I used the publish_admin_edit_field_js hook to add my Ajax functionality to Playa.

Playa is a fantastic extension and we are using this as a standard feature for related content on all of our sites. Any chance you might be adding category filtering to it?

Once I correct the issue we will also implement the fieldframe extension as well. Again, thank you for your help.

       
Mikee Bee's avatar
Mikee Bee
179 posts
16 years ago
Mikee Bee's avatar Mikee Bee

Hi all, I’m not doing too well at all!

Whenever I try to go to the extension manager I get this error…

Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in [my home folder]/extensions/ext.fieldframe.php on line 295

Any ideas?

EDIT: My version of PHP is 4.4.9 :shut:

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
16 years ago
Brandon Kelly's avatar Brandon Kelly

@mapinfo Category filtering is coming with Playa 2, which is coming soon.

@Mikee FieldFrame requires PHP 5.

       
Steve Hurst's avatar
Steve Hurst
36 posts
16 years ago
Steve Hurst's avatar Steve Hurst

Brandon - this extension has saved my life. It came with perfect timing for my current project, thanks for the hard work.

I’m having a weird issue with FF Matrix outputting the row_count incorrectly. I’m trying to use the following code:

{if row_count != total_rows} | {/if}

But my row count goes from 1 to 3 to 5, etc. My total rows reports as 2, but I’m getting 1,3 as my row counts. Is this expected behavior? This is on a matrix with 2 columns.

       
Brandon Kelly's avatar
Brandon Kelly
257 posts
16 years ago
Brandon Kelly's avatar Brandon Kelly

@Steve Hurst - I’ll have to look into that. In the meantime, an easier way of going about that is using the backspace parameter:

{my_ff_matrix_field backspace="3"}<!-- row markup --> | {/my_ff_matrix_field}
       
Steve Hurst's avatar
Steve Hurst
36 posts
16 years ago
Steve Hurst's avatar Steve Hurst

Thanks for the quick response! The following code:

{resource_link backspace="3"}<a href="http://{url}" title="{if title}{title}{if:else}Visit External Site{/if}" target="_blank" rel="noopener">{if title}{title}{if:else}Visit External Site{/if}</a> | {/resource_link}

Doesn’t result in that pipe being removed on the final row… I feel like there’s something off in my logic…

       
1 2 3 4 5 Last

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.