📚
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
$626
★ 4.2
252 reviews
📚
Nike textbook 38
$338
★ 3.8
268 reviews
📚
Adidas textbook 39
$836
★ 4.5
258 reviews
📚
Apple textbook 40
$1048
★ 4.7
270 reviews
📚
Samsung textbook 41
$758
★ 4.5
44 reviews
📚
Sony textbook 42
$682
★ 3.6
377 reviews
📚
LG textbook 43
$274
★ 4.6
265 reviews
📚
Dell textbook 44
$1034
★ 4.2
133 reviews
📚
HP textbook 45
$818
★ 4.5
60 reviews
📚
Nike textbook 46
$601
★ 4.5
314 reviews
📚
Adidas textbook 47
$872
★ 4.1
229 reviews
📚
Apple textbook 48
$944
★ 4.0
216 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>