-
I want to create a shortcode that accepts an alias, gets a content item by alias, and simply renders the shape. I can't seem to figure out how to do this. I've tried many variations of the following (note that for simplicity I have hard coded the alias):
No matter what I do, however, I don't get anything being rendered to the page. |
Beta Was this translation helpful? Give feedback.
Answered by
Skrypt
Mar 4, 2022
Replies: 1 comment 1 reply
-
https://docs.orchardcore.net/en/latest/docs/reference/modules/Alias/#liquid This should get you the ContentItem from the database with any alias you like. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
devlife
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://docs.orchardcore.net/en/latest/docs/reference/modules/Alias/#liquid
This should get you the ContentItem from the database with any alias you like.