Tagged: x
-
AuthorPosts
-
November 9, 2016 at 10:17 am #1250240
gentlemdParticipantHi 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!!!!
DanielNovember 9, 2016 at 10:20 am #1250243
gentlemdParticipantThis reply has been marked as private.November 9, 2016 at 11:49 am #1250400
RupokMemberHi 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!
November 9, 2016 at 12:13 pm #1250422
gentlemdParticipantHi 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,
DanielNovember 9, 2016 at 12:36 pm #1250441
gentlemdParticipant… 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!
DanielNovember 9, 2016 at 12:58 pm #1250476
RupokMemberHi 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!
November 9, 2016 at 1:01 pm #1250478
AlexanderKeymasterHey 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_settingsHopefully this helps!
November 9, 2016 at 2:19 pm #1250573
gentlemdParticipantHi 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 !!!
DanielNovember 9, 2016 at 2:29 pm #1250587
gentlemdParticipant… 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???
November 9, 2016 at 10:07 pm #1251097
RadModeratorHi 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_metaThanks!
November 10, 2016 at 3:19 am #1251394
gentlemdParticipantHi 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
November 10, 2016 at 4:40 am #1251477
ChristianModeratorThat 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_metaandadd_post_metaThis undertaking would be quite involved though so it is best you have a developer who understands how systems in WordPress works.
Thanks.
November 10, 2016 at 4:50 am #1251492
gentlemdParticipantHI 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,
DanielNovember 10, 2016 at 4:54 am #1251499
gentlemdParticipantLast 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,
DanielNovember 10, 2016 at 7:24 am #1251625
ChristianModeratorYou’re welcome. There is no documentation though.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1250240 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
