문제

I'm struggling with a problem in Umbraco 7 that is when I attach a macro from a Partial View Macro file inside my richtext editor, it disappears from the editor, when I save the content. The content is displayed fine on the page, but when I save the content again, the macro also disappears from the webpage.

I don't have the problem if I insert a macro from a scripting file (placed in /macroScripts)

I've tried to search for a solution to this problem, but with no luck.

Hope some of you guys can help me out with this problem.

Cheers!

도움이 되었습니까?

해결책

So I just found out, that you cannot include a dash in your naming of the macro. Mine was "Support-form".

I changed it to "SupportForm" and now it works :D!

And apparently, as a guy wrote, this also happens with white-spaces and no only dashes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top