ImageHow to automatically add bookmarks ?

A nice tip provided by Andrew, to help you to automatically add the current page to your Mambo's Bookmarks system...

The idea is to create a bookmark in your browser with some javascript that will automatically open the "Add Bookmark" page of your site, and automatically fill the title and the url fields with the the values of the current page...

Here is the javascript to add in the url field of your new bookmark :
 

!!! For version until v2.7_2g !!!

javascript:myTitle=document.title;
myUrl=escape(location.href);
myWindow=open('http://www.yoursite.xyz/index.php?option=com_bookmarks&task=new&title='+myTitle+'&url='+myUrl,'addLinkWindow','');
myWindow.focus();

Note : enter the above code on one line only due to JavaScript restriction... 

Or just bookmark this link (copy the URL) : Add Link  (and do not forget to edit the website url to reflect your needs...)

!!! For version after v2.7_2g !!!

javascript:myTitle=document.title;
myTitle = escape(myTitle);
myUrl = escape(location.href);
myInfo = "&info="+myTitle+"(|)"+myUrl;
res = myInfo.match(/%/g);
for (i=0;i<res.length;i++) {myInfo = myInfo.replace(/%/,"|");} myWindow=open('http://www.tegdesign.ch/index.php?option=com_bookmarks&task=new&info='+myInfo,'addLinkWindow',''); myWindow.focus();

Note : enter the above code on one line only due to JavaScript restriction... 

Or just bookmark this link (copy the URL) : Add Link  (and do not forget to edit the website url to reflect your needs...)

 

Then while surfing, just click on the bookmark, then the add page will be automatically opened in a new window with the current page value, save and you're done !

Happy Bookmarking !