Creating and modifying plugins.
bdconnolly
Regular
Posts: 140 Joined: Tue Apr 04, 2006 9:37 pm
Post
by bdconnolly » Fri Aug 18, 2006 8:16 pm
I am trying to get findmore to work with Properties/Templates of categories. I am also trying to insert the html/js into the category entries.tpl.
Code: Select all
<div class="serendipity_findmore"><center>
<a href="http://del.icio.us/post?url={$entrydata.url|escape:url}&title={$entrydata.title|escape:url}" title="Bookmark {$entrydata.title|escape} at del.icio.us"><img src="/templates/joshua/img/delicious.jpg" style="border: 0px" alt="Bookmark {$entrydata.title|escape} at del.icio.us"/></a>
<a href="http://digg.com/submit?phase=2&url={$entrydata.url|escape:url}" title="Digg {$entrydata.title|escape} "><img src="/templates/joshua/img/diggman.jpg" style="border: 0px" alt="Digg {$entrydata.title|escape} "/></a>
<a href="http://www.bloglines.com/citations?url={$entrydata.url|escape:url}" title="Bloglines {$entrydata.title|escape} "><img src="/templates/joshua/img/bloglines.jpg" style="border: 0px" alt="Bloglines {$entrydata.title|escape} "/></a>
</div>
Bottom line: doesn’t want to pick up the {$entrydata.title|escape:url}. What’s up with that?
Brian
garvinhicking
Core Developer
Posts: 30022 Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:
Post
by garvinhicking » Fri Aug 18, 2006 9:28 pm
Hi!
I also mentioned this in a mail - it might simply be because $entrydata.* is not in the scope of entries.tpl, only for the plugin_findmore.tpl file. if you want to use it in entries.tpl, you'll need to use $entry.*
HTH,
Garvin
bdconnolly
Regular
Posts: 140 Joined: Tue Apr 04, 2006 9:37 pm
Post
by bdconnolly » Fri Aug 18, 2006 11:41 pm
Tested this. Failed.
Code: Select all
<div><center>
<a href="http://del.icio.us/post?url={$entry.url|escape:url}&title={$entry.title|escape:url}" title="Bookmark {$entry.title|escape} at del.icio.us"><img src="/templates/joshua/img/delicious.jpg" style="border: 0px" alt="Bookmark {$entry.title|escape} at del.icio.us"/></a>
<a href="http://digg.com/submit?phase=2&url={$entry.url|escape:url}" title="Digg {$entry.title|escape} "><img src="/templates/joshua/img/diggman.jpg" style="border: 0px" alt="Digg {$entry.title|escape} "/></a>
</center>
</div>
bdconnolly
Regular
Posts: 140 Joined: Tue Apr 04, 2006 9:37 pm
Post
by bdconnolly » Fri Aug 18, 2006 11:50 pm
Alternatively... how might I do this. Install the plugin and only have it post to the Category extended pages.
That'd be a cool trick.
brian
bdconnolly
Regular
Posts: 140 Joined: Tue Apr 04, 2006 9:37 pm
Post
by bdconnolly » Sun Aug 20, 2006 6:47 pm
Code: Select all
<a href="http://del.icio.us/post?url={$entry.link}&title={$entry.title}" title="Bookmark {$entry.title} at del.icio.us"><img BORDER="0" WIDTH="12" HEIGHT="12" src="/templates/joshua/category/icons/delicious.png" class="socialbkmark" alt="Bookmark {$entry.title} at del.icio.us"/></a>
God I am dumb.