Sort components in parsys | Community
Skip to main content
August 19, 2016
Solved

Sort components in parsys

  • August 19, 2016
  • 1 reply
  • 1094 views

Hello everyone

I was wondering if there is a standard way of having the components inside of the parsys sorted in some kind of way (preferably by creation date), or if anyone has some pointers on where to start looking into this, without having to change the parsys itself quite a lot (this is because I don't want to mess anything up in case there is a new version of AEM where the parsys might change).

Kind regards

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Tyler_Maynard

Interesting.

The parsys wasn't made with this in mind because the idea is to give the Authors the flexibility to move around the resources inside via a visual GUI.

The need sounds like you are creating pages and or other resources that you want displayed in a list. I can think of like blog posts or something like that.

I would suggest creating a component that has some back end functionality that will build out a list of the resources you are trying to display and then feed them in whatever shape or form you are trying to display them at to the front end component. Separate out the logic to collect the content/resources from the display of the content/resources. This is all assuming its a specific type of resource that is being placed into the parsys/container and not just any component the author has access to.

1 reply

Tyler_Maynard
Tyler_MaynardAccepted solution
August 19, 2016

Interesting.

The parsys wasn't made with this in mind because the idea is to give the Authors the flexibility to move around the resources inside via a visual GUI.

The need sounds like you are creating pages and or other resources that you want displayed in a list. I can think of like blog posts or something like that.

I would suggest creating a component that has some back end functionality that will build out a list of the resources you are trying to display and then feed them in whatever shape or form you are trying to display them at to the front end component. Separate out the logic to collect the content/resources from the display of the content/resources. This is all assuming its a specific type of resource that is being placed into the parsys/container and not just any component the author has access to.