📚
Textbooks - Page 1
Showing page 1 of 5
Path: /marketplace/books/textbooks/1
3
Path Depth
234
Total Items
1
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "textbooks", "1"]
Parsed as:
Category: "books", Subcategory: "textbooks", Page: "1"
📚
Samsung textbook 1
$911
★ 5.0
112 reviews
📚
Sony textbook 2
$198
★ 3.6
446 reviews
📚
LG textbook 3
$862
★ 3.8
359 reviews
📚
Dell textbook 4
$561
★ 4.3
49 reviews
📚
HP textbook 5
$1006
★ 3.6
502 reviews
📚
Nike textbook 6
$715
★ 3.5
280 reviews
📚
Adidas textbook 7
$648
★ 4.2
95 reviews
📚
Apple textbook 8
$834
★ 3.7
404 reviews
📚
Samsung textbook 9
$943
★ 3.5
73 reviews
📚
Sony textbook 10
$414
★ 3.9
495 reviews
📚
LG textbook 11
$212
★ 3.7
83 reviews
📚
Dell textbook 12
$936
★ 4.2
454 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>