Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Build a Page Collection module #86
Okay, this is not an issue but rather a feature request.
We have the scenario where we want to link to other pages in some way. A suggested implementation would be a module for a page collection, like the Custom Entity Collection, where you can select multiple pages from the solution. When you then have a list of pages it would be great if you could query the page in some way to get additional information. What do you think?
Please let me know if you need any clarification :)
Certainly we should have a PageCollectionAttribute that works in a similar way to CustomEntityCollection that includes a picker and drag/drop ordering. A page module type based off this would also be a good idea, but in reality the implementator will want to customize the template and the view data so this might be better off as an example module that can be adapted.
I can also see that it would be good to have a module that queries pages based on other attributes such as directory or tags. We have some raw page querying functionality build in already using 'IPageRepository' based on the demands of the page listing in the admin panel but this area needs a bit more thought, which is linked to issue 12: Custom Entity Partitioning & Taxonomy. For now it would be good to at least have a sample for how this existing functionality could be used.
I've added three new data model attributes:
I've also created a sample application demonstrating how to use them: Cofoundry.Samples.PageModules
Hopefully I can push a release out in the next few days.