Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Preview doesn't work if requesting node by guid instead of id #103

Open
bjarnef opened this issue Oct 12, 2018 · 0 comments
Open

Preview doesn't work if requesting node by guid instead of id #103

bjarnef opened this issue Oct 12, 2018 · 0 comments

Comments

@bjarnef
Copy link
Contributor

bjarnef commented Oct 12, 2018

In Umbraco backoffice a node can be requested by its id and guid.
But it seems LeBlender preview of editors only works when requesting the node by id.

E.g.
/umbraco#/content/content/edit/1234
/umbraco#/content/content/edit/763898f5-a3ca-401d-b54b-172f21e77d2f

When requesting the node by id the preview works, but it fails for the guid version, where GetValue() throw exceptions.

image

The variable item (Lecoati.LeBlender.Extension.Models.LeBlenderPropertyModel) is populated with the properties (Lecoati.LeBlender.Extension.Models.LeBlenderPropertyModel).

I guess the issue is that LeBlender only lookup the node by its id and not handle the lookup from guid.

return umbraco.TypedContent(HttpContext.Current.Request["id"]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant