what am I missing?

Feb 22, 2012 01:09

I'm looking at adding links to track and share an entry to an Opal-based theme - for example, the way Smooth Sailing says "previous | memories | share | track | flag | next" on each entry. Given I can't find any reference to previous/next (for entries themselves, not DayPage or MonthPage), tracking or sharing in the default layer for Opal, what ( Read more... )

Leave a comment

Comments 2

fiddlingfrog February 22 2012, 06:12:20 UTC
Opal doesn't use the linkbar function, it creates each link manually. using the
$link = $e->get_link($key);
method. You'll find it in two places in Opal, in function Page::print_entry (Entry e) and in function ReplyPage::print_body(). These two function create the

Leave a comment Edit Entry Edit Tags Add to Memories Share Track This Link
that you see across the top of the entry when in Opal.

Smooth Sailing is written very differently than Opal. I don't think you'd be able to use the code without serious reworking, and at that point it's probably easier to write a fresh function.

I don't know if there's an S2 sandbox available. You'll need a paid account to create a new layer anyways, so when you do create it make it public and link it here; we can take a look at it then.

Reply

dandelion February 22 2012, 23:04:04 UTC
Thank you! I can work with that.

You don't need a paid account to edit a text file with a layer in it :) I built the layout ages ago and am just tweaking it.

Reply


Leave a comment

Up