Custom links in Sharepoint - sharepoint

I was wondering if someone has had a similar requirement before. What they want is a link that on the main site that would point to a different document contained within a document library every week. So week one it would be "document1.pdf" and week two it would be "document2.pdf" and so on. Is this possible for the navigation that is contained in the left hand side of a sharepoint site? Can a link be tied to a lookup? Any help would be appreciated!

You can create some redirect javascript within the Content Editor webpart. host it on a page and add a link to the page on the navigation.
This is by far the fastest way to get what you want.
Make sure to follow the advice here to be able to edit the page once you set the redirect.

Related

SharePoint: Can I create different navigation bars for different pages?

I'm new here. I'm working on a SharePoint website and I want to create a different navigation bar for a part of pages while others use the global navigation bar. It is like they are different websites but actually they are not. I wonder is that possible? If it is, how can I make it?
In addition, according to my research, it's possible to have a different navigation bar if I create a subsite, right?
The problem now is that I don't have the permission to create a subsite, that's why I'm asking if I can create a different navigation bar for a set of pages.
Thank you!
For a SharePoint site, there are two sets of navigation.
One: Global Navigation. Two: Site Navigation (Which is mostly the sites Left side navigation)
These articles describes more about having multiple navigation elements in a site: https://technet.microsoft.com/en-us/library/ee695757.aspx
https://support.office.com/en-us/article/customize-the-navigation-on-your-sharepoint-site-3cd61ae7-a9ed-4e1e-bf6d-4655f0bf25ca
Note: Instructions vary based on your SharePoint environment and setup. For better understanding if you can share which version of SharePoint you are working on. can give more insights. Hope this helps!

Top 3 most visited pages in sharepoint 2010

I want to show top 3 most visited pages in my home page of sharepoint site. I need to find out the Title of the Top 3 pages and display them in a link. I found out the way. But it display all the pages like allpages.aspx, settings.aspx... I need only top 3 most user created pages. So far I have been unable to figure out the best way to do this. Any suggestions to get me started would be appreciated.
Regards,
Raji...
You can create your custom Web Analytics Web Part derived from OOTB WAWP. Check some solution here: http://farhanfaiz.wordpress.com/2011/06/21/sharepoint-2010-display-titles-instead-of-url%E2%80%99s-in-whatspopularwebpart/
In your custom code you can make filtration functionality and skip undesired pages.

SharePoint Preserve Page Properties and WebParts

Hi I was wondering If there is away to save a page in sharepoint. I want to save the default page, and replicate it on a mirror server. I want the web parts in the same place, and the properties of the web parts to stay intact. Any suggestions? Thank you.
You might also look into using SharePoint Content Deployment which was designed with pushing out pages from a master site out to cloned sites.
You can view the page is SharePoint Designer and disassociate it with its Page Layout. That will bring the content of the page into Designer. You can then copy it to another file. However, this is fraught with problems:
Any dependent list and relative urls would not be copied over. You would have to move it manually.
By disassociating the page from its layout you are in effect going to slow down the retrieval of the page. Since this will also have to be done on the destination page, both pages are going to slow down.
I have found that its always better to do an export of the site and then import it to a destination site.
I don't condone this product as I haven't used it but you can also try:- http://www.softlow.com/windows/business/management/free/web-part-page-cloner-for-sharepoint.html

Hyperlinks In Sharepoint Webpart

I've been working on a SharePoint project and I have gone the route of loading User Controls through a custom web part.
I have several web controls where I need to dynamically generate hyperlinks (in a loop from a database) that will call certain functions of the User Control when clicked.
When I'm building my own ASP.NET sites, I just add parameters to the hyperlink and check on the page load to see if I need to run any other code when a hyperlink is click.
I'm starting to realize that this probably won't be very reliable inside the SharePoint environment because I don't control the way web page URLs are formed.
I would prefer to have it post back when the hyperlink is clicked and pass some values, but I'm not sure the best way to approach this.
Could someone point me in the right direction?
Thanks.
You can still add querystring parameters to the end of any url and your webpart will pick them up.
The way you create the url will have to be a little more sophisticated in that you cannot assume yours will be the only query parameters on the url.
The SPHttpUtility has some helpful functions.
If you want to avoid the complexity of dealing with and parsing URL's then you need to be using the ASP.NET server controls - the whole idea of them is to abstract out complexity such as that.
http://msdn.microsoft.com/en-us/library/seey0yt3(VS.85).aspx
http://www.startvbdotnet.com/aspsite/controls/linkbutton.aspx

Create SharePoint web page outside of document library

I'm reasonably new to SharePoint 2007 and trying to move from an ASP.NET to SharePoint way of thinking has been an interesting experience!
I would like to create a page at the same level as the default.aspx page in a subsite. The "SharePoint way" of doing things involves putting the page into a document library. I am reluctant to do this as the breadcrumb navigation of the page then includes the name of the libarary but I would like the library to be transparent to the user.
I can create a page in the right place in SharePoint designer but I can't find a way to use a SharePoint template. I have tried copying the default.aspx page, but the navigation linkes are not updated.
Am I missing something or can someone suggest a solution?
I see what you are saying. I would like to share my thoughts on how I will do it.
If the Breadcrumb is your only reason why you want to move to a different than lib, the I recommend you to override the ContentPlaceholder that has the BreadCrumb in your Page, so that BreadCrumb wont be there. But URL will be there for the User to Guess ./DocLib/default.aspx.
And if the reason to hide the document library is to make sure that you don't want to allow the user to get into the Lib and change something. I recommend you strip out the permission from the Document Lib and give all the user ReadOnly and add the user with more right who you thing will need to edit the pages.
And finally you wanted to it in a Place, you can try deploying them as a Feature that will provision the pages as Ghostable rather then GhostableInLibray.
While 1,3 cab be packaged in a WSP. 2 one needs bit of a Manual / custom Code if you are trying to automate the process.
Steps to create Ghostable pages you can refer to this
It doesn't seem to be possible. Subsites can be used to be categorise content by topic, but they can't be used very much.

Resources