📚
Textbooks - Page 4
Showing page 4 of 5
Path: /marketplace/books/textbooks/4
3
Path Depth
234
Total Items
4
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "textbooks", "4"]
Parsed as:
Category: "books", Subcategory: "textbooks", Page: "4"
📚
HP textbook 37
$971
★ 4.0
164 reviews
📚
Nike textbook 38
$918
★ 3.6
164 reviews
📚
Adidas textbook 39
$973
★ 4.5
371 reviews
📚
Apple textbook 40
$638
★ 4.5
424 reviews
📚
Samsung textbook 41
$866
★ 4.0
98 reviews
📚
Sony textbook 42
$286
★ 4.8
268 reviews
📚
LG textbook 43
$324
★ 4.0
426 reviews
📚
Dell textbook 44
$528
★ 4.9
76 reviews
📚
HP textbook 45
$368
★ 4.9
240 reviews
📚
Nike textbook 46
$56
★ 3.9
77 reviews
📚
Adidas textbook 47
$775
★ 3.9
161 reviews
📚
Apple textbook 48
$404
★ 4.5
32 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>