Hi all,
I have a requirement that when ever user bookmark the page of my site,the page name is same for all the pages(like amazon.com) rather than the Page title(which is different for all the pages) and i cant change the page title for this...Is there any way of implementing this?
Since when i tried to bookmark any page its saved with the page title..how can i define a seperate title for browser boomark functionality
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Peter
Yes, the workaround can work on Mozilla, EI, opera but i do not think that chrome provides JS for bookmark. It is more of a security for chrome by not providing this.
Link:- https://productforums.google.com/forum/?hl=en#!msg/chrome/Wm-UHqaBEbI/Ukiwm46v3BsJ
PS"= "window.sidebar.addPanel" was removed from Mozilla.
Alternate that could be used are:- "<a href="http://abcd.com" title="this is name of bookmark" rel="sidebar">Bookmark me</a>"
~kautuk
Views
Replies
Total Likes
Hi Naman
I can give you few approach. See which one fits you better
1) Decide on what name you want to bring up. Lets say You want to give the title of your parent page for all the bookmarks. So better get the absolute parent of the current page and print it.
2) There is an additional title, called pageTitle property for every page in the page properties. You can ask the author to set the "Page Title" under "More Titles and Description" in page properties. I would not prefer this for your approach, since if the pages are more your author has to set the additional name for every page.
Please let me know if this solves your issue. Guess you are not bookmarking through JS. If so, I am not sure about , whether this will work.
Thanks
Veena
Views
Replies
Total Likes
Hi Venna ,
Thanks for responding on such a short period...Page Title didn't work in my scenario,Can you please elaborate on ( So better get the absolute parent of the current page and print it).I have a name other than my parent page just say "MyPage"...whenever the user bookmark on any page in our site the name appears in bookmark name should be "MyPage" and I don't want to change any of the page titles...where should I have print it?
Thanks
Naman
Views
Replies
Total Likes
Hi
It is the functionality of the browser to choose Title as a string (default) to save a bookmark.
Anything within <title></title> will we populated. If Tile is missing, then mostly URL is taken.
~kautuk
Views
Replies
Total Likes
Hi Naman
Could you please help me understanding how the bookmark works? So that I can think of a better solution.
I have neva got a chnace to work on the functionality. So if this works as Kautuk was explaining, then may be my solution may not work, since we cannot change the <title></title> meta tag of any page.
Thanks
Veena
Views
Replies
Total Likes
Hey Veena,
Are you allowed to add JavaScript?
If so, following would do[1]
[1] http://stackoverflow.com/questions/3024745/cross-browser-bookmark-add-to-favorites-javascript
$(document).ready(function() { $("#bookmarkme").click(function() { if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(location.href,"Veenas Custom Title",""); } else if(window.external) { // IE Favorite window.external.AddFavorite(location.href,"Veenas Custom Title"); } else if(window.opera && window.print) { // Opera Hotlist this.title="Veenas Custom Title"; return true; } }); });
Regards,
Peter
Views
Replies
Total Likes
The best way is to use the Short Title in the page properties.
Views
Replies
Total Likes
Hi Peter
Yes, the workaround can work on Mozilla, EI, opera but i do not think that chrome provides JS for bookmark. It is more of a security for chrome by not providing this.
Link:- https://productforums.google.com/forum/?hl=en#!msg/chrome/Wm-UHqaBEbI/Ukiwm46v3BsJ
PS"= "window.sidebar.addPanel" was removed from Mozilla.
Alternate that could be used are:- "<a href="http://abcd.com" title="this is name of bookmark" rel="sidebar">Bookmark me</a>"
~kautuk
Views
Replies
Total Likes