Page 1 of 1

badges (count) gone (AG 5.91)

Posted: 2020-11-09 08:37
by onoehring
Hi,

I want to show the count of the sub-records like viewtopic.php?f=13&t=3484
I have put the the following code into header-extras. Version 1 has worked in previous versions.

I have tried the version 1

Code: Select all

<script>
	new AppGiniDetailView().childrenTabs.showBadges();
</script>
and version 2

Code: Select all

<script>
	var dv = AppGiniHelper.DV;
	dv.childrenTabs.showBadges();
</script>
There is 1 Bilder, 2 Dokumente and 24 Änderungen...

Neither one works (right now) with AG 5.91.
badges_count_gone.gif
badges_count_gone.gif (31.02 KiB) Viewed 2833 times
This is how it should look like (old AG and AGHelper version, above code version 1):
badge_count_old.gif
badge_count_old.gif (4.51 KiB) Viewed 2833 times
Olaf

Re: badges (count) gone (AG 5.91)

Posted: 2020-11-09 08:52
by jsetzer
Hi Olaf,
I'm sorry for that. I will have to do some research on this issue!

Workaround

Code: Select all

// file: hooks/header-extras.php
AppGiniHelper.Defaults.dv_childrenTabs_badges = true;
This should globally enable badges on children-tab captions in all detail forms.

This AppGiniHelper.Defaults-Feature is available since 2020/10 but in BETA.

Re: badges (count) gone (AG 5.91)

Posted: 2020-11-09 15:05
by onoehring
Hi Ja,

works. Thank you.

Olaf

Re: badges (count) gone (AG 5.91)

Posted: 2020-12-18 14:09
by jsetzer
You are welcome!