The buzzword Web 2.0 summarizes all functions that improve interaction with the website visitor. This includes the division of social bookmarking offered on sites like http://del.icio.us/, http://www.mister-wong.de/ or http://www.technorati.com/ as a free internet service. To make it easy for the website user to bookmark your web page the module was created. The output of this module can be seen on the top of the page near the printer symbol.
To use this module shipped with the release package at first no configured must be created. To include the module into a web page two configuration files must be adopted:
[Mr. Wong] BookmarkService.BaseURL = "http://www.mister-wong.de/index.php?action=addurl" BookmarkService.Param.URL = "bm_url" BookmarkService.Param.Title = "bm_description" BookmarkService.Display.Title = "Bookmark @ Mr. Wong" BookmarkService.Display.Image = "bookmark_mister_wong" BookmarkService.Display.ImageExt = "png"
More configuration files are not necessary.
There are two flavours to display the previously configured bookmark services: usage of the SocialBookmarkBarManager or the taglib. The SocialBookmarkBarManager must be created as a service object.
$bm = $this->getServiceObject('APF\modules\socialbookmark\biz\SocialBookmarkBarManager'); $bm->setImageWidth($this->getAttributes('width')); $bm->setImageHeight($this->getAttributes('height')); $bm->setUrl($this->getAttribute('url')); $bm->setTitle($this->getAttribute('title')); return $bm->getBookmarkCode();
Dealing with the taglib is more easy. This tag needs to have the attributes width and height. To use the tag it must be announced using the <core:addtaglib /> directive:
<core:addtaglib class="APF\modules\socialbookmark\pres\taglib\SocialBookmarkBarTag" prefix="social" name="bookmark" /> <social:bookmark [width=""] [height=""] [url=""] [title=""] [target=""] />