I’m creating a site in ModX that’s going to be edited by very basic users. What I would like is for them to have some default content presented to them automatically when they create a new resource -- e.g., an unordered list, a table, a header, et cetera, so that they’ll have a starting point that’ll hopefully help them keep with the style of the site.
Is it possible to install default resource content for users?
It would take a plugin, but a fairly simple one. What version of MODX?
That would work too, but using a plugin to change the actual content field would make it easier to use a standard template for the page, search, and use getResources for show selected pages.
With your method, you’d probably also want to customize the Create/Edit Resource panel.
OTOH, I’ve been playing around and the plugin is not as easy as I thought. I forgot that $resource is not available for new documents, which would have made it dead easy. I’m sure there’s a way to alter the content field of new docs, but nothing I tried worked.
Hm. I can see some of the merit of each suggestion, but as I’m brand new to ModX, I’ll have to do some major research on what you’re talking about. Any chance you’d be able to break it down further for a noobie?
If it helps, I’m working with v1.0.4 on this particular site.
You could use the TV method described above and (optionally) hide the main content field with ManagerManager.
If you create the TV as described in the post above and attach it to the template used by a resource, the TV will show up automatically when you edit the resource.