gctools-outilsgc / gccollab

Other
23 stars 7 forks source link

Add logical "home" link for Groups #377

Open massierick opened 6 years ago

massierick commented 6 years ago

When browsing files, discussions, etc within a group, the group title appears at the top of the page (and the group image). We should develop a simple script that will automatically link both the group name and the group image to bring the user to the "about" page for the group.

The breadcrumbs in elgg operate very differently than any other site I've ever seen, and clicking home will bring the user to the main collab page, which is probably not what they want when they're in a group.

They can definitely get there by clicking "about", but again, this is not intuitive, since the "about" page on most sites brings the user to a page with company info.

In an ideal world, we should change the breadcrumbs logic, but for now, even this simple fix should work - add javascript to automatically pull the url from the "about" link and insert it as an tag around these 2 things:

<div class="au_subgroups_group_icon au_subgroups_group_icon-medium-wet4"><img src="https://gccollab.ca/mod/group_tools/pages/groups/thumbnail.php?group_guid=386753&amp;guid=116&amp;size=medium&amp;icontime=1531245355" alt="" class="img-responsive img-circle" width="100" height="100"></div>

and

<h1 class="group-title"></h1>