Catalog items not showing public on Portal

esebasti
Tera Guru

Hi all, just wondering if anyone has run into this.  I am making the service catalog public in the Service Portal and I have made the sc_category page including the widgets.  Everything seems to work great when accessing it public except when you click on the request some thing I get the loading circle where the cat items are supposed to load. when clicking on any of the categories it does the same...here is the odd part.  if you click on the 'Card View' or the ' List view' icons in the upper right the catalog items display (see below)

Any insight is greatly appeaciated.

cheers

e

When you click on just the category just spins and looks like its loading.

find_real_file.png

When you click on the card view they show

find_real_file.png

1 ACCEPTED SOLUTION

Hi there, yes I actually did and just forgot to update the post.  Here you go.

the 'SC category page' widget, there is a code to get the user preference of the view(card view or the list view) to display the catalog items. For non-logged in users, this preference would be empty. When this is empty, the widget is not able to display any catalog items until the user clicks on card or list view. 

In order to resolve the issue, replace the below lines(42 - 44) in the Client Controller of the 'SC category page' widget. 
spUtil.getPreference('catalog-item-list-view', function(value) { 
$scope.view = value || 'card'; 
}); 

with 
$scope.view = 'card'; 

Before making the changes, clone the above widget and make the suggested changes in the newly clone widget. 

 

Cheers

View solution in original post

8 REPLIES 8

did you get this to work?  I have the same problem.

Hi there, yes I actually did and just forgot to update the post.  Here you go.

the 'SC category page' widget, there is a code to get the user preference of the view(card view or the list view) to display the catalog items. For non-logged in users, this preference would be empty. When this is empty, the widget is not able to display any catalog items until the user clicks on card or list view. 

In order to resolve the issue, replace the below lines(42 - 44) in the Client Controller of the 'SC category page' widget. 
spUtil.getPreference('catalog-item-list-view', function(value) { 
$scope.view = value || 'card'; 
}); 

with 
$scope.view = 'card'; 

Before making the changes, clone the above widget and make the suggested changes in the newly clone widget. 

 

Cheers

Hi esebasti,

is there a solotution not including any scripting? SN alway claims low-to-no-code.

Your solution seems low-code. But: If in a Upgrade the structure of this Widgets changes, you`ll have to clone the new version again - Look up the relevant code line, modify the widget and so on...

So i am askiking one the SN-Gurus:

Is there any way i could tell the "guest"-User he has a favorit-view?

Is there a no-code solution, without cloning anything?

Can i do this via URL-parameter?

 

Thanks a lot @ all!

 

 

 

I even tryed to set a global preference. This did not help:

 

find_real_file.png