Paid Accounts Only
The following tutorial requires creating and editing a custom style, which in turn requires a paid, permanent, or early adopter account. Please read
What are the paid account benefits? and
How do I buy a paid account? to learn about the paid account benefits and how to buy a paid account.
This tutorial describes how you can change the wording of the 'Edit Entry', 'Edit Tags', 'Add to Memories', 'Track', 'Untrack' and 'Flag' links in Digital Multiplex. It will replace the function EntryPage::lay_sidebar_view_navigation(). This new code will be placed in a theme layer. If you already have a theme layer for this style, you can simply edit it. If not, you will need to create one by following the instructions in the
Theme Layer tutorial.
Now, you will need to add the following code to your theme layer. First, copy and paste the following code into the layer, making sure to include everything:
function EntryPage::lay_sidebar_view_navigation() : string {
var string return;
var Link link;
var string{} my_captions = {"edit_entry" => "Edit Entry",
"edit_tags" => "Edit Tags",
"mem_add" => "Add to Memories",
"watch_comments" => "Track",
"unwatch_comments" => "Untrack",
"flag" => "Flag",};
foreach var string k ($.entry.link_keyseq) {
$link = $.entry->get_link($k);
if ($link.url != "" and $k!= "tell_friend") {
var string caption = $my_captions{$k} ? $my_captions{$k} : $link.caption;
$return = """$return$*text_sidebar_link_separator
$caption""";
}
}
return $return;
}
Change the words highlighted in orange to the words you wish to have for the links instead.
Compile your layer, and it's ready to use. You will need to apply your theme layer via the
Customize interface in order for your changes to take effect.
Additional References
What are the different S2 layer types?
Written by
camomiletea.