MIGX.sortable resourcelist
Last updated Dec 7th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$287 per month—let's make that $500!
Learn moreIn this Tutorial we will learn how we can use MIGX to select a set of Resources from a given parent and sort the ouput-order.
Requirements¶
First off we will need to install MIGX by Package Management and do some basic configurations. Version required: 2.5.2 +
Create the Resourceoptions - chunk¶
- Create a new chunk
- name:
migx_resourceoptions
- content:
Change the parent to the ID where you want to get the resourcelist from
Create the Configuration for the MIGX-TV¶
- Go to: Components->MIGX->Tab: MIGX
- Create a new Configuration with 'add item'
- name:
migx_resourcelist
- name:
- Click 'Done' to save the new Configuration
- right-click on the new configuration and select 'import/export'
- copy/paste this code into the textarea:
Create the MIGX - TV¶
Create a new TV
- Tab: General Information
- name:
migx_resourcelist
- name:
- Tab: Input Options
- Input Type: migx
- Input Option Values:
@CHUNK migx_resourceoptions
- Configurations:
migx_resourcelist
- Tab: Template Access
- select the Template where you want to add this TV
Select and sort Resources¶
Now you should be able to select Resources and sort them by drag/drop them to a new position. You can also add additional infos, like a comment.
Get the Sorted and filtered Resourcelist at frontend¶
Add this snippet-tag to your template/resource-content:
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$287 per month—let's make that $500!
Learn more