[personal profile] mmeg posting in [community profile] style_system
Is there a way to add the "previous 5" (or 10 or whatever) link to the navigation bar at the top of my recent entries, reading and network pages? I'm using Mixit, which I believe is a Core1 LJ style.

ETA: Also I figured out how to reverse the order of the entries on my reading page (for values of figured out which equal bugging the Support people), but it didn't reverse the order of my Page Summary. I wonder if there's a way to do that. (I care about this much less than the first question.)

Date: 2010-09-12 01:52 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Because it's Core1, that means it's not supported, which means we have to figure it out from first principles.

Easiest way? Find the line of code that prints it at the bottom of the page, and copy it into the right bit at the top of the page.

Harder way, and not ideal, but doesn't involve hacking layers, is to move it with CSS, but that'd mean it was only at the top.

Basically, find it in the layer code, you're looking for the link with class="prevnext" in the code.

No idea on the latter, and doubt it'd be possible without going into the guts of thepage summary module. So beyond my ken, because I like it that way...

Date: 2010-09-12 02:04 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Nice)
From: [personal profile] matgb
You're not authorized to view this layer.

Needs to be made public, which I can never remember how to do, it's in the styles docs somewhere, LMK when it's done and I;'ll have a look in the morning if noone else has (it's 3am, insomnia doesn't always make me coherent even when I try helpful)

Date: 2010-09-12 03:48 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
Um...

Mixit is the same source as Expressive. Which is what I had on LJ. Expressive is significantly less flexible than Tabula Rasa, which is the basic DW style I now use.

I will, however, look at the code tomorrow for you, but if you can't do something in TR that you can do with Mixit, that's a bug that we need to fix.

Date: 2010-09-12 04:10 am (UTC)
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
From: [personal profile] matgb
OK, I think, but can't test. In the function
function Page::lay_print_header_links()

There's a line at the end that says
print """<li$class><a href="$url" title="$text">$text</a></li>""";

After this, but before the } on the next line, copy in the following:

I think that works. I'm not 100% sure and can't test it without creating a whole new style.

But, trying to be less cranky in this comment, Mixit is essentially the Vox layout redone for LJ. It's one of the best LJ layouts in terms of functionality, which is why the DW style devs used it as a basis for the core DW layout. Anything doable in Mixit is doable in a Core2 layout, the big advantage of that is you maintain all the built in accessibility goodness that they've spent ages building (ie friends using screenreaders, mobile browers, etc still get a good experience), and if there're new funtions created site wide that benefit everyone, you still get them.

Looking at your layout, I think you can make it Better in TR or similar, wihtout much tweaking. I definitely made a much better layout for DW than I had on LJ.

Date: 2010-09-12 03:34 pm (UTC)
adalger: Earthrise as seen from the moon, captured on camera by the crew of Apollo 16 (Default)
From: [personal profile] adalger
I took a look poking around in your layer this morning, and it may need more than just a quick edit. You have duplicates of things, and that may be causing the compiling issues you're having because of ... strange arcane behind-the-curtain hand-wavy stuff. To get this to work the way you want, someone may have to go clean up the code to the point where everything is only in there once.

You mentioned this came "pre-hacked." Can you point a finger at the source and maybe we can lean on the original hacker? :)

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 10th, 2025 09:52 pm
Powered by Dreamwidth Studios