📚

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

$786
★ 3.6

175 reviews

📚

Sony textbook 2

$95
★ 4.5

389 reviews

📚

LG textbook 3

$917
★ 3.9

118 reviews

📚

Dell textbook 4

$629
★ 4.3

197 reviews

📚

HP textbook 5

$977
★ 4.8

43 reviews

📚

Nike textbook 6

$649
★ 4.1

330 reviews

📚

Adidas textbook 7

$658
★ 4.0

88 reviews

📚

Apple textbook 8

$408
★ 4.5

409 reviews

📚

Samsung textbook 9

$374
★ 4.3

118 reviews

📚

Sony textbook 10

$714
★ 3.6

159 reviews

📚

LG textbook 11

$351
★ 3.6

251 reviews

📚

Dell textbook 12

$731
★ 4.7

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