I was wondering if anyone had been able to get the Socialbookmarker tag working with the CGCalendar module? I found an excellent post in the Dutch language forums where the tag's developer Arnoud explains how to use it in various circumstances. I've used it successfully in the news and blog modules of one site already, but have never been able to get it working with Calendar, and I need to be able to set it up on a new site I've got nearly finished. I posted this problem in the Dutch forum over a week ago without response, so am hoping that someone among this wider readership may be able to help. I'm sure the solution is very simple for someone who knows more about smarty than I do

Basically, I've put the tag's code in the Calendar detail template, but when visiting the website's detail page, the tag isn't able to grab the URL so as to be able to show links for Facebook etc.
Instead, the source code shows:
Code: Select all
<p class="share-this">Share this!</p>
<ul class="socialbookmarker">
<li class=""><a href="" title=": "></a></li>
</ul>
mywebsite.com/events/133/6-name-of-event.html
The code I've added to the Calendar module's detail page is as follows:
Code: Select all
{*!-- /socialbookmarker --> *}
{strip}
{capture assign=sourcetitle}{$entry->title|escape}{/capture}
{capture assign=sourceurl}{root_url}/{$smarty.get.page}{/capture}
{socialbookmarker sourcetitle=$sourcetitle sourceurl=$sourceurl brands='twitter, facebook, digg, stumbleupon, delicious'}
{/strip}
<div>
<p class="share-this">Share this!</p>
{if $socialbookmarker|@count gt 0}
<ul class="socialbookmarker">
{foreach from=$socialbookmarker item=item}
<li class="{$item->brand}"><a href="{$item->destinationurl}" title="{$item->brand|ucfirst}: {$item->sourcetitle|escape}">{$item->brand|ucfirst}</a></li>
{/foreach}
</ul>
{/if}
</div>{* <!-- /socialbookmarker --> *}
As far as I can tell, the line below is where the problem lies:
Code: Select all
{capture assign=sourceurl}{root_url}/{$smarty.get.page}{/capture}
Code: Select all
{capture assign=sourceurl}{$entry->detail_url}{/capture}
Code: Select all
{capture assign=sourceurl}/events/{$entry->detail_url}{/capture}
Code: Select all
{capture assign=sourceurl}{root_url}/events/{$entry->detail_url}{/capture}
Does anyone have an idea what that line of code should be so as to be able to grab the URL from
mywebsite.com/events/133/6-name-of-event.html ?
Thanks in advance for any help (the help files in the tag don't address my particular problem
