📚
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
$858
★ 4.6
166 reviews
📚
Sony textbook 26
$64
★ 4.4
95 reviews
📚
LG textbook 27
$499
★ 4.3
450 reviews
📚
Dell textbook 28
$1006
★ 3.7
404 reviews
📚
HP textbook 29
$835
★ 4.8
313 reviews
📚
Nike textbook 30
$423
★ 4.7
89 reviews
📚
Adidas textbook 31
$507
★ 4.5
240 reviews
📚
Apple textbook 32
$994
★ 4.2
298 reviews
📚
Samsung textbook 33
$396
★ 3.9
35 reviews
📚
Sony textbook 34
$677
★ 4.0
205 reviews
📚
LG textbook 35
$357
★ 3.5
123 reviews
📚
Dell textbook 36
$1036
★ 4.6
45 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>