Super Address field is created to have a single field for address. You can have Address 1, Address 2, City, State, Postal Code, Latitude, Longitude (and a button to fetch lat/long from given address). This field type supports GRID and Fluid too. You can use this field to filter Low Search results with distance. Plot location button that fetch lat/long from address makes it complete solution for address saving.
You can use the following tags to populate field on frontend template.
{exp:channel:entries channel="super_address" dynamic="no" limit="1"}
{!--Full Address--}
{super_address} // Prints Full address comma seperated.
{super_address separator="|"} // Prints Full address ("|" seperated).
{!--Any Subfield of address--}
{super_address:address_1} // Prints address 1
{super_address:address_2} // Prints address 2 and so on...
{!--Tag pair--}
{super_address}
{item:address_1} // Prints Address 1
{item:address_2} // Prints Address 2 and so on...
{/super_address}
{!--Tag pair with prefix--}
{super_address prefix="address"}
{address:address_1} // Prints Address 1
{address:address_2} // Prints Address 2 and so on...
{/super_address}
{/exp:channel:entries}
{exp:channel:entries channel="super_address" dynamic="no" limit="1"}
{!--Full Address--}
{grid}
{grid:super_address} // Prints Full address comma seperated.
{/grid}
{grid}
{grid:super_address separator="|"} // Prints Full address ("|" seperated).
{/grid}
{!--Any Subfield of address--}
{grid}
{grid:super_address:address_1} // Prints address 1
{/grid}
{grid}
{grid:super_address:address_2} // Prints address 2 and so on...
{/grid}
{!--Tag pair--}
{grid}
{grid:super_address}
{item:address_1} // Prints Address 1
{item:address_2} // Prints Address 2 and so on...
{/grid:super_address}
{/grid}
{!--Tag pair with prefix--}
{grid}
{grid:super_address prefix="address"}
{address:address_1} // Prints Address 1
{address:address_2} // Prints Address 2 and so on...
{/grid:super_address}
{/grid}
{/exp:channel:entries}
{exp:channel:entries channel="super_address" dynamic="no" limit="1"}
{fluid}
{!--Normal Field --}
{fluid:super_address}
{content}
{item:address_1} // Prints Address 1
{item:address_2} // Prints Address 2 and so on...
{/content}
{/fluid:super_address}
{!--Grid Field--}
{fluid:grid}
{content}
{content:super_address:address_1} // Prints Address 1
{content:super_address:address_2} // Prints Address 2 and so on...
{/content}
{/fluid:grid}
{/fluid}
{/exp:channel:entries}
Version | 1.0.7.2 |
Last Update | one year ago |
Compatibility | EE 7, 6, 5, 4 |
License | Commercial |
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.