Adds towns to states managed by RainLab.Location plugin. Included:, (*2)
component for state towns with pagination
component for Town detail
hooks for RainLab.Sitemap
extends RainLab State model
Required plugins: RainLab.Location., (*3)
Tested with the latest stable OctoberCMS build 349., (*4)
Render Town detail
This component render town detail. Just create page Town-detail with slug
/town-detail/:slug? and insert Town component:, (*5)
, (*6)
To override Town detail template just create partial file /town/default.htm as copy
of /plugins/vojtasvoboda/components/town/default.htm and make own changes., (*7)
Render list of Towns
Create page Towns with slug /towns/:page? where page means paginating. Insert
component Towns. Set filter for State and select page for show Town detail
created above:, (*8)
, (*9)
To override Towns listing template just create partial file /towns/default.htm as copy
of /plugins/vojtasvoboda/components/towns/default.htm and make own changes., (*10)
Add towns to sitemap
Just install RainLab.Sitemap plugin and insert one town or all towns to sitemap:, (*11)