Answered by:
Allow users to select from a set of links to display on page

Question
-
We are wanting to create a feature on our intranet where viewers (with Read access) can select from a predefined set of links to show on part of our homepage (e.g show the 5 links from 10 available) and have these selected links show the next time the visit the page (or until they change them). While I have been able to do this using HTML, JavaScript and cookies.
Is there a SharePoint feature/s available to do this (cookies are not reliable in our environment)?
- Edited by Gibbo McCool Wednesday, May 9, 2018 5:22 AM
Wednesday, May 9, 2018 1:44 AM
Answers
-
Hi Gibbo McCool,
there is not out of the box feature in sharepoint for achieving you requirement, but it is possible to be implemented on development , let me give you programmatic options
1- options #1
A) Create links list ( list contains all links)
B) if possible , create profile service application in your organization , then create a custom property in the profile service called it , say Selected Links.
C) Create 2 Custom Web part,
C-1) one webpart for listing all the links in a gridview , then the user can select the links to be displayed in the home page when he visit the page , then on submitting the form , get the IDs of the links , and save them in the custom profile property which you created in previous step
C-2) the second webpart , retrieve the IDs of the selected links from the custom profile property , then getting the corresponding links title from the links list
2- options #2
A) Create links list ( list contains all links)
B) Create another custom list for saving the selection of the links of each user .
C) Create 2 Custom Web part,
C-1) one webpart for listing all the links in a gridview , then the user can select the links to be displayed in the home page when he visit the page , then on submitting the form , get the IDs of the links , and save them in the custom list (we created in the previous step) with the user login id .
C-2) the second webpart , retrieve the IDs of the selected links from the custom list , then getting the corresponding links title from the links list
Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6
- Proposed as answer by Allen BaiMicrosoft contingent staff Thursday, May 10, 2018 2:47 AM
- Marked as answer by Gibbo McCool Thursday, May 10, 2018 5:34 AM
Wednesday, May 9, 2018 4:02 PM
All replies
-
Hi Gibbo McCool,
there is not out of the box feature in sharepoint for achieving you requirement, but it is possible to be implemented on development , let me give you programmatic options
1- options #1
A) Create links list ( list contains all links)
B) if possible , create profile service application in your organization , then create a custom property in the profile service called it , say Selected Links.
C) Create 2 Custom Web part,
C-1) one webpart for listing all the links in a gridview , then the user can select the links to be displayed in the home page when he visit the page , then on submitting the form , get the IDs of the links , and save them in the custom profile property which you created in previous step
C-2) the second webpart , retrieve the IDs of the selected links from the custom profile property , then getting the corresponding links title from the links list
2- options #2
A) Create links list ( list contains all links)
B) Create another custom list for saving the selection of the links of each user .
C) Create 2 Custom Web part,
C-1) one webpart for listing all the links in a gridview , then the user can select the links to be displayed in the home page when he visit the page , then on submitting the form , get the IDs of the links , and save them in the custom list (we created in the previous step) with the user login id .
C-2) the second webpart , retrieve the IDs of the selected links from the custom list , then getting the corresponding links title from the links list
Best Regrads, Ahmed Madany MCTS @twitter http://twitter.com/ahmed_madany @Blog http://ahmedmadany.wordpress.com @LinkedIn http://eg.linkedin.com/pub/ahmed-madany/35/80/2b6
- Proposed as answer by Allen BaiMicrosoft contingent staff Thursday, May 10, 2018 2:47 AM
- Marked as answer by Gibbo McCool Thursday, May 10, 2018 5:34 AM
Wednesday, May 9, 2018 4:02 PM -
Hi Gibbo,
As Ahmed Madany mentioned, there is no OOB feature to achieve your purpose. If you think his suggestion is useful, you could mark it as an answer.
Best regards,
Allen Bai
Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.
Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.Thursday, May 10, 2018 3:00 AM