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 don't display all playa field

April 14, 2011 6:48pm

Subscribe [3]
  • #1 / Apr 14, 2011 6:48pm

    GKenny

    78 posts

    Hi

    I have a problem im using safecracker with 2 playa field.

    Here my setup:

    I have a channel “dossier” with some custom field. In these custom field 2 are playa field the first is named “client_dossier” and the other is named “victime_dossier” these 2 field are related with 2 different channel with different custom field each.

    Now I try to display the custom field of “client” and “victime” in safecracker. It work when I only have 1 playa field in my custom field for the “dossier” channel. But if I add the second playa field I only see the last one in this case “victime”.

    I try the same setup with exp:channel:entries and everything rendered well.

    Here a sample of the code:

    {exp:safecracker channel="dossiers" return="gestion_dossiers/formulaires/ENTRY_ID" entry_id="{segment_3}" include_jquery="no"}
    ...
    {client_dossier}
    <tr>
    <td class="rAlign">Prénom et Nom :</td>
    <td>{nom_client}</td>
    </tr>
    {/client_dossier}
    ...
    {victime_dossier}
    <tr>
    <td class="rAlign">Prénom et Nom :</td>
    <td>{nom_victime}</td>
    </tr>
    {/victime_dossier}
    ...
    {/exp:safecracker}

    What I am missing in this?

  • #2 / Apr 15, 2011 2:49pm

    Brandon Jones

    5500 posts

    Hi GKenny,

    What version and build of EE are you using? This is with SafeCracker 2.0, correct? I’m not sure if this is an issue with Playa or not, so I’d recommend getting in touch with Pixel & Tonic on this, just to be safe.

  • #3 / Apr 19, 2011 2:51pm

    GKenny

    78 posts

    Hi Brandon

    Sorry for the delay have to work on other stuff

    I already post the question at pixel&tonic; forum and he said that probably a safecracker problem!!

  • #4 / Apr 19, 2011 7:03pm

    Sue Crocker

    26054 posts

    Do you have a link to that thread? Which version of Playa are you trying this with?

  • #5 / Apr 19, 2011 9:07pm

    GKenny

    78 posts

    Hi Sue

    Here is the link for the post :

    http://help.pixelandtonic.com/brandonkelly/topics/multiple_playa_field_inside_custom_field

    And my Playa version is 4.0.4.1

    Thanks

  • #6 / Apr 19, 2011 10:55pm

    Lisa Wess

    20502 posts

    Hi, GKenny -

    These work if you both show them in the Control Panel publish form, correct?  That’s just a troubleshooting step, not a recommendation. =)

    Can you go to Admin > Output and Debugging, and turn on the Profiler?  Visit your SafeCracker form, at the bottom you should see much more information.  Please copy that into a text file, then attach it to this post.  I am hoping that this will give us a clue to see what may be occurring.

    Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases