For Sveltekit I did the following: For this to work, create the data structure like in the video, and create a menu with the title Main. And I used that for the main navigation for the whole site. Added a +layout.server.js to the /routes folder: /** @type {import('./$types').LayoutServerLoad} */ import getDirectusInstance from '$lib/directus'; import { readItems } from '@directus/sdk'; export async function load({ fetch }) { const directus = getDirectusInstance(fetch); try { const menusData = await directus.request(readItems('menus', { fields: ['*', { menu_items: ['label', 'url', { submenu: ['label', 'url'] }] }] })); // Find the menu with the title "Main" const mainMenu = menusData.find(menu => menu.title === "Main"); return { menus: mainMenu ? [mainMenu] : [], // Return an array with the main menu or an empty array }; } catch (error) { console.error('Error fetching menus:', error); return { menus: [], // Return an empty array if there's an error }; } } And then added +layout.svelte: <script> export let data; // Receive the menus data </script> <nav> {#each data.menus as menu} <div> <h3>{menu.title}</h3> <ul> {#each menu.menu_items as item} <li> <a href={item.url}>{item.label}</a> {#if item.submenu} <ul> {#each item.submenu as subitem} <li><a href={subitem.url}>{subitem.label}</a></li> {/each} </ul> {/if} </li> {/each} </ul> </div> {/each} </nav> <div> <slot /> </div>
@VaibhavdixitShyam3 ай бұрын
It is not wokring for me when I am using Meta data (export const metadata ) it is working but when I am doing <NextSeo title="About Page Title" description="This is the about page description."/> it is not working any suggestions ?
@MBD-x1s4 ай бұрын
we are watching this after bullshitters like you complied with the wef natzis
@forlaps-agendaautomobile60125 ай бұрын
Hi ! If I didn't use ACF to create my custom post and field how can take my meta data ? I mean that the function "get_field" is created by ACF but when I use your code I have this message "Uncaught Error: Call to undefined function get_field() " Another function exist to call custom fields from my database ? Thanks for the tuto.
@keekykashew5 ай бұрын
is it still a good approach to use sage nowadays?
@WatchandLearnTutorials5 ай бұрын
I'm currently using it on a large web site, got it set up kind of like when doing React or other JS framework, using Blade components, Tailwind etc. I think it's great way to develop WP themes. It's even better now than when this video was created (5 years ago).
@noproytsaad26616 ай бұрын
wish i could like this vid more then once, best explanation ever❤
@TheManix827 ай бұрын
Please help how to export our list with a filter
@IshaqKhan0107 ай бұрын
sir i have payload of millions records how i can add it, which have foreign contains too, in minimum time;
@shubhampatil59357 ай бұрын
Can you let us know how to read response of email that is send and based upon that response perform update data operation? please reply.
@sayedatiqurrahman14837 ай бұрын
so helpful video, recommended
@xxxxxx-pb3oj7 ай бұрын
Yo can i ask u something
@undercontr7 ай бұрын
quantity and price string? why not integer and decimal? why handling with parsing
@zoroC_howto8 ай бұрын
I've tried to deploy on Vercel, but got error with NEXT_PUBLIC_SERVER_URL, PAYLOAD_PUBLIC_SERVER_URL value, please help me
@WatchandLearnTutorials7 ай бұрын
Did you set up those env variables in Vercels admin? I think you need to do that.
@matthewalabi54098 ай бұрын
Thank you
@facundobozzi8 ай бұрын
whats that IDE? Is it from Jet Brains?
@WatchandLearnTutorials7 ай бұрын
Yup. PhpStorm.
@aksh1028 ай бұрын
exactly what I was looking for Thank you!
@chaddavis73258 ай бұрын
Amazing tutorial! Thank you!
@byailen8 ай бұрын
Local directus (with sqlite) instance on git + nuxt static was also an option i guess? You can clone the backend on anywhere anytime you want, edit the dynamic things, then trigger static page generation via custom directus plugin.
@WatchandLearnTutorials8 ай бұрын
My first impulse was to build something similar - have Directus setup locally and Astro would ingest that data and create a static site from it. However, one downside to this is that it is not very portable, if I'm on another computer I would either have to install everything there, or host Directus somewhere (which I did not want). This way I can just clone the Github repo, make changes and push to repo. So it's better for my use case.
@ГенаПетров-н5ы8 ай бұрын
I use Hugo and store my images in source code
@bllfoad8 ай бұрын
can we use translations also?
@WatchandLearnTutorials8 ай бұрын
Probably, but I haven't tried it.
@blokche_dev8 ай бұрын
I enjoy Astro so much. Thanks for sharing your journey through this content migration. Not familiar with Cloudflare. I used to go with Netlify most of the time.
@Yusuf-ok5rk8 ай бұрын
one time, because people on twitter were hyping astro, i went on and checked example sites on astro home page. out of 5, 3-4 were buggy and all were terrible. that was my first impression. I doubt the hype. I don't trust twitter shills. I hope I turn out to be wrong in long run tho.
@WatchandLearnTutorials8 ай бұрын
Astro is currently pretty mature project. For me it worked pretty nice, because it just generates fully static HTML site, can't have many bugs on those 😀
@SpaceSoftSystem8 ай бұрын
setup nodejs website in cwp7
@switchlyrics.9 ай бұрын
Helpful
@arthurkawalewale62419 ай бұрын
the onSend function inside my component's class seems not to be reached...when I press submit...nothing is happening...how do I go about it?
9 ай бұрын
Thanks for sharing this! I'm using LearnPress plugin data to be consumed from an external web service. Thanks!
@iangithinji14529 ай бұрын
Hi. How do I use strapi with clerk js?
@WatchandLearnTutorials8 ай бұрын
Read the docs probably.
@yousifaskar26299 ай бұрын
this was, by far, the best tutorial i've seen yet. Thank you so much!
@WatchandLearnTutorials8 ай бұрын
Glad you liked it 👍
@sarunaskybartas60259 ай бұрын
Hi, thank you 🤘
@Civilizer19769 ай бұрын
Directus 10 is already undergoing validation.
@richardlee27089 ай бұрын
Perfect walkthrough. Just remember your / on your directories which I forgot!
@Civilizer197610 ай бұрын
When opening the product in a new window or reloading the current browser window, the session is re-created in "Directus", although the same session remains in the browser 🤔
@Civilizer19769 ай бұрын
This problem will be fixed in the next video ['11']
@jason.zubiate10 ай бұрын
i think this goes to show how not intuitive payload is to set up. guy clones a repo instead of setting it up himself
@WatchandLearnTutorials10 ай бұрын
You need to clone the repo etc. only if you want a tight integration with Next.js. Otherwise it's just: npx create-payload-app and follow the prompts.
10 ай бұрын
Hello, how do I filter the display of genres in Movies if the genres[is_enabled] field is equal to false? How do I stop this record from being displayed in the Dropdown field? Thanks in advance !!
@ZiPMo8510 ай бұрын
very similar to keystoneJS
@amareshdhanavantri278210 ай бұрын
One of the best tutorials for Drupal theming
@WatchandLearnTutorials8 ай бұрын
Thanks 😀
@canvas_of_code11 ай бұрын
Thank you for making this playlist. It is incredibly helpful.
@WatchandLearnTutorials11 ай бұрын
Glad I could help 👍
@dotuD122111 ай бұрын
thank you
@MrAlao67511 ай бұрын
This is so good. Can we use this with Private Repo? Thank you!
@WatchandLearnTutorials11 ай бұрын
I think you could use a private repo, sure.
@TkoutiAbdelouahab11 ай бұрын
could we make it run without installing dotenv ?
@wchorski11 ай бұрын
have you messed with KeystoneJS? I see a lot of similarities, but getting that 'grass is greener' feeling seeing that Payload comes with more 'out of the box' features.
@WatchandLearnTutorials11 ай бұрын
I heard about it, but I haven't tried it. Also I think the Payload team is doing a great job, and they are partnering with Nextjs/Vercel so we will see how that goes.
@adarshsoni5323 Жыл бұрын
How to rest enable the custom fields using the plugin. Is there any plugin which can do this.
@WatchandLearnTutorials11 ай бұрын
I don't know. Maybe, there is, but I don't know any.
@kacperkepinski4990 Жыл бұрын
what if this is react app?
@WatchandLearnTutorials11 ай бұрын
You would need to add a build step, or you could build it locally and just push that since that way you just get a static site. If it's a framework like Next.js with SSR then this would need to be more involved and also you probably wouldn't be able to host it on a shared hosting.
@pikadroo Жыл бұрын
Write a book my friend, you're doing great!
@lisacarlson2502 Жыл бұрын
This was so helpful. Thank you!
@WatchandLearnTutorials11 ай бұрын
Nice, glad it helped 😀
@Lukas000911 Жыл бұрын
is it possible to do this with react or is it just vue specific?
@WatchandLearnTutorials11 ай бұрын
You can do this with any JS framework or with vanilla JS. So yes, you can do it with React for sure.
@ITisandiamIT Жыл бұрын
Great videos and thank you for sharing. I am creating my own themes, and these videos helped me solve some problems I had. Thanks 🙏!
@WatchandLearnTutorials11 ай бұрын
Glad these videos are still useful to someone after 8 years 😀
@BillElgin Жыл бұрын
Instead of using FTP, can you tell me how to modify the script so it uses SSH to push the files to the shared hosting server?
@DaltonChakma1 Жыл бұрын
Can you make a directus & next.js tutorial with the latest documentations?