How would you create a custom access method to edit files?

How would you create a custom access method to edit files?

rmeetinrmeetin Posts: 81Questions: 20Answers: 0

Description of problem:

Normally when you wish to access/edit files/pages you select your form which loads datatables table view and then you either do a search or scroll through the list to find the page you wish to edit.

Let's say that we have a cause why we might want to shorten the hop and click a link which loads the the table and opens the popup editor directly with that file.

In administration in your main admin menu (accesses DTE and any/all admin forms) you want to set up a dropdown list with the last 5 modified pages. It might look something like:

<li><a href='webpages.php'>Webpages (the DTE table view)</a></li>
<li><a href='webpages.php?id=999'>About page</a></li>
<li><a href='webpages.php?id=888>Mission page</a></li>
<li><a href='webpages.php?id=777'>FAQ</a></li>
<li><a href='webpages.php?id=666>Home</a></li>
<li><a href='webpages.php?id=555'>BIO</a></li>

If you click on Webpages it will open the traditional table view. If you click on About it would (somehow) skip to open DTE popup editor with the ID for the About page.

Simpler for the admin, one hop less. How would you set this up?


  • allanallan Posts: 56,837Questions: 1Answers: 9,035 Site admin

    Good question - yes it is possible, but it requires a little thinking outside the box.

    Probably the most technically correct (but not easiest) way is to use a standalone Editor which gets populated with values when you select an item from the dropdown.

    An easier solution, might be to have a hidden DataTable which contains all of the data that can be edited, and as you select an item in the dropdown list, it would trigger editing on that row. That said, this method wouldn't be all that different from using DataTables / Editor as normal - the only difference if that you'd be selecting the item to edit from a <li> list rather than a DataTable.


This discussion has been closed.