📚

Textbooks - Page 3

Showing page 3 of 5

Path: /marketplace/books/textbooks/3
3
Path Depth
234
Total Items
3
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["books", "textbooks", "3"]
Parsed as: Category: "books", Subcategory: "textbooks", Page: "3"
📚

Samsung textbook 25

$104
4.4

49 reviews

📚

Sony textbook 26

$948
3.7

271 reviews

📚

LG textbook 27

$880
3.8

38 reviews

📚

Dell textbook 28

$642
4.2

423 reviews

📚

HP textbook 29

$1010
3.6

348 reviews

📚

Nike textbook 30

$302
4.4

393 reviews

📚

Adidas textbook 31

$465
4.4

286 reviews

📚

Apple textbook 32

$776
4.8

354 reviews

📚

Samsung textbook 33

$881
3.9

11 reviews

📚

Sony textbook 34

$722
4.9

462 reviews

📚

LG textbook 35

$869
4.6

249 reviews

📚

Dell textbook 36

$824
4.3

196 reviews

Try These Marketplace Paths

/marketplace/electronics → Electronics category
/marketplace/electronics/phones → Phone subcategory
/marketplace/electronics/phones/2 → Page 2 of phones
/marketplace/clothing/shoes/1 → Page 1 of shoes

Nested Marketplace Implementation

---
// File: /marketplace/[...path].astro
export function getStaticPaths() {
  // Pre-generate all possible marketplace paths
  return [
    { params: { path: 'electronics' } },
    { params: { path: 'electronics/phones' } },
    { params: { path: 'electronics/phones/1' } },
    { params: { path: 'electronics/phones/2' } },
    // ... more paths
  ];
}

const { path } = Astro.params;
const [category, subcategory, page] = path.split('/');
---

<h1>{category} → {subcategory} → Page {page}</h1>