README.txt in Get Locations 7.2
The Getlocations_blocks module provides some blocks with a form to help search
the Getlocations_fields table. It works in conjunction with the following views:
Getlocations by city
Getlocations by province
Getlocations by postcode
Getlocations by country
A good way to work with these is to enable the view, clone it
and then disable the original. You can then set up the clone to your liking.
Once the view is set up you can configure the relevant block.
You can use either a Dropdown or an Autocomplete.
The Dropdown makes the most sense where there are only a few choices, eg less than 50
If you changed the path to the page in the view you will need to set this
in the block as well.
Each form is fully themed so you can alter it using the usual theming methods.
Each block is wrapped in a div which you can control with css.
The blocks can be filtered on fieldname or content type, in both cases
you will need to know the machine name.
Theming.
Getlocations Blocks can be themed by copying the relevant function to your theme's template.php,
renaming it in the usual manner.
eg
theme_getlocations_blocks_city_form() becomes MYTHEME_getlocations_blocks_city_form() where MYTHEME is the name of your theme.
You can edit it there to suit your needs.
These functions can be found in the file getlocations_blocks.module
The functions theme_getlocations_blocks_city_form(), theme_getlocations_blocks_province_form(),
theme_getlocations_blocks_postalcode_form() and theme_getlocations_blocks_country_form()
can be used to theme the city, province, postalcode and country blocks respectively.
File
modules/getlocations_blocks/README.txt
View source
- The Getlocations_blocks module provides some blocks with a form to help search
- the Getlocations_fields table. It works in conjunction with the following views:
-
- Getlocations by city
-
- Getlocations by province
-
- Getlocations by postcode
-
- Getlocations by country
-
- A good way to work with these is to enable the view, clone it
- and then disable the original. You can then set up the clone to your liking.
-
- Once the view is set up you can configure the relevant block.
- You can use either a Dropdown or an Autocomplete.
- The Dropdown makes the most sense where there are only a few choices, eg less than 50
-
- If you changed the path to the page in the view you will need to set this
- in the block as well.
-
- Each form is fully themed so you can alter it using the usual theming methods.
- Each block is wrapped in a div which you can control with css.
-
- The blocks can be filtered on fieldname or content type, in both cases
- you will need to know the machine name.
-
- Theming.
- Getlocations Blocks can be themed by copying the relevant function to your theme's template.php,
- renaming it in the usual manner.
- eg
- theme_getlocations_blocks_city_form() becomes MYTHEME_getlocations_blocks_city_form() where MYTHEME is the name of your theme.
- You can edit it there to suit your needs.
-
- These functions can be found in the file getlocations_blocks.module
-
- The functions theme_getlocations_blocks_city_form(), theme_getlocations_blocks_province_form(),
- theme_getlocations_blocks_postalcode_form() and theme_getlocations_blocks_country_form()
- can be used to theme the city, province, postalcode and country blocks respectively.
-