# New Developments

## New Developments

**Files:** `src/content/developments/<language>/` · **Skill level:** Beginner

A **development** is a new-build project you sell for its builder: an apartment building, a row of townhouses, converted lofts. Each one is a file with the number of homes, the completion date and the starting price, and gets its own page with an sign-up form. The demo has three: The Orchard Residences, Quayside Lofts and Parkline Terraces.

<div class="border border-dark">
  ![A Lotline development page with the photo band, the starting price and the facts](/images/lotline/development.jpg)
</div>

Developments are not listings. They don't appear in the `/properties/` filters, and they have no bedrooms or floor area. If you also sell single homes inside a development, add each one as a listing in [Properties](/lotline/customization/properties/).

### A Development File
```yaml
# src/content/developments/english/the-orchard-residences.md
---
title: "The Orchard Residences"
description: "Forty-eight apartments going up on the site of the old orchard nurseries..."
neighborhood: "cedar-park" # file name in src/content/neighborhoods/
homes: "48 apartments, 1 to 3 bedrooms"
status: "Now selling" # label as written
completion: "Fall 2027"
priceFrom: 395000 # in [listings] currency
agent: "marcus-lin" # sales contact, file name in src/content/agents/
image: "/images/lotline/developments/the-orchard-residences.jpg"
imageAlt: "Nine-story apartment building with yellow balconies, still being finished"
gallery: [] # optional [{ image, alt }]
highlights:
  - "Facing the park's north lawn"
  - "Balcony or patio with every home"
order: 1
draft: false
---

The development is one nine-story building with a shared garden behind it...
```

| Field | Type | What it does |
| --- | --- | --- |
| `title` (required) | text | The development's name |
| `description` | text | The lead line on the page and on its row in the developments section |
| `neighborhood` | neighborhood id | Where it is. The page lists homes for sale in the same neighborhood |
| `homes` | text | The homes it has, as written: `"18 townhouses, 3 and 4 bedrooms"` |
| `status` | text | A label as written: `"Now selling"`, `"Launching soon"`, `"Last homes"` |
| `completion` | text | When it's finished, as written: `"Spring 2028"` |
| `priceFrom` | number | The lowest price, in the currency of `[listings]`. Shown as "From $395,000" |
| `agent` | agent id | The sales contact. Their card sits beside the sign-up form |
| `image`, `imageAlt` | image path, text | The photo on the row and in the page band |
| `gallery` | list of `image`, `alt` | More photos on the page, opened in a lightbox. Empty hides the gallery |
| `highlights` | list of text | Short check rows under the text |
| `order` | number | Position everywhere (lowest first) |
| Named blocks | | `ctaSection` for this page only |

The text under the frontmatter is the longer description on the page. `homes`, `status` and `completion` are plain text, so write them the way you'd say them to a buyer.

### The Development Page
`/developments/<file name>/` shows, top to bottom:

1. **A tall photo band** with the name, the status, the "from" price and the neighborhood.
2. **The lead and four facts**: homes, completion, prices from, status.
3. **The gallery**, when `gallery` has photos.
4. **The text and the highlights.**
5. **Homes for sale nearby**: up to three listings for sale in the same neighborhood, with a line that says they aren't part of the development. When there are none, a "Plans and prices on request" box links to the form.
6. **The sign-up form**, titled "Join the interest list" in the demo, beside the sales agent's card. The form also sends the development's name.
7. The call to action band, from the file's own `ctaSection` or else the one in `-index.md`.

The sign-up form is the `enquirySection` block of `src/content/developments/english/-index.md`, in the `card` layout. Its title, fields (name, email, phone, bedrooms, message) and messages apply to every development page. `anchor: "register"` lets any button link to the form with `#register`.

### The Developments Page And Section
`/developments/` shows every development as a row: the photo on one side, the name, the neighborhood, the facts and a "View development" link on the other, with the photo side alternating. The developments home (`/home-2/`) shows the same rows.

```yaml
# src/content/sections/english/developments-section.md
title: "New *developments* we're selling"
link:
  enable: true
  label: "All developments"
  url: "/developments/"
ids: [] # file names in the order to show; empty = every one by `order`
limit: 0 # 0 = every development
button: "View development" # the link on each row
```

On `/developments/`, the `developmentsSection` block in `-index.md` sets the intro over the rows and turns the "All developments" link off, since it would point at the same page.

### Add A Development
<Steps>

1. Copy `src/content/developments/english/parkline-terraces.md` and rename it after the development.
2. Put its photo in `src/assets/images/lotline/developments/` and point `image` at it as `/images/lotline/developments/<photo>.jpg`.
3. Fill in the fields. Check that `neighborhood` and `agent` are file names that exist.
4. Set `order` to place it among the others.
5. Copy the file into `french/` and `arabic/` with the same name, translate the text, and keep `priceFrom` the same.
6. Run `npm run astro-check`.

</Steps>

When a development sells out, change `status` to something like `"Sold out"`, or set `draft: true` in every language to take it down. The Properties menu links to `/developments/`, so remove that link too if you stop selling new-builds. See [Menus](/lotline/customization/menus/).

<Aside type="note">
  Only list developments you really sell, with prices and dates the builder has
  given you. The sample developments, prices and dates are made up.
</Aside>

### Do It With AI
```text
Add a new development to my Lotline site: [NAME] in the [NEIGHBORHOOD] neighborhood,
[HOMES, e.g. "24 apartments, 1 and 2 bedrooms"], status "[STATUS]", completion [DATE],
prices from [PRICE], sales contact [AGENT]. Highlights: [LIST]. Description: [TEXT].
Copy src/content/developments/english/parkline-terraces.md to a new file named after it, fill in
my values, use file names that exist in src/content/neighborhoods/ and src/content/agents/, then
create the French and Arabic files with the same name and run npm run astro-check.
```