Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / Show GMap only in categories with that option

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Show GMap only in categories with that option

More
10 years 11 months ago #16956 by zevjanglo
Hi. Can we set the GMap to show in the category view ONLY for categories for which the GMap field is active?

Any way to do that?

Thanks.
The following user(s) said Thank You: adarr
More
10 years 11 months ago #16958 by loic
Hello,

There is no option to do that, the only way is to custom the code to hide the map for the chosen categories.

Best regards.
The following user(s) said Thank You: adarr
More
10 years 11 months ago #16959 by zevjanglo
Replied by zevjanglo on topic Show GMap only in categories with that option
Any chance you could help me with that custom code?

Thanks.
The following user(s) said Thank You: adarr
More
10 years 11 months ago #16962 by loic
Hello,

You can try smething like that, in 'components/com_adsmanager/views/list/tmpl/default.php' line 180 you have this:
if(@$conf->display_map_list == 1){
        echo TTools::loadModule('mod_adsmanager_adsmap', 'AdsMap');
}

Change this code to have this:
if(@$conf->display_map_list == 1){
        $categoryId = JRequest::get('catid',0);
        if($categoryId == 12 ||
           $categoryId == 13 ||
           $categoryId == 14) {
            echo TTools::loadModule('mod_adsmanager_adsmap', 'AdsMap');
        }
}

You can change the id to match the correct category, you can also add conditions if you need.
I strongly advice you to do this modification in an override.

Best regards.
The following user(s) said Thank You: adarr, zevjanglo
More
10 years 11 months ago #16983 by zevjanglo
Replied by zevjanglo on topic Show GMap only in categories with that option
Thanks. I'll share this with my programmer.
The following user(s) said Thank You: adarr
More
10 years 11 months ago #16990 by loic
Hello,

It will works without problem :).

If you have an issue with that, copy-paste the error here so I will be able to help you.

Best regards.
The following user(s) said Thank You: adarr
Time to create page: 0.597 seconds
Powered by Kunena Forum