Cornerstone display function

Hello.

(I understand this request might be beyond scope of support, but wanted to ask for the help anyways)

Ultimate goal: display one page (built in Cornerstone) as part of another page (built in cornerstone).
Question: Is there a function that we can call to generate a page built in Cornerstone?

We can successfully accomplish this via jQuery, but there are overlapping CSS classes. As an example, each page, both origin and target, have class="el1 x-section" but the pages have differing styles for these classes.

When a page is loaded, there appears to be some compilation happening to generate a page built in Cornerstone.
the_content() prints out the shortcodes.
The postmeta _cornerstone_data is not in a format that can be displayed or parsed.
The postmeta _cs_generated_styles has variables like %%post color%%.

Is there a function that we can call to generate a page built in Cornerstone? Something y’all wrote to pull these pieces of data together into a whole, styled page?

Thank you.

Hi there,

Unfortunately, it is not possible to do so, and we do not have any function to run things out as it is a complicated process and with different factors.

I suggest that you get back to us with the reason which you want o to embed a page inside of another one, maybe we can give you an alternative to achieve your goal without the need of doing such an action.

There is always a way to embed a page to another one using the iFrame. I am not sure how it will turn out to be but you can use a Raw Content element inside the Cornerstone and point an iFrame HTML tag to the front end link of the page which you want to embed. For more information about iframes:
https://www.w3schools.com/tags/tag_iframe.asp

Thank you.

Thanks @christopher.amirian!

We did do this successfully via an iFrame as well, but it was terribly slow.

Our goal is to create a piece of content that we can re-use on several pages, allowing us to update content with one edit and have that edit reflected across several pages. Because the content is complex, we really want to build in Cornerstone.

Hey @redpupmedia,

What you’re looking for is something like global blocks. Regretfully, this would require complex custom development. You can either create a custom page template based on a page built with Cornerstone or look for a way to filter the content. This will require hours if not days, to build. You will need to hire a third party developer for this.

Thank you for understanding.

Thanks @christian_y

Yes, Like Global Blocks, but that plugin no longer works since the big update.

Yup, already hours and days into this project. Will keep digging in.

Thanks

Thanks for understading!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.