Macros -> Blocklist v14
t
I am in the process of migrating some old umbraco sites to a new instance that is running version 14 which no longer supports macros. From what i've read, blocks/blocklists are the replacement for macros (specifically ones embedded in RTE's). If anyone could point me towards documentation or guides as to how to recreate similar functionality that mimics how macros usable in RTE's worked in previous versions in v14 i'd appreciate it.
h
What sort of things do your macros do?
t
Render images with captions
Had a simple macro where you could select an image via mediapicker/cropper and type some text in a textbox. Then it just rendered out like
Copy code
<img src={imageFromMacroURL} class="somecustomstyle"> <h2>CaptionTextHere</h2>
m
Hi @Treefiddy this is from memory so here goes 😅 You could create a element doc type with a media picker and a text box. You can then on the Rich text data type add that block to the allowed blocks list
What I can't remember is the path you need to put the view..
t
I def read something about putting it in like app_plugins/views
similar to how you can tweak how things display in the backoffice
I read that in the documentation I was just kinda hoping there would be a simpler way to write it up within the backoffice
instead of having to push and deploy
m
For sure won't go in App_Plugins it will be in the views folder partials then am not sure
22 Views