Reply To: Types&Views displays automatic map when trying to display only individual fields

Home Forums MapPress Support Types&Views displays automatic map when trying to display only individual fields Reply To: Types&Views displays automatic map when trying to display only individual fields

#10107
BradSiegfried
Participant

In mappress.php the function the_content provides several methods to determine whether to add a shortcut that will create an automatic map or not.  Would it be possible to set an appropriate variable prior to or within the View Template so as to match one of the existing methods, thereby not creating an automatic map?

For example, would it be possible to set the value of $autodisplay or a similar variable at runtime? I’m not clear on how the loop works in terms of when things happen relative to each other.  I’d be happy if I could embed a shortcode to turn auto mapping off and on, for example:

[maps_off] generate desired output with a View Template [maps_on]

Or, can you suggest any code additions to the mappress function the_content so that it can determine whether the View Template is asking for the entire post body (automatic map desired) or just a particular field (no automatic map desired)?

Thanks.

Brad