RSS "Source Site" Opens in Same Window

RSS "Source Site" Opens in Same Window

by Blair F. -
Number of replies: 2
Picture of Particularly helpful Moodlers
Is there a reason that the when the issue of blog posts opening up in the same window was fixed (see http://tracker.moodle.org/browse/MDL-9851) it didn't fix the "source site" link that appears at the bottom of the block when displayed? I would really like that to open up in a new window, as well.
Average of ratings: -
In reply to Blair F.

Re: RSS "Source Site" Opens in Same Window

by Blair F. -
Picture of Particularly helpful Moodlers
I managed to make it work by changing this line:


$this->content->footer = '<a href="'. $rss->channel['link'] .'">'. get_string('clientchannellink', 'block_rss_client') .'</a>';

to this:


$this->content->footer = '<a href="'. $rss->channel['link'] .'" Xonclick="this.target=\'_blank\'" >'. get_string('clientchannellink', 'block_rss_client') .'</a>';

but still not sure why that wouldn't have been done in the first place.

PS... I also don't know why the "X" keeps showing up on this post before the "onclick." Remove that "X" if you use this code.
In reply to Blair F.

Re: RSS "Source Site" Opens in Same Window

by Blair F. -
Picture of Particularly helpful Moodlers
Now that that problem is resolved, I'd love to do two more things, but I can't figure out where to make the change:

1) decrease the number of words showing in the summary from 55 words to 25 words.
2) change the "[...]" that appears after a summary to a hyperlink "[read more]"

If anyone can figure it out, please let me know.

Thanks.