When i update a portal widget, the change is not reflected in the page on the portal.Why? Am i missing something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2017 05:27 PM
I have the HTML TEMPLATE of the widget as follows:
<div>
<!--<div class="panel panel-default"> -->
<!-- <div class="panel-heading"> -->
<h4 style="margin-top: 0; margin-bottom: 0">
<span ng-if="::data.glyph" class="fa-stack">
<i class="fa fa-circle text-{{::data.color}} fa-stack-2x"></i>
<i class="fa fa-{{::data.glyph}} fa-stack-1x fa-inverse"></i>
</span>
<p class="title">{{::data.title}}</p>
</h4>
<div>{{::data.short_description}}</div>
<!-- </div> -->
<div class="list-group">
<span class="list-group-item no-border" ng-repeat="item in ::data.items">
<i ng-if="::item.glyph" class="fa fa-{{::item.glyph}} m-r-sm"></i>
<i ng-if="::!item.glyph" class="fa fa-chevron-right m-r-sm"></i>
<span><a href="{{::item.href}}" ng-if="item.label != '35 Stirling Highway Perth <br/>WA 6009 Australia' && item.label != '(+61) 8 6488 6000'">{{::item.label}}</a>
<span class="footer-span" href="{{::item.href}}" ng-if="item.label == '35 Stirling Highway Perth <br/>WA 6009 Australia' || item.label == '(+61) 8 6488 6000'" ng-bind-html="item.label"></span>
</span>
</span>
</div>
</div>
When I try and change '35 Stirling Highway' to something else, it is not reflected on the portal page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2017 06:24 PM
Hmm,
The function looks like $sp.getMenuItems(portal_id), so you're probably calling it correctly.
It is meant to return the items that are located in the "Main Menu" area:
This main menu contains a list of items within it:
If you are familiar with F12 developer tools, you can log the "data" item into your JavaScript console, by using the `Ctrl + Right-Click` menu, and then "Log to console: $scope.data". This will let you see what data is being retrieved by your server script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2017 06:28 PM
Thanks Domenic...resolved...appreciate your help...its a newby issue...me in this case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2017 08:41 PM
All good Shaun, that's why we're here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2017 06:19 PM
Thanks guys, it was the menu items that needed to be updated. The menu item associated with the widget instance.