We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Hi

    I am trying to create a 'random fact' section on my site. I am sure I saw a post a few years back regarding something similar. Basically the facts would be stored on a page and called to a placeholder on my homepage. I would like it to change each day. Can anyone point me in the right direction please (i.e, best add-on etc)
    Thank you
    DS
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 38783
      • 571 Posts
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 4172
        • 5,888 Posts
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 7527
          • 437 Posts
          Thanks andytough, its the sort of thing I am looking for, but I would rather all quotes be on on resource and pull one from there as I may have up to 100 quotes, and I don't want to have to create a separate resource for each one. Bruno17 I have had great results with MIGX so far, with the link mentioned, will the quotes all be drawn from a single ID, rather than multiple ones?

          Regards,
          DS
            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk
            • 4172
            • 5,888 Posts
            yes, they are all stored in a MIGX-TV of one resource.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 7527
              • 437 Posts
              Sounds perfect Bruno, I will give it a whirl and see how I get on...thank you
                www.PawsForWildlife.co.uk
                www.Borntobrick.co.uk
                • 7527
                • 437 Posts
                In that linked post is a snippet code (getDayliMIGXrecord). How can I upload the php script as everything is done through the package management now?

                I want to create a list of say 100 facts (1-2 lines each) and have MIGX randomly display them each day as a text output. What would I need to put in the formtabs as I am still a little unsure? Thank you for any help
                  www.PawsForWildlife.co.uk
                  www.Borntobrick.co.uk
                  • 4172
                  • 5,888 Posts
                  the snippet should be included with the MIGX-package.

                  within the formtabs you will need the field

                  {"field","text","caption":"Fact Text","inputTVtype":"textarea"}
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 7527
                    • 437 Posts
                    A little lost on this one. I have set up aTV with input option as MIGX and output option as text. I have the follow in the form tabs:

                    {"field","text","caption":"Fact Text","inputTVtype":"textarea"}


                    I want the facts to appear on the homepage so I changed the template access to that one ID. When I got on the homepage the TV is there but I cannot enter any values. I tried to add:

                    [
                    {"header": "Title", "width": "50", "sortable": "true", "dataIndex": "title"},
                    {"header": "Url", "width": "50", "sortable": "true", "dataIndex": "url"},
                    {"header": "Date", "width": "50", "sortable": "true", "dataIndex": "activedate"}
                    ]


                    into the grid columns in case that was the problem, but I still cannot enter any values into the TV?
                      www.PawsForWildlife.co.uk
                      www.Borntobrick.co.uk
                      • 7527
                      • 437 Posts
                      Would I just use a simple grid column like the example:

                      [
                      {"header": "Fact", "width": "160", "sortable": "true", "dataIndex": "text"},
                      ]


                      To recap, I was advised to put this in the form tab:
                      {"field","text","caption":"Fact Text","inputTVtype":"textarea"}
                        www.PawsForWildlife.co.uk
                        www.Borntobrick.co.uk