Posts

Showing posts with the label quick launch

SharePoint 2010 - Open Quick Launch link in a new window

Image
The need is to open a link from the Quick Launch in a new window. When Publishing Features are not activated, we can only edit URL, name of the link and its position. But, we can use the javascript functions! Then I tried this:   Saving and clicking on the new link, the URL opens successfully in a new window BUT current page becomes white with the word [Object] ... So, I tried this trick .. and it works: The URL will open in a new window and the current page is reloaded onto itself.

SharePoint 2010 - Aprire link in una nuova finestra da Quick Launch

Image
L'esigenza è quella di aprire un link da Avvio Veloce (Quick Launch) in una nuova finestra. Quando non sono attive le Publishing Features, il link non è modificabile se non nell'URL, nel nome del link e nella sua posizione. Possiamo utilizzare le funzioni javascript. Allora ho provato con questo:  Ma salvando e cliccando sul nuovo link, l'URL si apre correttamente in una nuova finestra MA la pagina corrente diventa bianca con la scritta [Object]... Allora, ho provato questo trucco e .. funziona: L'URL si apre in una nuova finestra e la pagina corrente si ricarica su se stessa.

Sharepoint 2010 - Customizing Quick Launch with pages

Image
How to show different quick launch menu items in different pages? The quick launch in Sharepoint is an object common to all pages of the site. To show menu items according to the page you visited, I followed client side method with javascript (jquery). Here's how, using Sharepoint Designer 2010. On css stylesheet of the site, I added this instruction, which hides all the items in the Quick Launch: . s4-ql ul.root> li { display: none; } Then, make note of the position of the menu items in the quick lanuch: eg. 0 - Document Libraries 1 - Lists 2 - MyLink      0 - MySubLink1      1 - MySubLink2 3 - MyOtherLink 4 - MyLastLink The pages follows the following rules: Page1 shows 0,1,4 Page2 shows 0,2,3 Page3 shows 0,2 (and sub ​​links 1), 3.4 And now, I change the master.page, adding references to jquery and inserting the following code: //get all items in the quick launch var li_nav = $(".vertical-menu>ul>li"); //get...