Jump to content

Multiple Page With Shared Content


Christian
 Share

Recommended Posts

Hi! Is it possible to have multiple page with shared content where when I edit a page some page will also affect by that changes?

Here is a sample tree stucture:

-Home

--Credit Card

---Newsletter
--Widgets
---Social
---Newsletter

On the example above. If I edit some fields on Newsletter then the chile page Newsletter on Widget is also affected. Is this possible?

Link to comment
Share on other sites

Yeah it's the same since it's serve as a widget. The only purpose of putting again a newsletter on the Credit Card page is for easy referencing of what widget is use on that page while Widget page is the collection of all Widgets.

Link to comment
Share on other sites

-Home
--Credit Card
---Newsletter (only renders)
--Widgets
---Social
---Newsletter (holds the content and renders it)

Right? Than see above. Or - alternatively for a specific field - use $page->get("selector").

  • Like 2
Link to comment
Share on other sites

Hi! Is  this applicable on managing data? specifically editing.

Our app will not render any data on template file. This mean that all of our data will be fetch by another framework. So I will not put any code on the template. And I will only use this idea on editing a page on admin side. Is there any way processwire can do this without any APIsh approach?

By the way. Nice idea :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...