> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: addUserFavorite(favorite: Favorite) # Method package: wixDashboardManagementV2 # Method menu location: wixDashboardManagementV2 --> favoriteList --> addUserFavorite # Method Link: https://dev.wix.com/docs/velo/apis/wix-dashboard-management-v2/favorite-list/add-user-favorite.md # Method Description: Adds a page to the current Wix user's list of favorite dashboard pages. If the Wix user doesn't have a list, the method creates a new list and adds the favorite page to it. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## addUserFavorite example for dashboard page code ```javascript import { favoriteList } from 'wix-dashboard-management.v2'; async function addUserFavorite(favorite) { try { const result = await favoriteList.addUserFavorite(favorite); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## addUserFavorite example for exporting from backend code ```javascript import { favoriteList } from 'wix-dashboard-management.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedAddUserFavorite = elevate(favoriteList.addUserFavorite); export const addUserFavorite = webMethod( Permissions.Anyone, async (favorite) => { try { const result = await elevatedAddUserFavorite(favorite); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---