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.
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.
$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.
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.
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.