HI,
Can any one provide information on how to extend default fileds of modx content table (modx_site_content) and acces the extra fields just as present fields..
I don’t want to extend it through Template Variables(TV), as almost all of my documents will have at least 5 fields each . so this will create a lot of rows in the TV table..
can any one suggest some trick or hack to accomplish this.
thanks
-
☆ A M B ☆
- 24,524 Posts
No matter how you cut it, it’s going to put something in the database. TVs is the way to do what you are asking.
If you are adding extra fields into the site content table:
* go into phpmyadmin and add the needed fields
* create a custom snippet that pulls the data and prints those fields
* you will also need some sort of input area to populate the fields
-
☆ A M B ☆
- 24,524 Posts
Web login is not part of the MODx manager, nor is it part of the core. It’s a snippet, and all it does is create a new table for the extended attributes. It still uses the original web_users table as its base.
Modifying the site_content table and the document management pages, on the other hand, will involve hacking core tables and scripts.
What you want to do could be accomplished with a plugin without hacking the core scripts or tables. But don’t forget that in either case any front-end document editing or management scripts (NewsPublisher, QuickEdit) would not know about this.