Hi, I want to add custom content to my custom tab for resources (I need to add there list of entries in my own db table - making a catalog). What’s the best way? Is it custom modResource? If yes is there somewhere manual how to create custom resource class?
Please advice. It’s quite important for me. Thanks!
on the front end, you can easily do that with snippets (and, maybe custom TVs too)
but if you want to be able to feed those extra tables from MODx manager, in think the best way will be through custom manager pages.
have swing
réfléchir avant d'agir
That’s what I don’t want. I thought it wouldn’t be such a problem to include it in resource tree.
Front end is no problem.
hi,
i think i haven’t understood exactly what you’re looking for... is it simply that you have pages you manage outside MODx and you just want to add them to the page tree ?
Have swing
réfléchir avant d'agir
OK, let me clarify that.
When you’re creating modx resource you have there four tabs: Create/Edit documents, Page settings, Template variables and Access Permissions
I want to create custom resource where would be fifth tab "My Tab". This tab would contain (only) a table with list of catalog items get from db.
I hope it’s clear now. I think custom resource could handle this but I haven’t found manual or example how to create one.
Adding the tab is easy with Form Customization.
http://rtfm.modx.com/display/revolution20/New+Tab
You’d have to use a plugin to add your own content to it. I’m not sure how you’d put content on a particular tab, but I’m pretty sure it can be done.
http://rtfm.modx.com//display/revolution20/Adding+Custom+Fields+to+Manager+Forms