Christian Posted July 23, 2014 Share Posted July 23, 2014 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---NewsletterOn 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 More sharing options...
Nico Knoll Posted July 23, 2014 Share Posted July 23, 2014 Do the newsletter pages always look the same? Because if this the case I think you should handle it a little bit different then having to subpages with the same content. Link to comment Share on other sites More sharing options...
Christian Posted July 23, 2014 Author Share Posted July 23, 2014 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 More sharing options...
Nico Knoll Posted July 23, 2014 Share Posted July 23, 2014 I still think I don't understand it completely ... Link to comment Share on other sites More sharing options...
totoff Posted July 23, 2014 Share Posted July 23, 2014 Not sure if I understand your question right, but you can render the content of a page easily with another page. See here: http://wiki.processwire.com/index.php/Including_a_page_in_another_page 2 Link to comment Share on other sites More sharing options...
totoff Posted July 23, 2014 Share Posted July 23, 2014 -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"). 2 Link to comment Share on other sites More sharing options...
Christian Posted July 24, 2014 Author Share Posted July 24, 2014 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now