Subhead on friends page? - Solved

Feb 10, 2007 17:15

I've looked through the tags here and haven't really found anything about this. I know that you can assign a sub-head to the main journal page just by typing it into the "Basics" tab in the Edit Journal Style area. But I'm wondering if there is any css that you could use to put a subhead on your friends page? I tried changing the #header-name but ( Read more... )

s2:theme layer, pageviews:friends, header:nav links

Leave a comment

Comments 2

av8rmike February 12 2007, 20:44:26 UTC
Not with straight CSS, no. You'll have to override the Page::lay_print_header_links () function in your theme layer, like so:
function Page::lay_print_header_links() {
# Menu start
"""
\n""";
container_open("header");
container_open("header-content");
"""
\n
\n\n""";
"""
    \n""";

    # Standard Journal Pages (Recent, Archive, Friends, Userinfo)
    foreach var string v ($.views_order) {
    var string url = $.view_url{$v};
    var string text = lang_viewname($v);
    var string class = "item";
    if($v == $.view) {
    $class = $class + " current";
    }
    if($v == $.views_order[0]) {
    $class = $class + " first";
    }

    $class = " class=\"$class\"";

    print """ $text""";
    }

    var Link memories_url = $.journal->get_link("memories");

    # Memories
    if($memories_url.url != "") {
    println """
  • $*text_view_memories
  • """;
    }

    # Menu end
    """

var string base_url = $.journal->base_url ( ... )

Reply

dragonheart97 February 15 2007, 23:07:20 UTC
Ahh okay... bit more complicated than I thought but at least there is a way if I decide to give it a shot. Thank you! (and sorry this reply is so late!)

Reply


Leave a comment

Up