City-Specific Descriptions
By default, every city page uses the same service descriptions from the services collection. But if you want a different description for a specific service in a specific city, you can use the city_descriptions collection to override it.
For example: the description for “Roof Repair” might be slightly different for Eagle Pass vs. Del Rio to reflect local conditions.
[SCREENSHOT: A city services page showing a service card with a city-specific description]
Where to Find It
Section titled “Where to Find It”- Log in to Directus.
- Click Content in the left sidebar.
- Click city_descriptions.
- You’ll see a list of city-specific overrides.
Field Reference
Section titled “Field Reference”| Field | What it does |
|---|---|
services_id | Which service this description belongs to (e.g., “Roof Repair”) |
city_slug | Which city this applies to (e.g., eagle-pass) |
translations → description | The custom description text (in English or Spanish) |
Step-by-Step: Adding a City-Specific Description
Section titled “Step-by-Step: Adding a City-Specific Description”- Click Content → city_descriptions.
- Click + Create Item in the top right corner.
- Click the services_id field and select the service this applies to.
- Click the city_slug field and type the city’s URL slug exactly (e.g.,
eagle-pass). - Scroll to Translations and click the English tab.
- Type your custom description in the description field.
- Click the Spanish tab and add the Spanish version.
- Click Save.
Step-by-Step: Editing an Existing City Description
Section titled “Step-by-Step: Editing an Existing City Description”- Click Content → city_descriptions.
- Find the entry for the city and service you want to update and click it.
- Click into Translations, select the language tab, and update the description field.
- Click Save.
How It Works
Section titled “How It Works”When the website loads a city services page, it checks city_descriptions first. If a matching entry exists for that city + service combination, it uses that custom description. If not, it falls back to the default description from the services collection.