on 2024 Apr 24 8:36 AM
Hi,
We are using stories with optimized design experience. We want to set them in Embed mode. We did that in
Unfortunately, when we apply and save the story, the embed parameter is reset to view and story is launched in view mode.
Have I missed something ?
Thanks in advance
Mat
Request clarification before answering.
Hi anthonysc,
I believe the screenshot you show is for you to set the toolbar in different mode, it's not setting the story to be opened in embed mode by default. To open story in embed mode, you either can put embed keyword into URL or open the story in embed mode via script.
Best regards, William
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi William,
It doesn't work.
Here is the original url :
Https://xxxxxxxxxxxxxxxxxxx/story2&/s2/F1688E05A19DBEA8166F710B4AB88BB4/?mode=view
If I replace ?mode=view by ?mode=embed the system overwrites it and the url remains Https://xxxxxxxxxxxxxxxxxxx/story2&/s2/F1688E05A19DBEA8166F710B4AB88BB4/?mode=view.
If I replace ?mode=view by ?shellMode=embed the system overwrites it and the url becomes Https://xxxxxxxxxxxxxxxxxxxxxstory2&/s2/F1688E05A19DBEA8166F710B4AB88BB4/?shellmode=embed&mode=view
Best regards
Hi William, you are right it works if I put shellMode before S2 instruction :
https://xxxxxxxxxxxxxxxx/app.html#/story2?shellMode=embed&/s2/storyID
thanks
Dear @anthonysc,
you can use script in the onInit() function of your story to reload it in mode embed
if (Application.getMode() !== ApplicationMode.Embed){
NavigationUtils.openApplication(Application.getInfo().id, UrlParameter.create("mode", "embed"), false);
}
I hope this helps.
Best regards
Susanne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@anthonysc did you set the parameter as described in the SAP Help portal?
Display Parameters
@Susanne_Helbig So it is not possible to set the default mode to embed without loading twice or changing url parameters?
I want that the users can only open the story in embed mode by clicking on Recent Stories in SAC Home Screen. It should be a adjustable feature.
Hi @Alex_B,
as already mentioned by William, to open story in embed mode, you either can put embed keyword into URL or open the story in embed mode via script.
If you want to open the story via the "Recent Stories" section, I guess the only way is to use the mentioned code in the onInit function, but this will result in loading the story twice.
I'm not from SAC development, so please excuse my question:
did you try out the present mode?
Would this mode fit to your needs?
Best regards
Susanne
Ok thanks. Present mode is something completely different and no option for me. In my opinion the Embed mode should the standard mode in SAC. The view mode with toolbar and filters only adjustable for specific users, so the present mode.
User | Count |
---|---|
33 | |
22 | |
17 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.