-
☆ A M B ☆
- 3,141 Posts
Jason, do you know of any existing implementations, tutorials or even collection of hints to put that together? It would benefit a lot of people but I couldn’t find any info on it.
-
☆ A M B ☆
- 3,141 Posts
Thanks. And yea, that indeed sounds like something we’ve been doing for a long time already
What I don’t understand yet though (may have been unclear) is to for example make a "blog" resource type/class which shows up in the site tree and, instead of giving you the regular forms when editing, shows you for example a list of all blog posts. Sort of like a CMP included in the edit resource page. And when retrieved through snippets like getResources or Wayfinder, it would still fetch obligatory fields from the resource, like the title, alias etc.
Maybe we’re just thinking of two different things now.
-
MODX Staff
- 12,272 Posts
That’s what’s coming as an example very soon Mark.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 3,141 Posts
Sorry - I’m too excited about this being possible.
-
☆ A M B ☆
- 2,475 Posts
Well spoken -- that’s more or less the idea I was trying to convey (albeit less eloquently).
-
MODX Staff
- 10,725 Posts
Actually, Property Sets are not exactly where this is going. Instead, we will see the introduction of ResourceElements — Elements attached directly to Resources. There will also be a way to define sets of Elements to automatically attach to the Resource. At that point, any localizable fields of content that are currently persisted on each Resource, will become an Element. IOW, all Content will become Element-based. Property’s are much simpler, light-weight constructs that provide further options for constructing reusable Elements.
IMO, the advanced rendering capabilities of Template Variables still make them a very useful, and differentiated construct, and one that allows easy extensibility of both input and output options for Template Variable content.
-
☆ A M B ☆
- 165 Posts
Liferay CMS has a very intuitive, scalable way to deal with this that i would love to see somehow implemented in MODx. Its the only feature i really miss from another CMS.
STRUCTURE -> TEMPLATE -> WEB CONTENT (RESOURCE)
Structures in Liferay are like Template 'templates' were you define raw abstract data structure using infinitely scalable, jerarchical xml-schema to define content types. Once you have a structure, you can associate a template with a structure meaning you can have multiple different templates using only one structure (think of it like resource with a predefined group of TVs organized in a jerarchical fashion if you want) They are still a resource, but with extended fields or TVs. There's an editor in the manager for creating structures on the go with repeatable fields, text, combo-box, boolean and all kind of field types like a TV. That way you're always only extending the 'core' resource type which they call web content instead of creating custom tables to handle content types like galleries, events, etc. They can be all the same as they are only extending the same core 'resource' type. Like subclasses of the Resource class.
If they inherit from the core Resource class, then the mayority of currents snippets can be used against. Let say using getRources to get a gallery list instead of a custom GalleryAlbums snippet.
This can make custom Resources Types easier to share for the community like galleries, events, surveys, polls.
I think this behavior really fits the MODx world.
[ed. note: lithiumlab last edited this post 14 years, 10 months ago.]