ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

safecracker: problems customizing a matrix field with playa inside

February 25, 2011 1:19am

Subscribe [4]
  • #1 / Feb 25, 2011 1:19am

    aircrash

    293 posts

    I have a matrix field that contains a playa field, and I’m trying to customize the matrix display. I was initially just going to copy the source of the default matrix display and use that to hard-code a customized version, but I have a playa field in the matrix that I need to keep dynamic. Is there a way to leave the playa field dynamic while hard-coding the rest of the matrix code around it?

    Also, I’m not able to add a row to the matrix. I’m getting a bunch of “ReferenceError: Can’t find variable: jQuery” errors

  • #2 / Feb 25, 2011 11:11am

    Ingmar

    29245 posts

    Sorry, you lost me: how does SafeCracker come into play here? Are you having the same problem when doing this via the control panel?

    What version and build of EE are you using?

  • #3 / Feb 25, 2011 11:47am

    Rob Sanchez

    335 posts

    To get all the requisite Javascript+markup for a Matrix and/or Playa field to function properly, you need to use the {field:your_field_name} syntax.

  • #4 / Feb 25, 2011 12:24pm

    aircrash

    293 posts

    @Ingmar, I’m using safecracker to build an entry form that contains the matrix/playa combination. I want to alter the matrix code to get rid of the table layout, so that it displays properly (I have too many fields to display in a horizontal table format). The matrix works fine in the control panel, but I need to allow visitors to create entries via safecracker. I’m using 2.1.3, build 20101220.

    @Rob, so there’s no way to alter the way the matrix code is displayed?

  • #5 / Feb 25, 2011 12:35pm

    Rob Sanchez

    335 posts

    Not if you want it and its celltypes to function properly. I think the best thing to do is style it with CSS.

  • #6 / Feb 25, 2011 12:51pm

    aircrash

    293 posts

    Thanks. I’m having the jquery issue even when using the {field:your_field_name} syntax.

  • #7 / Feb 25, 2011 4:26pm

    Sue Crocker

    26054 posts

    aircrash, are you using 1.03 or 2.0 as far as SafeCracker is concerned?

  • #8 / Feb 25, 2011 5:24pm

    aircrash

    293 posts

    1.03. Haven’t had a chance to upgrade yet.

    I noticed in the release notes something about the catchall field being removed. Does this mean that my existing catchall fields will stop working?

  • #9 / Feb 27, 2011 2:29pm

    Greg Salt

    3988 posts

    Hi aircrash,

    In fact there are no functional changes in Safecracker 2.0 though the catchall fieldtype is not now bundled.

    Cheers

    Greg

  • #10 / Mar 01, 2011 11:29am

    Rob Sanchez

    335 posts

    1.03. Haven’t had a chance to upgrade yet.

    I noticed in the release notes something about the catchall field being removed. Does this mean that my existing catchall fields will stop working?

    You can now download the Catchall fieldtype from Devot:ee. This replaces the old safecracker_catchall fieldtype. There are instructions for updating at the bottom of the page here: http://devot-ee.com/add-ons/catchall/

  • #11 / Mar 02, 2011 10:01am

    Sue Crocker

    26054 posts

    Thanks for the assist, Rob.

    Aircrash - let us know if the info from Rob helps.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases