📚

Textbooks - Page 1

Showing page 1 of 5

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

Nested Marketplace Route

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

Samsung textbook 1

$993
★ 3.8

226 reviews

📚

Sony textbook 2

$142
★ 4.6

363 reviews

📚

LG textbook 3

$992
★ 4.6

140 reviews

📚

Dell textbook 4

$903
★ 4.6

490 reviews

📚

HP textbook 5

$351
★ 4.1

479 reviews

📚

Nike textbook 6

$218
★ 4.0

156 reviews

📚

Adidas textbook 7

$593
★ 3.7

351 reviews

📚

Apple textbook 8

$539
★ 3.8

28 reviews

📚

Samsung textbook 9

$471
★ 4.5

27 reviews

📚

Sony textbook 10

$291
★ 4.0

350 reviews

📚

LG textbook 11

$200
★ 4.6

177 reviews

📚

Dell textbook 12

$871
★ 4.4

437 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>