WPIntell

Source evidence

Import on click

RPS Include Content · support · 2015-09-18T23:09:00+00:00

mixedsentiment
mediumseverity
0.85relevance
6replies
Evidence onlycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 1 rows with source links

100.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

0 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Farlif resolved
Hi, as the title says. I’d like to import content from subtitles when the user click on a link. If he wants to know more, he shall get more. If not, the main text (and it’s loading time) shouldn’t be burdened by imported text nobody wants to see. Do you think there’s an easy solution (best would be an js-onclick-event)? Thanks, https://wordpress.org/plugins/rps-include-content/ *subpages not subtitles sorry You could possibly use the “read more” tag within the post that is to be included. This would cause the link/text “Read more” (depending on your theme) to appear within the content of the included post. The user would see only the content present prior to the tag and would need to click the link to view the entire post. You can find out about the use of the more tag in the codex if you are not familiar with it. Thanks, this is a really good idea! I am just afraid I can’t go that way because I will need to have different link anchor texts for different imports. Anyway, thanks for your fast and inspired support! Okay, I followed your link, and in the last paragraph I learned that it is possible to integrate individual anchor texts to the more tag easily. Cool! Well, now I’d like to know this: If I import subtexts this way and only show the individually adapted more tags on the main page, will the complete subtexts yet load already during the fist load of the main page (even if not shown), so that loading the main page is taking heavy times for the server? Or does clicking the more tag load the subtext, and before clicking it the main page is free of that burden? No problem. Using the more tag causes the content above it to load in an archive-like listing of posts. Clicking the more link takes the visitor to a single post which contains the content before and after the more tag. So it would seem the answer to your question is that the main page is free of the burden. You could possibly use AJAX to retrieve the text after the more tag and display it directly on the main page without refreshing or leaving that page if that is the desired effect. RPS Include content does not have this capability natively so you would need to employ some custom PHP/AJAX solution to get this done. We are going to mark this topic as resolved but feel free to reopen it if necessary.

Comments

6 shown
Farlif 2015-09-18T23:10:00+00:00

*subpages not subtitles sorry

redpixelstudios 2015-09-19T15:51:00+00:00

You could possibly use the “read more” tag within the post that is to be included. This would cause the link/text “Read more” (depending on your theme) to appear within the content of the included post. The user would see only the content present prior to the tag and would need to click the link to view the entire post. You can find out about the use of the more tag in the codex if you are not familiar with it.

Farlif 2015-09-19T16:00:00+00:00

Thanks, this is a really good idea! I am just afraid I can’t go that way because I will need to have different link anchor texts for different imports. Anyway, thanks for your fast and inspired support!

Farlif 2015-09-19T17:40:00+00:00

Okay, I followed your link, and in the last paragraph I learned that it is possible to integrate individual anchor texts to the more tag easily. Cool! Well, now I’d like to know this: If I import subtexts this way and only show the individually adapted more tags on the main page, will the complete subtexts yet load already during the fist load of the main page (even if not shown), so that loading the main page is taking heavy times for the server? Or does clicking the more tag load the subtext, and before clicking it the main page is free of that burden?

redpixelstudios 2015-09-25T13:37:00+00:00

No problem. Using the more tag causes the content above it to load in an archive-like listing of posts. Clicking the more link takes the visitor to a single post which contains the content before and after the more tag. So it would seem the answer to your question is that the main page is free of the burden. You could possibly use AJAX to retrieve the text after the more tag and display it directly on the main page without refreshing or leaving that page if that is the desired effect. RPS Include content does not have this capability natively so you would need to employ some custom PHP/AJAX solution to get this done.

redpixelstudios 2015-11-24T19:43:00+00:00

We are going to mark this topic as resolved but feel free to reopen it if necessary.