Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Creating & Repurposing Content
  •  
  • Manage a MySQL Table#

  • 37477
    3

    similicious Reply #1, 6 months, 4 weeks ago

    Reply
    • Link to this post#1
    Hello there!

    I am trying to build a tiny shop. It should be just a table with fields like item number, description, price and so on.

    For this i want to set up a MySQL table. I want to fill the data from the Modx Manager.
    You could say I want a lite phpMyAdmin for a single table inside of the manager.

    Is there an extra doing this?

    If you have another idea, how to realize my project without having a mass of unsorted data in the end (like I would, if I put the whole data in one html table), please let me know.

    I'm using MODX Revolution 2.1.3-pl (traditional).

    Thank you for your help,
    Simon!
    Edited 6 months, 4 weeks ago by similicious


  • 1343
    1,447
    Patrick | Co-Founder & Director of Hosting
    SkyToaster, A MODX Professional Partner
    About Me: Website | Tweets |  MODX Templates

    AMDbuilder Reply #2, 6 months, 4 weeks ago

    Reply
    • Link to this post#2
    What version of MODX are you using?


  • 37477
    3

    similicious Reply #3, 6 months, 4 weeks ago

    Reply
    • Link to this post#3
    Quote from: AMDbuilder at Oct 26, 2011, 04:03 PM
    What version of MODX are you using?

    I'm using MODX Revolution 2.1.3-pl (traditional).


  • 1778
    604

    anso Reply #4, 6 months, 4 weeks ago

    Reply
    • Link to this post#4
    Hello
    Have a look at http://rtfm.modx.com/display/revolution20/Developing+an+Extra+in+MODX+Revolution
    and http://rtfm.modx.com/display/revolution20/Using+Custom+Database+Tables+in+your+3rd+Party+Components
    it should be useful to achieve your goals
    Cheers


  • 3749
    11,692
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!

    MODx info for everyone: http://bobsguides.com/MODx.html

    BobRay Reply #5, 6 months, 4 weeks ago

    Reply
    • Link to this post#5
    This might help also: http://bobsguides.com/custom-db-tables.html. In this version, you create the table in PhpMyAdmin then run the tools to create the schema and class files. It's sometimes easier to do it that way if you just have a single table.


  • 1778
    604

    anso Reply #6, 6 months, 4 weeks ago

    Reply
    • Link to this post#6
    Hello,
    Note that It's pretty easy to reverse engineer database by the Bob's way, BUT this way does NOT create the relationships between tables if you have some...You wiil have to create them manually once the xml schema and class files are created


  • 37477
    3

    similicious Reply #7, 6 months, 3 weeks ago

    Reply
    • Link to this post#7
    Thank you for you'r advices.

    I now decided to build a dedicated php script for this purpose, since there's not enaugh time left.

    But I think your tips and ideas will help me in the future.

    Thank you guys!


  • 3749
    11,692
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!

    MODx info for everyone: http://bobsguides.com/MODx.html

    BobRay Reply #8, 6 months, 3 weeks ago

    Reply
    • Link to this post#8
    FYI, you can also use straight PDO to interact with your table.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
AMDbuilder, BobRay, anso, similicious

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy