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 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!
no subject
Date: 2022-08-29 11:28 pm (UTC)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
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!