Hey there, I'm sure this is positive, but your tutorials nor the docs seem to have any explanation that jumps out at me.
Setting the scene:
I have a page object 'publisher' and a page object 'book'
In the CMS, I have a ComplexTableField in one of the 'publishers' tabs that shows all the books.
Now my problem.
I don't mind having a popup form for adding a new book or viewing/editing certain information, but what I would LOVE is a link in the list, that will redirect to the books page, so that I can view/edit more complex stuff like its one-many relationship with genres.
I would assume the link is something like admin/show/$ID.
I tried something like
$tablefield->setFieldFormatting(array(
'Edit' => '<a href=\"/admin/show/$ID">Go to</a>'
));
But it didnt work.
Any help is much appreciated.
Also - I know that I could organise the page objects in a hierarchy in the treeview, but there are going to be LOADS of books per publisher, and I would like to be able to use the complexfieldlist to sort/pageinate them per publisher.