Rakshi (rakshi) wrote in s2expressive,
Rakshi
rakshi
s2expressive

  • Mood:

Hello....

Could anyone help me with this bit of scripting?



I have this in my custom layer:

function Entry::print_linkbar() {
    var Link link;
    var string url = "";
    var string text = "";

    print """<div class="asset-meta">\n""";
    print """<ul class="asset-meta-list">\n""";

    $.comments->print();

    $link = $this->get_link("edit_entry");
    if (defined $link) {
        $url = $link.url;
        $text = $*text_edit_entry != "" ? $*text_edit_entry : $link.caption;
        print safe """<li class="asset-meta-comments item asset-meta-no-comments"><a href="$url">$text</a></li>""";
    }
    println "\n</ul>\n</div>\n";
}




And it works wonderfully well to show ONLY the comment number, reply, and edit entry links.

But I would so much like to add the 'add to memories' link to this. Can you please help me alter the current script to add that link?

Thank you so much for all you do.
Tags: entries:linkbar
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments