Application with different views

We’ve used the AppWithinMinutes to create a simple app that has 20 various fields. We would like to have 10 of those fields display when regular users click “Add New Entry”, while all 20 fields are available for admins. I’ve accomplished this by adding some $hasAdmin checks to the sheet.
This works, but it does get overwritten if we ever modify the app fields using the wizard.

I’m curious if there’s a way that we can create a page that has a {{livedata}} that displays the entries from the App, but when users click on an item only 2 fields are displayed… not based on user rights, just a different view. This “feels” like a new template or sheet, but I couldnt figure out how to make the {{livedata}} links go to any other page than the original (which shows everything).

Any guidance would be appreciated as we wrap our heads around how xwiki handles data!

You need a sheet. See https://extensions.xwiki.org/xwiki/bin/view/Extension/Sheet+Module . The sheet to apply can be specified from the URL.

You probably need a custom live data source. Now, since ATM live data sources are reusing the (old) live table result pages, it means you can achieve this with a custom live table results page that you can then use as a live data source. See for instance https://extensions.xwiki.org/xwiki/bin/view/Extension/Livetable+Macro#HModifythedefaultJSON .