Umbraco Forms Magic Strings
g
https://docs.umbraco.com/umbraco-forms/developer/extending/adding-a-magic-string-format-function on this page on the docs... how do I find the "FormsParsedPlaceholderFormatters" collection? public static IUmbracoBuilder AddCustomProviders(this IUmbracoBuilder builder) { builder.FormsParsedPlaceholderFormatters() .Add(); return builder; } I can't qualify the reference for it.
Umbraco 10.6.1 Forms 10.5.0
s
#1127946593786675331 next time please 🙂
using Umbraco.Forms.Core.Providers.Extensions;
should do the tirck
g
ah sorry. I don't have that namespace in the versions I'm running and the docs are on v10.latest (LTS)
s
I am assuming you have more than one project in your solution? Add https://www.nuget.org/packages/Umbraco.Forms.Core.Providers to your project
g
I've just found that too, I'm installing it now. Thanks @Sebastiaan
s
Resharper and/or Rider are brilliant to help you with this next time 😉
g
I'm not sure if it's worth adding that onto the docs ? just to make sure it's explicit
s
Yes!
g
will edit and submit pr
s
You're the best! 🏅
g
6 Views