Favorites
You can allow users to set resources to be favorites. These favorites are displayed on the user’s home tab for quick access. If you are using the classic experience and disable favorites then the Home tab is hidden.
Enable or disable favorites
Use the Favorites to do select one of the following options:
- Allow users to create and remove favorites. Users can favorite an app by clicking the star on the app tile. Users can click the star again to un-favorite an app. Favorite apps are displayed on the Home tab.
- Disable favorites. Users cannot favorite or un-favorite apps. The home tab is not displayed.
Disabling subscriptions does not delete the Store subscription data. Re-enabling subscriptions for the store will allow the user to see their favorites whenever they next log on.
- Select the Stores node in the left pane of the Citrix StoreFront management console and, in the results pane, select a store. In the Actions pane, click Configure Store Settings
- Click on the User favorites tab to toggle the user favorites feature off or on.
- Choose Enable user favorites to enable favorites.
- Choose Disable user favorites to disable favorites.
Alternatively, you can use the PowerShell cmdlet Set-STFStoreService with the LockedDown
parameter. For example to disable favorites:
$StoreObject = Get-STFStoreService -SiteID 1 -VirtualPath "/citrix/<yourstore>"
Set-STFStoreService -StoreService $StoreObject -LockedDown $True -Confirm:$False
<!--NeedCopy-->
Favorites database
By default, favorites are stored in a local database that is replicated between servers in the server group. Alternatively, you can store favorites in an external SQL server database.
To view whether the store is using a local or external database run the PowerShell cmdlet Get-STFStoreSubscriptionsDatabase
. For example:
$store = Get-STFStoreService -VirtualPath [store path]
Get-STFStoreSubscriptionsDatabase -StoreService $store
<!--NeedCopy-->
This returns:
-
UseLocalStorage
- ifTrue
, favorites are stored in the local database (the default). IfFalse
, favorites are stored in an external database. -
DatabaseConnectionString
- if using an external database this contains the connection string. Otherwise it is blank.
For more information, see Managing the subscriptions database.
Use SQL server database
To use an external SQL server database, run PowerShell cmdlet Set-STFStoreSubscriptionsDatabase
, specifying the connection string. For more information, see Store subscription data using Microsoft SQL Server.
Configure two StoreFront stores to share subscriptions datastore
Where different configuration settings are required, it is common for administrators to configure StoreFront with two distinct stores for the same resources; e.g. one for external access to resources using Citrix Gateway and another for internal access using the corporate LAN. If you are using a SQL server database, set both stores to use the same database connection string. When using a local database, StoreFront by default creates a separate database for each store. Therefore a user must favorite the same resource twice, once on each store. You can configure both stores to use the same database so users see the same favorites whichever store they connect to.
Important:
As the site name forms part of the key for a favorite, you must ensure that sites have exactly the same name in both stores.
E.g. suppose you have stores called “Internal” and “External”. When using a local database, use the following script to configure the “External” store to use the same subscriptions database as the “Internal” store.
$internalStore=Get-STFStoreService -VirtualPath '/Citrix/Internal'
$internalUri = $internalStore.SubscriptionStoreClient.ClientEndpoint.Uri.ToString()
$externalStore=Get-STFStoreService -VirtualPath '/Citrix/External'
$externalStore.SubscriptionStoreClient.ClientEndpoint.Uri = internalUri
Save-STFService $externalStore
<!--NeedCopy-->
Propagate the configuration to other servers in the server group.
To check which local database a store is using, run following script:
$store=Get-STFStoreService -VirtualPath '/Citrix/External'
$store.SubscriptionStoreClient.ClientEndpoint.Uri.ToString()
<!--NeedCopy-->