Skip to content

mlangumier/prismic-ts

Repository files navigation

Prismic Typescript TailwindCSS

Start

npm i npm run dev starts dev server + slice-machine

Goal: navigate to one page, then use filters: /thematic/mountain + search filters: city => result-page

Migrate to clientV7 (from V6)

Changes: predicate -> filter, query -> get,

TODO

  • Finish updating URLs (/destination & /inspiration + add Typologie) + check how to have same route with different type (/inspiration/:typology & /inspiration/:thematic)
  • Add multi-lang
  • Setup relationships Area -> Region -> City -> Hotel / Arrondissement -> Hotel
  • Start creating custom-components (w/ asText(data.title...))
  • Start creating slices ?

Get Data from Content relationships

Get details

client.getByType("hotel", { fetchLinks: "city.name" });

Get with filter

const hotels = await client.getAllByType("hotel", {
  filters: filter.at("my.hotel.thematics.thematic", thematic.id),
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published