silvs_fiction: (Default)
[personal profile] silvs_fiction posting in [community profile] style_system
Hello

I've recently moved her from LJ and I am using Practicality layout on both my journals here (both are paid for).

I would like to have entry navigation links at the top of each entry as well as at the bottom, similar to that found in the Flexible Squares Layout at LJ.

Any assistance would be very welcome. :-)

Date: 2017-04-26 04:35 pm (UTC)
momijizukamori: (dreamsheep | styles)
From: [personal profile] momijizukamori
Okay, so the code isn't too tricky, but installing it can be. Here's the code:


function Page::print_entry(Entry e)
{
$e->print_wrapper_start();
"""
\n""";
"""
\n""";
$e->print_management_links();
$e->print_subject();
$e->print_metatypes();
$e->print_time();
"""
\n""";
"""
\n""";
"""
\n""";
"""
\n""";
"""
\n""";
$e->print_userpic();
$e->print_poster();
if ($*entry_metadata_position == "top") { $e->print_metadata(); }
$e->print_text();
if ($*entry_metadata_position == "bottom") { $e->print_metadata(); }
"""
\n""";
"""
\n""";
"""
\n""";

"""
\n""";
"""
\n""";
$e->print_tags();
$this->print_entry_footer($e);
"
\n
\n";

$e->print_wrapper_end();

}


You'll have to make a new layer in the Advanced Customization section - the easiest is probably to create a style-specific layer of type 'theme' and style 'Practicality'. Paste in the contents of your current theme layer, which looks to be Neutral Good, and add the code I provided at the end of the file. You should then be able to find it in your custom layers and apply it, though you'll have to redo your other customizations.

Alternatively, you can add the code onto the bottom of the wizard layer already generated by the style interface - it'll be listed as 'auto-generated customizations' and highlighted to show that it's in use. However, if you add the new code there, and then make changes through the style interface, you'll have to go back and re-add the code - the info in the layer gets wiped out when you save changes in the interface.

You'll probably also have to add some CSS styling to make it look good, but they'll have classes and stuff for that.

Date: 2017-04-26 07:35 pm (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)
From: [personal profile] momijizukamori

No problem! I've done a bunch of backend work with S2, so I know where everything is - it's unfortunately more complicated of a set-up than it really needed to be (thanks, Brad)

Profile

Dreamwidth style system discussion

August 2017

S M T W T F S
   12345
6789101112
13141516171819
20212223242526
2728293031  

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 23rd, 2017 02:26 am
Powered by Dreamwidth Studios