We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2396
    • 101 Posts
    Hello,

    Can anyone say if it is possible to add multiple pages (resources) more or less ’automatically’ and using one template, to the doc tree at once?

    Basically, each page will contain a single JPG and have pagination in the template to navigate previous/next, (like a no-frills html book). This action may need to be done multiple times (for multiple ’books’) so would ideally be automated. I’d like to be able to add around 30 pages this way.

    If it isn’t possible from the Evo back-end would doing it straight through MySQL be a viable alternative?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36404
        • 307 Posts
        hi,

        honestly if your ressource are just expected to contain an image, yes, it would be a far better alternative to use a custom db table to store their names and use a snippet to fetch and display them...

        a simple module will do the trick and be far simpler too for your client (or you smiley) to put things online

        have swing
          réfléchir avant d'agir
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I’ve often used Jot for this sort of thing as well. I have an extension I’ve called Notes that adds a field for "categories", so the Jot display can be controlled by specifying a comma-delimited list of categories, and also a field for ordering, which I used in an AJAX-driven drag-and-drop ordering feature. Other than that, it works exactly as Jot does; nothing was changed except to add the two features.

          The zip file contains a how-to text on setting up the drag-and-drop ordering javascript, as well as how to add the standard MODx image browser to insert images.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 2396
            • 101 Posts
            Wow, amazing, every MODx project I do I find more and more incredible add-ons. Thanks for your help sottwell and virtualgadjo. I used the SuperPage module - so incredibly easy. Although I am concerned about my own inability to find these in the repository, has anyone thought about a tagging system? I was searching for things like ’multiple’ and there isn’t anything in the description.