You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a link within a paragraph block you can search and choose from a list of existing Posts (eg: entities - including Pages).
However, once you've added this link the relationship to the original Post entity is not preserved.
Screen.Capture.on.2021-05-27.at.16-35-48.mov
You can try this by:
adding a link to a Post you've created.
click away onto another block.
clicking back on the link you just created.
You will see it's "type" is URL and there is no information preserved about the Post you originally link to.
What is your proposed solution?
In the Navigation block we preserve the relationship to the entity so that once the link is added it contains some metadata which link it back to it's original entity. That way we should be able to display the link as type Page or Post or whatever and in future we should be able to pull through additional metadata to display in the Link UI.
The text was updated successfully, but these errors were encountered:
Interestingly it looks like the format library does in fact preserve both the link type (ie: post type) and entity id if provided. However we don't really make use of them.
Wondering if it's worth it going a step further like having a data-wp-postid attribute on internal links. Another reason is that the url_to_postid()(PHP) function is bad, slow, hacky, etc. :) Having a good, reliable way to avoid it would be pretty nice.
What problem does this address?
When adding a link within a paragraph block you can search and choose from a list of existing Posts (eg: entities - including Pages).
However, once you've added this link the relationship to the original Post entity is not preserved.
Screen.Capture.on.2021-05-27.at.16-35-48.mov
You can try this by:
URL
and there is no information preserved about the Post you originally link to.What is your proposed solution?
In the Navigation block we preserve the relationship to the entity so that once the link is added it contains some metadata which link it back to it's original entity. That way we should be able to display the link as type
Page
orPost
or whatever and in future we should be able to pull through additional metadata to display in the Link UI.The text was updated successfully, but these errors were encountered: