@enochlamikanra, I understand what you’re trying to do. There are several different ways one might accomplish this, but the most “Bubbly” way to do it in my opinion (if you REALLY want the first item in the RG to act like an “add” button) is to create a “special” object that represents the “insert” option.
I’m assuming your RG is full of “Artikels”. So can add some sort of field to Artikel (a simple yes/no) that, if yes, means that this is the “special” Artikel that represents add a new product.
And you would then create a new Artikel that has this property set to yes and don’t ever create another. As an example, here’s a Thing called a Vehicle where I’ve added a field called “Default” (a yes/no that will indicate that this object is somehow special):
And then I create a Vehicle that has this property. It will be the only one that ever has that property set to “yes” (all other Vehicles have this property empty):
And now if I want to make the contents of a repeating group contain this special item at the top of the list, I could search for that item and then
:merge that with my “normal” search:
get the “special” Vehicle.
merge the non-special vehicles
And then visualized in a repeating group:
And then of course we can just have a workflow on click and current cell’s Vehicle’s
Default is “yes” that navigates to our “Add Vehicle” page.
NOW, obviously this changes a bit how you can do Searches, so this might not be incredibly desirable and so you might instead just give up on having a “placeholder” item and just put a button somewhere outside the RG:
There are other ways that we might accomplish this. Plugins, for example, can in fact create an “empty” Thing (and this is a weird feature of my Floppy plugin that I haven’t done a video on just yet) and you could do the same thing as I describe above, just without having to create a “special” item.
I also thought that the folks at @AirDev had posted an interesting approach to doing just what you’re trying to do, @enochlamikanra , but I can’t seem to find it now. (But they might have been suggesting exactly what I was suggesting above… I’m not sure and cannot recall, exactly.)