📚
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
$711
★ 4.6
463 reviews
📚
Sony textbook 26
$729
★ 3.8
120 reviews
📚
LG textbook 27
$400
★ 4.6
220 reviews
📚
Dell textbook 28
$859
★ 3.9
469 reviews
📚
HP textbook 29
$387
★ 4.8
352 reviews
📚
Nike textbook 30
$371
★ 4.0
10 reviews
📚
Adidas textbook 31
$575
★ 3.7
17 reviews
📚
Apple textbook 32
$706
★ 3.5
297 reviews
📚
Samsung textbook 33
$617
★ 4.8
160 reviews
📚
Sony textbook 34
$785
★ 4.7
391 reviews
📚
LG textbook 35
$83
★ 4.1
29 reviews
📚
Dell textbook 36
$833
★ 4.3
385 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>