Just for peoples reference, v4.1 will change the best way to launch a speech bubble, the new ClientTools class (which is available off BasePage) has a SpeechBubble method to call
@slace So that will break in 4.1? Or is it duplicate? I will not be to happy to have two versions of my packages that use a speechbubble. Allthough I have to do that anyway for version 5.
@richard - no it wont break anything (we try not to break anything on version releases. Note I said try :P), it just obsoletes the old method. Shannon is just trying to consolidate all the client API calls into a single API as it's a lot easier to maintain. Currently there's a lot of different ways to interact with the admin client model, and it's hard to maintain.
Adding a "saved" notification to a .net user cntrol
Hiya,
I've created my first userCtrl that programatically creates a user :-)
However, I notice that the "saved" notification doesn't appear in the bottom right hand side when I create and save the user:
u.addApplication("members");
u.Save();
YET, when I do it thru the standard Umbraco UI, ie click the "save" icon, then the notification appears.
Does nyone know why this would be? I go the code various articles, but I haven't managed to find the notification.
Many thanks,
yogi
Yogi -
It's difficult to tell your approach from the bit of code you provided, but the umbraco approach to this is via 'tasks.' You'd implement:
and then set your return value to True for the Save() Event - here's an example from Commerce for Umbraco:
Wow - the formatting in this RTE is always a surprise - second try:
Implement:
and the set your return to True for success:
Commerce for Umbraco source:
http://commerce4umbraco.codeplex.com/SourceControl/ListDownloadableCommits.aspx
One last tip - the notifications are called 'Speech Bubbles' in Umbraco-speak.
-Paul
Hi Yogi,
As Paul mentioned you can use the SpeechBbubble Method on the Basepage. I've wrote a blogpost with source about this a while back http://www.richardsoeteman.net/PermaLink,guid,03a7169e-7710-4775-b9a4-435dc5c4da11.aspx
Below the snippet to show the speechbubble
Hope this helps you,
Richard
Nice solution Richard...a bit more direct than my suggestion - which really only applies to a new Admin Section and related tasks.
Thumbs up for you!
-Paul
Just for peoples reference, v4.1 will change the best way to launch a speech bubble, the new ClientTools class (which is available off BasePage) has a SpeechBubble method to call
@paul thanks,
@slace So that will break in 4.1? Or is it duplicate? I will not be to happy to have two versions of my packages that use a speechbubble. Allthough I have to do that anyway for version 5.
@richard - no it wont break anything (we try not to break anything on version releases. Note I said try :P), it just obsoletes the old method. Shannon is just trying to consolidate all the client API calls into a single API as it's a lot easier to maintain. Currently there's a lot of different ways to interact with the admin client model, and it's hard to maintain.
hiya,
Thanks for all the replies folks.It certainly doesn't hurt for me to get an idea of how it works in this version.
yogi
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.