Hi,
The type 'relation' editable region, as we know, shows all the pages to choose from in a single list (or dropdown).
Normally that is fine but it can be a bit unwieldy to work with if the number of pages is large.
@orbital contacted me a few days back with this problem. - one of his templates had nearly 40,000 cloned pages and, not surprisingly, it was nearly impossible for the user to choose specific pages from a list that large.
As a solution, I made some changes to the existing 'relation' type adding a new way of selecting pages.
It requires only adding a new parameter to any existing relation field as follows -
After visiting the template as super-admin for the change to persist, you'll find that the relation field now displays the pages in a popup window that has pagination, folders and search to make it easier to work with any number of pages.
Here is @orbital testing things out with nearly 20,000 pages (he has a very large number of folders as well so perhaps that would require some tweaking too )-
If someone wishes to try it out, please download and use the latest version of Couch found at GitHub (https://github.com/CouchCMS/CouchCMS),
Do share your feedback.
Thanks.
The type 'relation' editable region, as we know, shows all the pages to choose from in a single list (or dropdown).
Normally that is fine but it can be a bit unwieldy to work with if the number of pages is large.
@orbital contacted me a few days back with this problem. - one of his templates had nearly 40,000 cloned pages and, not surprisingly, it was nearly impossible for the user to choose specific pages from a list that large.
As a solution, I made some changes to the existing 'relation' type adding a new way of selecting pages.
It requires only adding a new parameter to any existing relation field as follows -
<cms:editable
name='test_rel'
type='relation'
masterpage='movies.php'
advanced_gui='1'
/>
After visiting the template as super-admin for the change to persist, you'll find that the relation field now displays the pages in a popup window that has pagination, folders and search to make it easier to work with any number of pages.
Here is @orbital testing things out with nearly 20,000 pages (he has a very large number of folders as well so perhaps that would require some tweaking too )-
If someone wishes to try it out, please download and use the latest version of Couch found at GitHub (https://github.com/CouchCMS/CouchCMS),
Do share your feedback.
Thanks.