Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Tested on OG 7.x-2.x with clean Drupal install.
After you install OG with OG UI and visit OG permissions overview or OG roles overview pages in OG config you hit a UX flow wall.
"No group types available" is printed. Without any info or link for new OG users what's the next step.
Image is attached.
Comment | File | Size | Author |
---|---|---|---|
#8 | og-ux-new-link-1794950-8.patch | 544 bytes | alesr |
#3 | og-ux-new-link-1794950-3.patch | 553 bytes | alesr |
#1 | og_after.png | 10.52 KB | alesr |
#1 | og-ux-new-link-1794950-1.patch | 542 bytes | alesr |
og_before.png | 10.11 KB | alesr |
Comments
Comment #1
alesr CreditAttribution: alesr commentedA picture is worth a thousand words.
Compare og_before.png and og_after.png
Image and patch are attached.
Comment #2
amitaibuInstead of !add new, you can use
<a href="@url">add a new content...
Like this the message can be translated as once sentence.
Comment #3
alesr CreditAttribution: alesr commentedThanks for review Amitaibu.
I made a new patch that is translator friendlier.
Comment #4
amitaibuDon't use base_path(), always use l()
Comment #5
alesr CreditAttribution: alesr commentedAre you sure about l()? Because after your suggestion from #2 I changed the link to <a href="@url">... so the translators would be happy.
If I use it in array('@url' =>l('text', 'path')), <a href> inside <a href> is generated.
url() is I guess a better solution in this case or am I wrong?
Do you agree with the part of code below so I can make the final patch?
array('@url' => url('admin/structure/types/add'))
Comment #6
alesr CreditAttribution: alesr commentedComment #7
amitaibu> Are you sure about l()?
Sorry I meant url()
Comment #8
alesr CreditAttribution: alesr commentedOk, here is the patch with url().
Comment #9
alesr CreditAttribution: alesr commented@Amitaibu, can you commit this to -dev.
I have to patch every installation with this until it's not in the -dev.
The patch from #8 should be ready.
Comment #10
alesr CreditAttribution: alesr commentedComment #11
amitaibuThanks.