kontent-ai / sample-app-react

Sample React SPA utilizing the Kontent.ai Delivery API to fetch content.
https://kontent-sample-app-react.netlify.app/
MIT License
51 stars 73 forks source link

Add Preview Edit Links #81

Open petrsvihlik opened 6 years ago

petrsvihlik commented 6 years ago

Kentico Kontent admin UI now supports navigating to specific content items via URLs in a certain format.

The goal of this task is to enrich the markup of this sample application with the links.

Suggested approach:

Blocked by: https://github.com/Kentico/kontent-delivery-sdk-js/issues/52

Motivation

We want to present to our customers an example of this feature – how they can use that

Solution

When I open About Us preview Then I see enabled "Edit mode" in the fixed bar on the bottom of the page And I am able to click on each element from the page About Us

When I open About Us preview Then I see the link "Open in KC" in the fixed bar on the bottom of the page And I am able to click on it

When I click on toggle button Edit mode Then Edit mode is turned off And I am able to preview page without distraction - only the fixed bar is presented

Design notes

leniquenoralez commented 6 years ago

I can work on this.

Simply007 commented 6 years ago

Hello @leniquenoralez, I've just sent you an invitation to the project. If you accept it, I'll be able to assign the issue to you.

Currently there is no support for generating links in javascript SDK (https://github.com/Enngage/kentico-cloud-js/issues/29), so it is required to implement the Preview edit links generation in an application.

It would be great to implement this functionality similarily as it is in content management SDK for .net: https://github.com/Kentico/content-management-sdk-net/pull/8/files (EditLinkBuilder class) to be able to use the code in the SDK in the future.

There is the documentation fot the preview edit links. https://developer.kenticocloud.com/docs/implementing-a-preview-edit-button

If you have any questions, feel free to ask!

petrsvihlik commented 6 years ago

unassigning due to inactivity

web20opensource commented 5 years ago

HI, is this project still alive ?

petrsvihlik commented 5 years ago

Hey @web20opensource , absolutely. This sample project is being updated along with releases of new features in Kentico Cloud.

PetrSvirak commented 3 years ago

Please, note Kentico/kontent-sample-app-net#130

Manishgupta200 commented 3 years ago

I would like to work on it. Please assign it to me