Hi, trying to build some custom pages to edit content in modx.
How do i make intelligent custom functionality with modx?
As i am used to asp-programming i used to put intelligence in the asp-code on the page that then rendered the output to build the page returned to the browser. I was in full control of the output.
In modx it seems to be the other way around as you call chunck and snippets back and forth with limited intelligance between them, and i dont understand how to "get it smart"...
For example:
I have installed and are using the getResources-snippet that returns a list of resources by calling a chunk one by one. How can i add intelligance so i can analyze and render the output depending on the other resources in the list?
Example 1, i would like to add a moveup/movedown button on each listed resource; to do that i need to know the previous and next resource id in the list, how?
Example 2, i would like to number the list of resources from 1 to x just as they are listed. How can i keep a variable alive between the chunk that getResources are calling without using a session-variable?
Maybe its so that i shouldnt use modx for custom solutions, but build the site entierly custom from scratch? I want a custom interface (controlpanel) for my users to update their content becauce i think the manager is to complicated for them.
Any thoughts?
thx
[ed. note: johnjohn22 last edited this post 14 years ago.]