• Resolved grayzee

    (@grayzee)


    I made some modifications to my theme such as switching on php/json export to theme.

    After this i noticed the following field is no longer visible within my Flexible Content field.


    Layouts: Placeholder
    Display a placeholder with a pencil icon, making edition easier

    please see attached image. https://ibb.co/hstt03j

    Anyone know how I can get this field back and turn it on.

    Thanks,
    Graeme

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    It’s a strange problem. Can you make sure that you’re using the latest ACF Extended + ACF version?

    The “Placeholder setting” is only hidden if the setting “Dynamic preview” is set to ON. However, the “Dynamic Preview” is only available if the “Layout: Render” is also set to ON.

    If you register your field via PHP, can you make sure that the key acfe_flexible_layouts_previews is not set to 1?

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hey,

    Any news?

    Regards.

    Thread Starter grayzee

    (@grayzee)

    Hey,

    I was able to make changes to the PHP file so it turned on.

    Weird that the option isn’t visible within the page.

    Many thanks,
    Graeme

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    If you register a local field groups using PHP, settings changes in PHP code won’t appear in the ACF administration. This is how ACF works, local field groups are loaded first. In fact, your changes in the administration are not taken in account at all, until you remove the local PHP code.

    If you want to synchronize ACF field group administration & still locally register the field group (in PHP or json), you ‘ll have to use the ACF Extended PHP AutoSync feature.

    Regards.

    Thread Starter grayzee

    (@grayzee)

    Actually I still think there is a bug here…

    How my setup is working.

    Locally, I have the ACF fields within the plugin so i can edit them and create/edit fields as needed.

    I then update my theme via FTP and copy themes root files and folders to my FTP including the following.

    /acfe-php
    /acf-json

    I just removed these folders from my local website and the field is still missing. Im having to insert the line manually into the /acfe-php/—.php file manually to have the option activated?

    Why is it just this one option that is causing issues? Surely they all should cause the same issue if im using it incorrectly?

    Thread Starter grayzee

    (@grayzee)

    Basically Since removing all the ACF fields from my online sites and using the sync folders in my theme.

    I have had to manually add the following lien into my /acfe-php/group_5ce8355db56fc.php file which contains all my flexible content modules.

    ‘acfe_flexible_layouts_placeholder’ => 1,

    Apart from this one field everything else works fine.

    Im not sure why this is happening.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I’m sorry but it’s kinda hard to understand your setup. From what I understand, here are some advices I can give you:

    If you want to use PHP AutoSync, you should not remove the field groups from your administration. ACF Extended PHP AutoSync (and /acfe-php folder) is supposed to work with Database field groups.

    If you enable PHP Sync, every changes you make in your database field groups will be synced into PHP files. The site will not lose performance if you do this, because ACF will load the local PHP field group instead of doing database call when you will use get_field() & other functions.

    If you want to only have database field groups in your local development environment and not on the production site, please do as follow:

    * Edit your field groups on the local environment
    * Manually export your field group to PHP code
    * Copy/paste PHP code to your theme functions.php
    * During that step, check if acfe_flexible_layouts_placeholder is set to 1
    * Field group will appear in the Third Party tab

    In order to understand what’s going on with acfe_flexible_layouts_placeholder you need to follow those steps. If the key is not set, then there’s a problem with your local database field groups.

    Hope it helps!

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    PS: Can you please share with me a manual Json or PHP export of your database field group? (you can remove the layouts array, I don’t really need them).

    Can you also please make a screenshot of your flexible content field settings in the ACF administration?

    If you don’t want to share those datas here, you can send me an email from my website (at the bottom of the homepage): https://hwk.fr

    Thanks in advance,

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Any news?

    Thread Starter grayzee

    (@grayzee)

    Hello, weirdly enough its stopped glitching and has started exporting the line of code so i no longer need to manually add it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Layouts: Placeholder field missing’ is closed to new replies.