S2 Question -- Invoke parent behavior from theme layer?

Jul 02, 2005 12:31

So the tags feature finally caused me to make the "leap" to S2. I had a heavily customized S1 Generator style that I have used for some time, but decided for S2 I like Digital Multiplex more ( Read more... )

s2 language, question

Leave a comment

Comments 9

troworld July 3 2005, 01:02:43 UTC
I've been trying to do the same thing with my style, but gave up after trying a few things. I just put the "Previous/Next" links after the last entry, which was good enough for me.

If that works for you, take a look at my modded DM layer here: http://www.livejournal.com/customize/advanced/layerbrowse.bml?id=4297800. Search for "previous" or something. :)

I just haven't had the time to play with it enough to do it properly.

Reply

elo_sf July 3 2005, 05:24:43 UTC
Not authorized to view layer... :(

Thanks for the pointer, and yeah to me this is just a major flaw of several of the styles especially if you are browing on a portable device (CrackBerry, etc.) since scrolling back to the top is non-trivial, on my laptop it is a minor inconvenience.

Looks like per mart there is no access to the layer itself just probably the core implementation.

Reply

troworld July 3 2005, 14:26:11 UTC
Try it again now. I forgot to make it public.

Thanks for the explanation.

Reply

elo_sf July 3 2005, 15:00:11 UTC
thanks, I downloaded and will check it out later.

Reply


mart July 3 2005, 01:17:11 UTC

I'm afraid that it is not possible to run the implementation from a parent layer. It is only possible to run the implementation from the parent class with $super, using $super->print().

The reason that this is impossible is that the new version simply overwrites the old at runtime. The version from the layout (assuming you've overridden it in a theme) does not exist anymore because the new version replaced it. It's just not in memory anymore.

Reply

elo_sf July 3 2005, 05:23:25 UTC
Got it. Shame, but I can understand the implementation methodology and thus the issue.

Reply


bemocked July 10 2005, 18:53:14 UTC
I use DM for my photojournal photoeveryday. I have found it to be more difficult/clumsy to customize than the other s2 layouts.

This is a link to the DM source code, with it (and the code for the core layer) you can see what functions are available to customize your layout.
http://www.livejournal.com/customize/advanced/layersource.bml?id=420357&fmt=html

You can modify the text in the bottom/footer box by adding/customizing:

function Page::print() {}

in your theme layer - good luck!

Reply

elo_sf July 10 2005, 18:58:26 UTC
Thanks, troworld actually pointed the way and then I made a theme layer with even less modifications to minimize the impact of future changes to the core style:

http://www.livejournal.com/customize/advanced/layerbrowse.bml?id=4605440

Reply


Leave a comment

Up