Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I was wondering about how I would go about creating a Macro where the user would be able to select an image of their choice along with text that would be a hyperlink to a page on the site? I'm quite new to this so would greatly appreciate any help!
Thank you very much,
David
Hi David!
You could use some parameters on you macro, did you read the documentation? https://our.umbraco.com/documentation/Reference/Templating/Macros/
Just create a macro and add parameters for the things that you want you editors to pick, like image, text and link.
Then in your view you can get the values of the parameters something like this:
@Model.MacroParameters["myAlias"]
Hope this points you in the right direction.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Creating a Macro that uses a hyperlink image and text
Hi all,
I was wondering about how I would go about creating a Macro where the user would be able to select an image of their choice along with text that would be a hyperlink to a page on the site? I'm quite new to this so would greatly appreciate any help!
Thank you very much,
David
Hi David!
You could use some parameters on you macro, did you read the documentation? https://our.umbraco.com/documentation/Reference/Templating/Macros/
Just create a macro and add parameters for the things that you want you editors to pick, like image, text and link.
Then in your view you can get the values of the parameters something like this:
Hope this points you in the right direction.
is working on a reply...