Metadata and S2 arguments

Mar 31, 2006 10:49

pthalogreen made a cool journal style ages ago, which lists posts by just the music field. I wanted to see if I could do this in S2 and also wanted to include the new location field. And look, I did it! That's probably the most original thing I've managed to do with S2 so far, as opposed to just cribbing other people's code ( Read more... )

Leave a comment

Comments 5

crschmidt March 31 2006, 13:16:07 UTC
page_recent_items is most likely parsed by LiveJournal when deciding how many posts to load. It might be possible if you set it to 50 to ostart, then modify your loop to only print out 25... but then you'd have to do some manual modification to your skiplinks too, since LJ believes you're loading 50, not 25...

In other words, it might be possible, but it's not easy.

Reply

livredor March 31 2006, 14:33:06 UTC
*click* Thank you, I hadn't connected what $*page_recent_items does with why it's unlikely to work the way I want it to. Knowing why I can't do what I want is nearly as satisfying as being able to do it, so I really appreciate this explanation.

Reply


ravenchyld March 31 2006, 16:38:35 UTC
Neat! I'm still new to the whole paid account thing, I hope I can do that stuff when I get better :)

Reply


kunzite1 March 31 2006, 18:03:38 UTC
a couple users have "now playing" sidebar boxes that work like the page summary except that it only prints out the current music on a given page of entries.

so, you get original points for printing out all the metadata and using a query string variable to activate it. :)

Reply


cmshaw April 3 2006, 17:54:18 UTC
I'm still stuck on one thing: I would like to make the metadata page show 50 items per page, while keeping 25 on my main journal. Is this possible? I tried changing $*page_recent_items within the bit of RecentPage::print_body where I deal with the argument version of the page, but this doesn't seem to have any effect.

I think that if you set it in prop_init the change will be processed early enough, but I don't know if that function has access to the arguments....

Reply


Leave a comment

Up