diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 16:56:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-23 16:56:33 +0000 |
commit | bfd49157afbdcb8ecc8e204ff7ab2b246d08be57 (patch) | |
tree | 4aa38bfe70a4054f9f2fe5645b2d18e9fc7f7c94 /mod/groups/views | |
parent | 9d230309a4a8494ec7c409fd045def5ab918c378 (diff) | |
download | elgg-bfd49157afbdcb8ecc8e204ff7ab2b246d08be57.tar.gz elgg-bfd49157afbdcb8ecc8e204ff7ab2b246d08be57.tar.bz2 |
RSS for group topics, including fixes for annotation getURL() override
git-svn-id: https://code.elgg.org/elgg/trunk@2898 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views')
-rw-r--r-- | mod/groups/views/default/forum/topicposts.php | 1 | ||||
-rw-r--r-- | mod/groups/views/rss/forum/topicposts.php | 3 | ||||
-rw-r--r-- | mod/groups/views/rss/forum/viewposts.php | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/mod/groups/views/default/forum/topicposts.php b/mod/groups/views/default/forum/topicposts.php index 5b259d13f..e9ddaa40e 100644 --- a/mod/groups/views/default/forum/topicposts.php +++ b/mod/groups/views/default/forum/topicposts.php @@ -20,6 +20,7 @@ <table width="100%">
<tr>
<td>
+ <a name="<?php echo $vars['entity']->id; ?>"></a>
<?php
//get infomation about the owner of the comment
if ($post_owner = get_user($vars['entity']->owner_guid)) {
diff --git a/mod/groups/views/rss/forum/topicposts.php b/mod/groups/views/rss/forum/topicposts.php new file mode 100644 index 000000000..0165eb215 --- /dev/null +++ b/mod/groups/views/rss/forum/topicposts.php @@ -0,0 +1,3 @@ +<?php
+
+?>
\ No newline at end of file diff --git a/mod/groups/views/rss/forum/viewposts.php b/mod/groups/views/rss/forum/viewposts.php index 157be91da..b537ffc83 100644 --- a/mod/groups/views/rss/forum/viewposts.php +++ b/mod/groups/views/rss/forum/viewposts.php @@ -10,7 +10,17 @@ * @link http://elgg.com/
*/
- echo elgg_view_entity($vars['entity']);
+ //display follow up comments
+ $count = $vars['entity']->countAnnotations('group_topic_post');
+ $offset = (int) get_input('offset',0);
+
+ foreach($vars['entity']->getAnnotations('group_topic_post', 50, $offset, "asc") as $post) {
+ $post->title = '';
+ $post->description = $post->value;
+ echo elgg_view('object/default', array('entity' => $post));
+ // echo elgg_view("forum/topicposts",array('entity' => $post));
+
+ }
?>
\ No newline at end of file |