klox7 VIP
Total posts: 914
13 Jan 2015 14:27

Hello,

could you concider adding new parameter to map template and that is "Info window template". As far as I know (please tell me if I'm wrong) you can assign info window template only in geo field parameters.

Adding parameter would allow to choose different info templates for records list and modules.

And would be also possible to add parameters to info window template:). For now there is only php file, no xml.

Regards

Last Modified: 15 Jan 2015


Sergey
Total posts: 13,748
13 Jan 2015 15:35

Unfortunately I cannot path this from list template to field. Param,eters of template are not accessible in the fields.

But you can check if you are in module or in section and format info widow differently. If we are in a module, meas reacord list called through API. It will set global parameter.

if(JFactory::getApplication()->input->get('api') == 1) {
    // we are in the module
}
else
{
    // we are in the section
}

klox7 VIP
Total posts: 914
13 Jan 2015 18:14

If I try this in geo field window template it always outputs what's inside else. I also tried this code if(JURI::root()!=JURI::current()) and no effect.


Sergey
Total posts: 13,748
15 Jan 2015 09:30

What is JFactory::getApplication()->input->get('api') in window template?

Powered by Cobalt