betterdazed: (anne of green gables)
betterdazed ([personal profile] betterdazed) wrote in [community profile] style_system2010-09-10 07:02 pm

[Resolved] [Flexible Squares] - Make the subjects in journal/reading page permalinks?

Hi all!

I'm a recent LJ refugee, and I'm hoping for some help in fixing my layout.

I was able to port the layout I'm currently using in my LJ, [livejournal.com profile] betterdazed, which is based on Flexible Squares. However in LJ, the post subjects in my Recent Entries and Friends are permalinks. Right now in DW, the subjects are just texts.

Does anyone have suggestions on how to fix this? Many thanks!
snakeling: Statue of the Minoan Snake Goddess (Default)

[personal profile] snakeling 2010-09-10 06:23 pm (UTC)(link)
In your code, in print_entry, find this bit of code:
            <div class="subject">""";
                if ($e.security != "")
                {
                    $e.security_icon->print();
                }
                """
                $e.subject  
            </div>

Replace it by this one:
            <div class="subject">""";
                if ($e.security != "")
                {
                    $e.security_icon->print();
                }
                if ($p.view != "entry") {
                   print $e->formatted_subject({"class"=>"subj-link"});"  ";
                }
                else { print "$e.subject  "; }
            """</div>

Save and compile. Reload. It should work now :)
krissasaur: (Super Junior ♦ Eunhyuk ▬▬▬ Heart)

[personal profile] krissasaur 2011-12-27 10:14 am (UTC)(link)
I love you. just sayin'
intermezzo: (Default)

[personal profile] intermezzo 2012-01-07 11:02 pm (UTC)(link)
Soooo helpful. Thanks! \o/