PostNuke

Flexible Content Management System

News

Do you want to get your Web Links module on the fly?

Contributed by on Aug 02, 2002 - 10:51 AM

1. on your navigator, install the following bookmark into your personal links folder:


javascript:win="http://<url_to_postnuke>/modules.php?op=modload&name=Web_Links&file=index&req=AddLink&new_url="+location.href+"&new_title="+escape(document.title);bkwin=window.open(win,"",",toolbar=1,location=1,scrollbars=1,resizable=1");bkwin.focus();


2. update the AddLink() function into the 'wl-addlink.php' script from your web links module to catch the values returned by the bookmark: '$new_title' et '$new_url'.


- add globals '$new_title' and'$new_url'.


- add 'value' parameters into the TEXT fields (ex. )


3. it allows you to open your web links module "on the fly" when you're surfing.


4. you'll get automaticaly the title and url from the visited web page.


5. add a short description and... that's all!




regards,


Pierre


2446