-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Umbraco Flavored Markdown to handle block grid expression in a block list/grid and extract expressions from data source #2345
Conversation
@IbrahimMNada Thank you for your PR, I'll review it and feedback in due course. 🙏 In the meantime, since Umbraco 14.3, there is a content-name UFM component that may provide what you need, try The idea of that specific component is to take a unique ID (or array list) and query the document (or media or member) repositories, then concatenate the names together by comma. This should work for the Content/Document Picker and Multi-URL Picker property-editors. |
Thank you for your response, this could help by giving full control over the label. if you want to expand it on more than grid list |
this feature was requested here as well , just for you to know |
Hi @IbrahimMNada, thank you again for the time and effort you've put into this pull request. 🙏 While I do understand the reasoning to use JavaScript syntax style to traverse down into the property data, this may lead implementors believing that other JavaScript expressions may be evaluated too; (e.g. as seen in the linked forum post example, Support for an JavaScript With that said, I have chatted with several people in the community who are wanting to do similar with UFM as you've offered here. Have you considered making an Umbraco package for this? It would also qualify as a Hacktoberfest contribution. I hope this isn't too disheartening, I'd encourage you to pursue the package creation path. I could see it becoming popular. |
No this is not the case I do not use I don't know man you can check the function |
@IbrahimMNada Sorry, I know the code here isn't using My point is that if we offer support for syntax like I still think this could be the basis for an awesome package. |
Thanks brother , no worries ! |
hello , check out this new package :https://marketplace.umbraco.com/package/umbblocklist.dyanmiclabels The (Dynamic Block List Labeling package) for Umbraco enhances the default block list by enabling dynamic, customizable labels. Instead of using static, predefined labels for block list items, you can now define labels that dynamically adapt based on the content of each block. This is especially useful for identifying and managing multiple entries in your block list, providing a more streamlined and user-friendly experience. |
@IbrahimMNada Super, thanks for the update! 🚀 |
Description
When Creating a block list that contains url picker at the block list label, it shows only the document type alias.
which is not very helpful like this :.
so using Umbraco Flavored Markdown I have developed a new markdown that enable us to see what ever expression we put inside of a block list label:
Types of changes
Motivation and context
When Creating a block list that contains url picker at the block list label, it shows only the document type alias.
which is not very helpful.
How to test?
Go to the list configuration at the label section add
{@<url-picker-alias>[<target-index>].<prop-alias>}
exmaple :{@mainNavigation[0].name}
Screenshots (if appropriate)
Checklist