Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Document maps web part with multiple location fields View modes: 
User avatar
Member
Member
Yehuda - 6/1/2012 4:59:46 AM
   
Document maps web part with multiple location fields
I'm trying to use the document maps web part with documents that have multiple fields for the location (eg. "Street", "House no", "City"), and no latitude/longitude fields.
Is there any way I can use the default web part to achive this, or do I have to implement my own?

Thanks

User avatar
Kentico Support
Kentico Support
kentico_janh - 6/1/2012 7:54:29 AM
   
RE:Document maps web part with multiple location fields
Hello,

Our standard map web parts allow to display location according to one address field from some document. If your document has an address separated into more the one field, you need to customize it, but you don't have to implement it from scratch. You can just clone the web part you want (Site Manager -> Development -> Web parts) and customize it.

Best regards,
Jan Hermann

User avatar
Member
Member
Yehuda - 6/1/2012 11:48:53 AM
   
RE:Document maps web part with multiple location fields
Hello,

Could you please point me to what part of the web part I could customize?
I already cloned the Google documents map web part, and it takes the location field as string (CMSMapProperties.LocationField), which at least doesn't seem to take several fields.

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 6/3/2012 2:51:15 AM
   
RE:Document maps web part with multiple location fields
Hi,

above field is a property of web part in which you can define a location, it is the same as longitude or latitude, i.e. only one field setting.

Maybe there is an easier solution for you. You could create another field in definition of your document type, which could be hidden by default so editor would not see it.

Then you could create a custom global event and update value of this field after document is saved, so you would create the address in one line using API. This field could be used in google map web part property (Location field).

How to create a global event you can find in this example

How to modify document field is described here:
document API

Best regards,
Ivana Tomanickova