apptext icon indicating copy to clipboard operation
apptext copied to clipboard

Possible to link directly to a resource

Open vallieresc opened this issue 4 years ago • 6 comments

From the public app, is it possible to have an admin click a link that would redirect them directly to the resource item in question via the url similar to your API url? Like a pre-search where I pass in the ID. It would simplify resource management by the editors for large applications.

vallieresc avatar Nov 26 '20 15:11 vallieresc

We already have something like this. There is an admin route that accepts the content item ID, /content/{collectionId}/{contentItemKey}, for example https://demo.apptext.io/content/5f87078ff71b9010cd95d8da/There%20are%20n%20notes_plural. Only drawback is that you have to know the collectionId.

Perhaps we should also enable routes like /{appId}/{collectionName}/{contentItemKey} for the admin?

martijnboland avatar Nov 27 '20 08:11 martijnboland

@martijnboland Yes that would greatly simplify linking directly to a content item otherwise I'm not sure how easy it would be to find the collection id dynamically. I plan on having a collection for each page of the app since there will be many resource per page and too many would make it confusing to clients (editors).

vallieresc avatar Nov 30 '20 15:11 vallieresc

@martijnboland Have you created the proposed api route /{appId}/{collectionName}/{contentItemKey} ?

vallieresc avatar Mar 03 '21 20:03 vallieresc

Unfortunately not. I'll try and see if I can add it.

martijnboland avatar Mar 03 '21 21:03 martijnboland

A quick heads up on this: I started work on it, but it turned out a bit harder than I thought. Still on the radar though.

martijnboland avatar May 24 '21 10:05 martijnboland

That's great! I was able to make it work with your API. I inject the collection name and item key in icons beside each labels. It would still be great to have something integrated.

vallieresc avatar May 25 '21 13:05 vallieresc