Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1250240
    gentlemd
    Participant

    Hi There,
    I have a very special problem. We have developed a tool, which automates a big part of our daily work. It is a kind of drag an drop Editor, where we could put together over 100 predefined Sections to one complete Page, then several Pages to one Site. At least our System produces a complete WordPress-Installation – and put in all the code for Pages, Sections, Modules … with only a press of one button. That makes us super fast! BUT we all did that by using the Visual Composer.

    Now we would like to step up to Cornerstone. But for that it is necessary to get the opportunity, to write our “code” directly into the static pages. When using VC this is no Problem, because we could write directly into the WP-Editor (incl. all the CSS). But this is – by default – NOT POSSIBLE when using Cornerstone. Indeed we could see code which is produced by cornerstone, but we could not write into it. Is there any possibility for us?

    Next Question would be, if we could write our CSS-Code direct into the “X Global CSS Editor”. I appreciate any help on this!!!!
    Daniel

    #1250243
    gentlemd
    Participant
    This reply has been marked as private.
    #1250400
    Rupok
    Member

    Hi there,

    Thanks for writing in! It’s not possible to edit a Cornerstone page outside of Cornerstone. But you can save a set of your content to library and just import this to a page as block or complete page. Hopefully this will doe the job. You will find the option under “Templates” in Cornerstone editor.

    And yes you can write your CSS under Custom > CSS in the Customizer.

    Let us know if you have any question.

    Cheers!

    #1250422
    gentlemd
    Participant

    Hi There,
    thanks for your answer. But we have already placed that question one year ago and I remember, that one of your developer give us a solution for that … my prob is, that I currently don´t find this conversation. So please, if you don´t mind, would you please check that again. If we don´t find a solution for that, we couldn´t change to Theme.co. Thanks again for your help,
    Daniel

    #1250441
    gentlemd
    Participant

    … all I remeber is, that you don´t use the editor itself but a own “hidden” field within WordPress. And I do remember, that we could make it visible with a certain PHP-Command. This is what we have been told!
    Daniel

    #1250476
    Rupok
    Member

    Hi Daniel,

    Not sure which thread you are referring, let’s try finding from here – https://community.theme.co/users/gentlemd/topics/

    And Cornerstone stores the page data separate from the final content by using post meta. So the normal editor won’t take effect with the content of Cornerstone. You can continue using the default editor if you want since mixup won’t be possible.

    Cheers!

    #1250478
    Alexander
    Keymaster

    Hey there,

    This is Alexander, lead developer on Cornerstone. I just wanted to chime in to say that Cornerstone stores it’s generated output in the standard content, but the main data is stored under 2 post meta keys:

    _cornerstone_data
    _cornerstone_settings

    Hopefully this helps!

    #1250573
    gentlemd
    Participant

    Hi Alexander,
    so the question is, if it is possible to write from the “outside” into Cornerstone OR elsewhere. The aim is, that our editor is able to “insert/write” it´s content into the page. This is what our Editor do by using Visual Composer. I don´t understand what is meant in details with your 2 mentioned Meta Keys. Any suggestion?! Would be great !!!
    Daniel

    #1250587
    gentlemd
    Participant

    … if I see this correctly you inserted 2 Meta Boxes into the post editing screen. This boxes are hided by default … right? If so, is there a way to a.) make them visible and b.) to write from the outside into these boxes. OR am I completely on the wrong way???

    #1251097
    Rad
    Moderator

    Hi there,

    Cornerstone’s data are stored as serialized object in post’s meta key, it’s not something can be edited or viewed through meta box. They are different, and you can only edit it through the builder and stored to _cornerstone_data with the help of add_post_meta() and update_post_meta()

    https://codex.wordpress.org/Function_Reference/update_post_meta
    https://codex.wordpress.org/Function_Reference/add_post_meta

    Thanks!

    #1251394
    gentlemd
    Participant

    Hi There,
    so as a Result of this conversation we can summ up, that there is no way for us, to “connect” our Editor with cornerstone. Is that right? OR can we use the same way as your Builder do … store to _cornerstone_data with the help of add_post_meta() and update_post_meta()

    Daniel

    #1251477
    Christian
    Moderator

    That is technically possible. It is even possible to write in the default editor if you don’t need to edit the content in Cornerstone but just generate content. You just have to build the page in Cornerstone first then switch to text mode and copy or familiarize the shortcodes generated by Cornerstone to be used in your system.

    If you need the content to be editable in Cornerstone, then you will need to work with update_post_meta and add_post_meta

    This undertaking would be quite involved though so it is best you have a developer who understands how systems in WordPress works.

    Thanks.

    #1251492
    gentlemd
    Participant

    HI There,
    this is exactly what I am doing, but to estimate if there is any sense of setting up a project, is was necessary to get this last Reply of you. Thanks a lot for that,
    Daniel

    #1251499
    gentlemd
    Participant

    Last one on that … are there any more information/documentation on how the pdate_post_meta and add_post_meta should be handled OR is that a trial&error game :-).
    Thanks in advance,
    Daniel

    #1251625
    Christian
    Moderator

    You’re welcome. There is no documentation though.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1250240 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>