Findmore and Properties/Templates of Categories.

Creating and modifying plugins.
Post Reply
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Findmore and Properties/Templates of Categories.

Post by bdconnolly »

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:

Re: Findmore and Properties/Templates of Categories.

Post by garvinhicking »

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bdconnolly
Regular
Posts: 140
Joined: Tue Apr 04, 2006 9:37 pm

Nope...

Post by bdconnolly »

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

alternatively

Post by bdconnolly »

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 »

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.

:)
Post Reply