Git Product home page Git Product logo

Comments (6)

GBH avatar GBH commented on July 17, 2024

At the moment copy-pasting is the way to do it. I'll take a look if something like that is feasible to implement.

from comfortable-mexican-sofa.

ctria avatar ctria commented on July 17, 2024

This would also be useful for layouts.

I think a good implementation would be to have a button "copy it to mirrors" when site mirroring is enabled for pages, layouts and snippets.

from comfortable-mexican-sofa.

GBH avatar GBH commented on July 17, 2024

I wrote about it a bit in another ticket. The idea is that when multi-site is enabled you can mark layouts/pages/snippets as 'shared'. This will effectively create a copy on each site and keep the content in sync. It's probably not useful for i18n sites, but great in other cases.

Also to answer the original question. You already can output snippet content from arbitrary site like this:

cms_snippet_content(:snippet_slug, Cms::Site.find_by_hostname('hostname'))

from comfortable-mexican-sofa.

toreyheinz avatar toreyheinz commented on July 17, 2024

My thought on this would be to have a "global" site, that we could pull content from. I have a need for this where I have a client with many small sites that will share maybe a half dozen or so chunks of code between them. Like Google Analytics, and contact forms/info.

I have not decided to move forward with the Sofa yet, but if I do, I may put some effort into this.

from comfortable-mexican-sofa.

ahamid avatar ahamid commented on July 17, 2024

+1 for global layouts. this way you can support reusable themes. if you are sneaky you can update the page layout foreign key in the database, but this does not survive edits via the UI.

from comfortable-mexican-sofa.

GBH avatar GBH commented on July 17, 2024

2.0 will come with better way to manage multisites. Stay tuned.

from comfortable-mexican-sofa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.