Why when making a view for a group or type of group are the edit / delete or view links not available as fields for Groups?

I have gone over and over this and can't find it. Do I need to implement this manually through the views API?

Comments

mxh’s picture

Yes, this needs to be (re-)written extra for group entities. Basically you can copy&paste all the stuff regarding the node edit link field plugin, which you may find inside the views module files and adapt it properly for group entities.

kristiaanvandeneynde’s picture

Status: Active » Fixed

If you're not too comfortable with writing plugins -although I do encourage patches- you can fix it through Views UI:

  1. Add the group id (gid) as the first field
  2. Hide the field from display
  3. Add a global field (text)
  4. Rewrite said field as a link
  5. Use the path group/[gid]

I may add edit / delete links in the future, but given the easy way of doing it via Views UI, it's not high on my priority list.

lionslair’s picture

That is what I have done. It just is not elegant.

What file is the code for comment one in. I don't mind taking a look at this and submitting a patch back. I did spend some time trying that approach before but not familure with views enough to have got it right.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.