We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9099
    • 26 Posts
    I’m planning a page for a record label. My first thought was to create a database and then query it with modX. But after reading some post in the forum I’m not sure if I can make the same with TVs. I’ve four tables in the db artist(Name, description, photo) records (number, name, artist, date) songs (recordnumber, title, mp3) and dates(artist, date, location). My question is what will be the best way to this.
      • 25663 MODX Staff
      • 12,272 Posts
      How many artists/albums do you have?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 9099
        • 26 Posts
        At the time there are circa 200 records and 40 artists.
          • 25663 MODX Staff
          • 12,272 Posts
          That should be an entirely doable project using Ditto and some TVs. I’d say go for it, as it’s a great way to further learn the system. Others may disagree, so take my advice with a grain of salt. wink
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 33372
            • 1,611 Posts
            In real world applications I’ve done sites with over 3000 documents and numerous TVs with no noticeable performance hit at all, so I definitely agree that this would be straightforward and easy-to-manage using TVs.
              "Things are not what they appear to be; nor are they otherwise." - Buddha

              "Well, gee, Buddha - that wasn't very helpful..." - ZAP

              Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
              • 9099
              • 26 Posts
              Ok, could you give me some hints how to organize the data. My thought is to have an artist page (with the artist infos) as folder where all records and dates from the artist are placed. But how to I organize the songs? As TVs in the record or as single pages in an record folder?
                • 25663 MODX Staff
                • 12,272 Posts
                I would use the following structure:

                Artist
                Album (with a variety of TVs for "meta data" including date)
                Songs (maybe a TV, maybe content... but a big list in a single field)

                You’d likely need to use Hyperflex Search in order to be able to search in TVs.
                  Ryan Thrash, MODX Co-Founder
                  Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                  • 11975
                  • 2,542 Posts
                  Hi,

                  Ryan Hyperflex does not seems to look through TVs value

                  Here is the table list used in HF
                  	$tbl_cnt = $modx->getFullTableName("site_content");
                  	$tbl_dgp = $modx->getFullTableName("document_groups");
                  	$tbl_dgn = $modx->getFullTableName("documentgroup_names");
                  	$tbl_wga = $modx->getFullTableName("webgroup_access");
                  	$tbl_wgn = $modx->getFullTableName("webgroup_names");
                  	$tbl_tpl = $modx->getFullTableName("site_templates");
                  


                  site_tmplvar_contentvalues is missing

                  :-)
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 25663 MODX Staff
                    • 12,272 Posts
                    Well then why haven’t you fixed that yet (in Ajax Search, btw)? tongue
                      Ryan Thrash, MODX Co-Founder
                      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
                      • 34017
                      • 898 Posts
                      I did something like this with a modified ppp. (The administrator adds unique items).

                      I use the ppp list function instead of ditto. Then I modified HyperFlexsearch to use 2 new parameters, tableToSearch and chunktoShow. So I tell hyperflex to search my ppp table and use my ppp-list chunk to show the results. It took a few weeks but it is working pretty well. I did this when I learned Hyperflex doesn’t search TV’s.

                      Chuck
                        Chuck the Trukk
                        ProWebscape.com :: Nashville-WebDesign.com
                        - - - - - - - -
                        What are TV's? Here's some info below.
                        http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
                        http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008