Date: 2022-08-29 11:28 pm (UTC)
london_fan: Almost invisible text: /*CSS-Ninja*/ body {display: none;} (CSS|Code|Ninja)
From: [personal profile] london_fan
Hello there,

taking a look at your code feels a lot like time travelling way into the past! I haven't looked at anything related to component in ages, but I used various heavily modified versions of this style until about a decade ago, so I hoped I could help you. I still vaguely recognize some of your modifications from [livejournal.com profile] component_help, but unfortunately your code seems to be even older than my last version(s) were. so I am wary of mucking around with it. Never change a running system....

Anyway, I have found some traces of the code that's needed to display the permalink (that's what it's called) in your code, so maybe it's just missing the instruction to actually display it?

You already have the following function in your code:

function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text)
{
}


Well, my old Component code of that function included this bit:


### PERMALINK OPTION ###

# Display a permalink: true or false?
var bool show_permalink = true;


I have no idea if adding this code might fix your problem, but it's a startig point. Other than that, I fear this issue is beyond my (limited) coding abilities, especially since I can't replicate your layout to play around with it. Sorry!

If that works, I can also offer you this bit of relevant code to change the Link title for the permalink: set text_permalink = "Link";
change "Link" to whatever you want your permalink link text to say.

Good Luck!

Also, just an additional idea: it might be easier to just "linkify" your entry subjects lines? That's where most layouts have a default permalink anyway. Just a thought...

Oh, did you know that the awesome creative people on DW have replicated the LJ Component layout? I discovered this just recently and got really nostalgic! It's called Librarian's Dream, so if your really old style stops working some day or you want to use all the awesome newer DW features, you might find some awesome alternative there!
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

Dreamwidth style system discussion

April 2025

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

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 6th, 2025 03:48 am
Powered by Dreamwidth Studios