Is your page inheriting from the "umbraco.BasePages.UmbracoEnsuredPage" class? If not, then you should. It will add extra protection in the back-office, i.e. so no one can access the page anonymously.
Once you inherit from it, you can access the speechBubble like so:
umbraco speechBubble in custom section
Greetings
In a custom section I would like to make use of the umbraco speechBubble, where in this situation I need it to simply state Text saved.
I know if I wanted to make use of it in a macro I would simply make a reference to the basepage and then make use of the speechBubble as shown below:
((BasePage)Page).speechBubble(BasePage.speechBubbleIcon.info, "Text saved","");
However as I am in a custom section, my page is not a basepage.
Anyone got an idea on how to access the above code in a custom section?
With kind regards
Christoffer Andersen
Hi Christoffer,
Is your page inheriting from the "umbraco.BasePages.UmbracoEnsuredPage" class? If not, then you should. It will add extra protection in the back-office, i.e. so no one can access the page anonymously.
Once you inherit from it, you can access the speechBubble like so:
(This is a snippet from my Robots.txt Editor code - make use of the language/dictionary keys)
Cheers, Lee.
Hey referencing to UmbracoEnsuredPage did the trick, thank you for the help Lee
Kindly
Christoffer
is working on a reply...