none
Rename Existing Ribbon TABs in PWA RRS feed

  • General discussion

  • Hi,

    I want to Rename the TABs in my PWA ribbon  e.g Browse to Home.


    Thanks, Parth

    Saturday, September 8, 2012 7:56 AM

All replies

  • anyone please help!!! :(

    Thanks, Parth

    Monday, September 10, 2012 5:50 AM
  • Hey Parth--

    Did you try using the Jquery. I just used the sample & i was able to replace the Browse with PWA. You may need to indert a contnet editor webpart & have the Jquery plugins.

    On the span class , ms-cui-tt-span the Text is Browse, You can replace the Browse with PWA or as per your requirement. 

    $(document).ready(function() {
        $('#s4-ribbonrow').click(function(e) {
            if ($(e.target).hasClass('ms-cui-tt-span')) {
                
            }
        });
    });
    You may want to take a ref on using Content editor :
    http://gallery.technet.microsoft.com/office/SharePoint-list-Lookup-0c748ae0/

    Hope that helps.


    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82


    Monday, September 10, 2012 6:12 AM
  • hi Amit I am really poor at the JQuery Can you please give me the exact code  for the same,

    is it possible??


    Thanks, Parth

    Monday, September 10, 2012 11:55 AM
  • Hi Parth--

    I noticed that if you rename the Browse Tab using Jquery , It has the event associated with it & when you click , it changes back to Browse. Here is the code what I used. Upload the Jquery plugins on PWA shared doc.

    <script src="/PWA/Shared%20Documents/jquery-1.4.1.js" type="text/javascript"></script><script type="text/javascript">
    
    $(document).ready(function() 
    {
    $(".ms-cui-tt-span").first().text("Custom text");
    });</script>

    I did some research & found that the Browse button is a special button in Sharepoint 2010.
     You may need to modify the PWAribbon.xml as oen of the article in SDK:

    "it's the header of the tab. As the summary - you can replace the Read tab with the standard Ribbon element replacement technique and specify the desired text. Here's the XML of the definition: "
    http://blog.alexboev.com/2012/01/browse-tab-in-sharepoint-2010-ribbon.html



    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”. Thanks, Amit Khare |EPM Consultant| Blog: http://amitkhare82.blogspot.com http://www.linkedin.com/in/amitkhare82

    Monday, September 10, 2012 1:21 PM
  • Hi,

    I have used Following Script to change the Browse Name

    <script src="/pwa/Project%20Detail%20Pages/_Layouts/INC/PWA/Scripts/jquery.min.js" type="text/javascript"></script><script type="text/javascript">
    $(document).ready(function()
    {
    alert($(".ms-cui-tt-span").first().text());
    $(".ms-cui-tt-span").first().text("Home");
    });</script>

    But still it is not working.... :(


    Thanks, Parth

    Monday, September 10, 2012 1:40 PM