contenta_vue_nuxt
contenta_vue_nuxt copied to clipboard
A bit more info guys
Having finally got vue_nuxt to run following the advice here https://github.com/contentacms/contenta_vue_nuxt/issues/57 I changed the following:
In the nuxt.config.js:
// change this to your own server. const serverBaseUrl = 'http://localhost:3000'; const serverFilesUrl = 'http://contenta.com'; // where I installed the CMS :3000 didn't work??
Also in components/RecipeDetail.vue I changed
<div class="content method"> <h3 class="title has-text-centered"> Methods </h3> <div v-html="recipe.instructions.value" /> </div> to: <div class="content method"> <h3 class="title has-text-centered"> Instructions </h3> <div v-html="recipe.instructions" /> </div>
And the recipe details page works nicely now. The link on the home page :
Quick and easy 20 minutes or less doesn't work:
` case 'quick':
recipes = await findAllRecipesByMaxTotalTime(20, limit, offset);
break;
And the function it calls is: `export function findAllRecipesByMaxTotalTime( maxTotalTime, limit = 4, offset = 0 ) { const query = { sort: '-created', include: 'image,image.thumbnail', filter: { totalTime: { condition: { path: 'totalTime', value: maxTotalTime, operator: '<', }, }, }, fields: { recipes: 'title,difficulty,image', images: 'name,thumbnail', files: 'filename,uri', }, page: { offset: 0, limit: limit, }, };
Anybody see any errors in that?`
Created https://github.com/contentacms/contenta_vue_nuxt/pull/59