📚
Textbooks - Page 5
Showing page 5 of 5
Path: /marketplace/books/textbooks/5
3
Path Depth
234
Total Items
5
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "textbooks", "5"]
Parsed as:
Category: "books", Subcategory: "textbooks", Page: "5"
📚
Samsung textbook 49
$137
★ 4.8
382 reviews
📚
Sony textbook 50
$143
★ 5.0
198 reviews
📚
LG textbook 51
$798
★ 4.2
56 reviews
📚
Dell textbook 52
$667
★ 4.9
451 reviews
📚
HP textbook 53
$391
★ 3.8
14 reviews
📚
Nike textbook 54
$234
★ 4.2
428 reviews
📚
Adidas textbook 55
$249
★ 4.3
119 reviews
📚
Apple textbook 56
$381
★ 3.9
212 reviews
📚
Samsung textbook 57
$1015
★ 3.8
281 reviews
📚
Sony textbook 58
$647
★ 3.9
489 reviews
📚
LG textbook 59
$365
★ 3.7
130 reviews
📚
Dell textbook 60
$859
★ 3.5
95 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>