![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Hello,
I want to know how to make a link to an LJ crossposted post. See, I'm posting something into DW and it gets crossposted to LJ. It leaves a link to the original DW post in a crossposted LJ post:

I was thinking that it would be nice to have a link to the crossposted LJ post in the original DW post as I didn't see it anywhere.

But the link was nowhere to be found until I stumbled upon one of my friends' friend page that showed my DW post with a link to the crossposted LJ post!

I don't know what theme he uses, but it seems like it's something unmodified and pure DW. I, on the other hand, use a custom theme that is basically copypasted from LJ's Smooth Sailing theme (I was given an instruction how to copypaste it here in this community). Now, I want to add a link to my crossposted LJ posts to my custom theme. Is it possible? I think I'm savvy enough to modify the theme code provided that I know the variable that holds LJ post id.
I want to know how to make a link to an LJ crossposted post. See, I'm posting something into DW and it gets crossposted to LJ. It leaves a link to the original DW post in a crossposted LJ post:

I was thinking that it would be nice to have a link to the crossposted LJ post in the original DW post as I didn't see it anywhere.

But the link was nowhere to be found until I stumbled upon one of my friends' friend page that showed my DW post with a link to the crossposted LJ post!

I don't know what theme he uses, but it seems like it's something unmodified and pure DW. I, on the other hand, use a custom theme that is basically copypasted from LJ's Smooth Sailing theme (I was given an instruction how to copypaste it here in this community). Now, I want to add a link to my crossposted LJ posts to my custom theme. Is it possible? I think I'm savvy enough to modify the theme code provided that I know the variable that holds LJ post id.
Tags:
no subject
Date: 2016-02-01 03:49 am (UTC)no subject
Date: 2016-02-01 03:54 am (UTC)no subject
Date: 2016-02-01 05:47 am (UTC)print_metadata
method call for the entry, which is also what prints out the mood, location, music, and groups values, if available. So a common way to call that for an entry would be$e->print_text();
$e->print_metadata();
$e->print_tags();
$e->print_management_links();
Which would print our the text of the entry, followed by the metadata, the tags, and the management links.
Hmm, it looks like your style has a display for mood and music (or so Google Translate tells me :) ), so I'm guessing it's putting those values in by hand instead of using the
print_metadata()
call. So maybe find the place in your style that inserts that text and add in a value for crosspost? It should be available in the same way as 'mood' and 'music', but using the 'xpost' key.no subject
Date: 2016-02-02 12:32 am (UTC)no subject
Date: 2016-02-01 05:49 am (UTC)no subject
Date: 2016-02-02 12:33 am (UTC)