=====Del.icio.us Bookmark Action=====
>>==See also:==
~-WikkaFolksonomy
~-UnderDevelopment
>>This is the development page for the del.icio.us action.::c::
===Documentation===
==Short description==
Display a del.icio.us bookmark link for the current page.
==Parameters==
This action currently does not accept any parameter.
==Long description==
This simple action displays a link to bookmark the current page at [[http://del.icio.us del.icio.us]]. It can be used as a stand-alone plugin in the page body or as a [[WikkaMenulets menulet]] in the page header/footer. It retrieves the title from the page body (unicode supported). Obviously, you must be registered at del.icio.us in order to be able to bookmark a page.
==Usage:==
##""{{delicious}}""##
==Example:==
"" Post to del.icio.us""
===The code===
Save the following as ##actions/delicious.php## and modify the ICON_PATH constant to match the path to the icon on your server. The del.icio.us icon used on this server can be downloaded [[http://wikka.jsnx.com/images/icons/logos/del.icio.us_small.png here]].
%%(php;1)
Href();
$title = $this->PageTitle();
if (isset($url) && isset($title)){
$delicious = DELICIOUS_BASE_URL.urlencode($url).'&title='.urlencode($title);
$icon = '';
$output = ''.$icon.' '.LINK_TEXT.'';
echo $output;
}
?>
%%
----
CategoryDevelopmentActions