diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/baking-mishaps-our-troubleshooting-tips.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/baking-mishaps-our-troubleshooting-tips.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/baking-mishaps-our-troubleshooting-tips.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/baking-mishaps-our-troubleshooting-tips.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/dairy-free-delicious-milk-chocolate.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/dairy-free-delicious-milk-chocolate.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/dairy-free-delicious-milk-chocolate.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/dairy-free-delicious-milk-chocolate.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/give-it-a-go-and-grow-your-own-herbs.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/give-it-a-go-and-grow-your-own-herbs.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/give-it-a-go-and-grow-your-own-herbs.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/give-it-a-go-and-grow-your-own-herbs.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/give-your-oatmeal-the-ultimate-makeover.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/give-your-oatmeal-the-ultimate-makeover.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/give-your-oatmeal-the-ultimate-makeover.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/give-your-oatmeal-the-ultimate-makeover.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/lets-hear-it-for-carrots.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/lets-hear-it-for-carrots.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/lets-hear-it-for-carrots.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/lets-hear-it-for-carrots.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/skip-the-spirits-with-delicious-mocktails.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/skip-the-spirits-with-delicious-mocktails.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/skip-the-spirits-with-delicious-mocktails.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/skip-the-spirits-with-delicious-mocktails.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/the-real-deal-for-supermarket-savvy-shopping.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/the-real-deal-for-supermarket-savvy-shopping.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/the-real-deal-for-supermarket-savvy-shopping.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/the-real-deal-for-supermarket-savvy-shopping.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/the-umami-guide-to-our-favourite-mushrooms.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/the-umami-guide-to-our-favourite-mushrooms.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/article_body/the-umami-guide-to-our-favourite-mushrooms.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/article_body/the-umami-guide-to-our-favourite-mushrooms.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/articles.csv b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/articles.csv similarity index 75% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/articles.csv rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/articles.csv index 4849654897..c17688b646 100644 --- a/core/profiles/demo_umami/modules/demo_umami_content/default_content/articles.csv +++ b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/articles.csv @@ -1,9 +1,9 @@ title,body,author,slug,image,alt,tags -Give it a go and grow your own herbs,give-it-a-go-and-grow-your-own-herbs.html,Holly Foat,articles/give-it-a-go-and-grow-your-own-herbs,home-grown-herbs.jpg,"Fresh cut herbs including mint, parsley, thyme and dill","Grow your own,Seasonal,Herbs" -Dairy-free and delicious milk chocolate,dairy-free-delicious-milk-chocolate.html,Umami,articles/dairy-free-and-delicious-milk-chocolate,vegan-chocolate.jpg,"A delicious bar of dairy-free milk chocolate, broken into pieces.","Vegan,Chocolate" -The real deal for supermarket savvy shopping,the-real-deal-for-supermarket-savvy-shopping.html,Megan Collins Quinlan,articles/the-real-deal-for-supermarket-savvy-shopping,supermarket-savvy-umami.jpg,Products presented on supermarket shelving.,"Supermarkets,Shopping" -The Umami guide to our favorite mushrooms,the-umami-guide-to-our-favourite-mushrooms.html,Umami,articles/the-umami-guide-to-our-favourite-mushrooms,mushrooms-umami.jpg,A delightful selection of mushroom varieties laid out on a simple wooden plate.,"Mushrooms,Vegetarian" -Let's hear it for carrots,lets-hear-it-for-carrots.html,Umami,articles/lets-hear-it-for-carrots,heritage-carrots.jpg,"Purple, orange, yellow and white heritage carrots.","Carrots,Vegetarian,Healthy" -Baking mishaps - our troubleshooting tips,baking-mishaps-our-troubleshooting-tips.html,"Umami",articles/baking-mishaps-our-troubleshooting-tips,chocolate-brownie-umami.jpg,"A delicious chocolate brownie","Baking,Learn to cook" -Skip the spirits with delicious mocktails,skip-the-spirits-with-delicious-mocktails.html,Megan Collins Quinlan,articles/skip-the-spirits-with-delicious-mocktails,mojito-mocktail.jpg,"Fresh mojito mocktail with garnish of mint leaves, ice, and sliced lime","Alcohol free,Drinks,Party,Cocktail party,Dinner party" -Give your oatmeal the ultimate makeover,give-your-oatmeal-the-ultimate-makeover.html,Umami,articles/give-your-oatmeal-the-ultimate-makeover,oatmeal-fruit-syrup-topping.jpg,"Oatmeal topped with a vibrant mix of berries, nuts, and seeds","Vegan,Vegetarian,Oats,Breakfast,Dessert" +Give it a go and grow your own herbs,give-it-a-go-and-grow-your-own-herbs.html,Holly Foat,articles/give-it-a-go-and-grow-your-own-herbs,home-grown-herbs.jpg,"Fresh cut herbs including mint, parsley, thyme and dill","14,23,16" +Dairy-free and delicious milk chocolate,dairy-free-delicious-milk-chocolate.html,Umami,articles/dairy-free-and-delicious-milk-chocolate,vegan-chocolate.jpg,"A delicious bar of dairy-free milk chocolate, broken into pieces.","27,7" +The real deal for supermarket savvy shopping,the-real-deal-for-supermarket-savvy-shopping.html,Megan Collins Quinlan,articles/the-real-deal-for-supermarket-savvy-shopping,supermarket-savvy-umami.jpg,Products presented on supermarket shelving.,"26,24" +The Umami guide to our favorite mushrooms,the-umami-guide-to-our-favourite-mushrooms.html,Umami,articles/the-umami-guide-to-our-favourite-mushrooms,mushrooms-umami.jpg,A delightful selection of mushroom varieties laid out on a simple wooden plate.,"18,28" +Let's hear it for carrots,lets-hear-it-for-carrots.html,Umami,articles/lets-hear-it-for-carrots,heritage-carrots.jpg,"Purple, orange, yellow and white heritage carrots.","6,28,15" +Baking mishaps - our troubleshooting tips,baking-mishaps-our-troubleshooting-tips.html,"Umami",articles/baking-mishaps-our-troubleshooting-tips,chocolate-brownie-umami.jpg,"A delicious chocolate brownie","3,17" +Skip the spirits with delicious mocktails,skip-the-spirits-with-delicious-mocktails.html,Megan Collins Quinlan,articles/skip-the-spirits-with-delicious-mocktails,mojito-mocktail.jpg,"Fresh mojito mocktail with garnish of mint leaves, ice, and sliced lime","1,12,20,8,11" +Give your oatmeal the ultimate makeover,give-your-oatmeal-the-ultimate-makeover.html,Umami,articles/give-your-oatmeal-the-ultimate-makeover,oatmeal-fruit-syrup-topping.jpg,"Oatmeal topped with a vibrant mix of berries, nuts, and seeds","27,28,19,4,10" diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/pages.csv b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/pages.csv similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/pages.csv rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/pages.csv diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/chili-sauce-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/chili-sauce-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/chili-sauce-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/chili-sauce-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/crema-catalana-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/crema-catalana-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/crema-catalana-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/crema-catalana-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/mediterranean-quiche-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/mediterranean-quiche-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/mediterranean-quiche-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/mediterranean-quiche-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/pizza-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/pizza-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/pizza-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/pizza-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/thai-green-curry-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/thai-green-curry-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/thai-green-curry-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/thai-green-curry-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/vegan-chocolate-nut-brownies.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/vegan-chocolate-nut-brownies.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/vegan-chocolate-nut-brownies.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/vegan-chocolate-nut-brownies.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/veggie-pasta-bake-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/veggie-pasta-bake-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/veggie-pasta-bake-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/veggie-pasta-bake-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/victoria-sponge-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/victoria-sponge-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/victoria-sponge-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/victoria-sponge-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/watercress-soup-umami.html b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/watercress-soup-umami.html similarity index 100% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipe_instructions/watercress-soup-umami.html rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipe_instructions/watercress-soup-umami.html diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipes.csv b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipes.csv similarity index 88% rename from core/profiles/demo_umami/modules/demo_umami_content/default_content/recipes.csv rename to core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipes.csv index 87d2ac6a22..f9b388a0d8 100644 --- a/core/profiles/demo_umami/modules/demo_umami_content/default_content/recipes.csv +++ b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/recipes.csv @@ -1,10 +1,10 @@ title,image,alt,summary,author,recipe_category,preparation_time,cooking_time,total_time,difficulty,ingredients,recipe_instruction,number_of_servings,tags,slug -Deep mediterranean quiche,mediterranean-quiche-umami.jpg,"A delicious deep layered Mediterranean quiche with basil garnish.",An Italian inspired quiche with sun dried tomatoes and courgette. A perfect light meal for a summer's day.,Umami,Main course,40,30,70,medium,"For the pastry:,280g plain flour,140g butter,Cold water,For the filling:,1 onion,2 garlic cloves,Half a courgette,450ml soya milk,500g grated parmesan,2 eggs,200g sun dried tomatoes,100g feta",mediterranean-quiche-umami.html,8,"Pastry,Egg",recipes/deep-mediterranean-quiche -Vegan chocolate and nut brownies,vegan-chocolate-nut-brownies.jpg,"A stack of chocolate and pecan brownies, sprinkled with pecan crumbs and crushed walnut, fresh out of the oven","Scrumptious vegan chocolate brownies that are rich, fudgy, and nutty. These delights have a surprise hint of coconut making them the perfect indulgence. Serve warm with a little vanilla dairy-free ice cream!",Umami,Snack,20,20,40,medium,"6 tbsp sunflower oil, 80g vegan dark chocolate, 170g plain flour, 80g coconut flour, 1 tsp baking powder, 9 tsp cocoa powder, 100g caster sugar, 3 tbsp of maple syrup, 1/4 tsp sea salt, 1 tsp vanilla extract, 230ml unsweetened organic soya milk, 100g pecan nuts, 80g walnut halves",vegan-chocolate-nut-brownies.html,12,"Baking,Chocolate,Vegan,Dairy-free",recipes/vegan-chocolate-and-nut-brownies -Super easy vegetarian pasta bake,veggie-pasta-bake-umami.jpg,Cheesy pasta dish with vegetarian sausages and topped with mozzarella cheese and basil,A wholesome pasta bake is the ultimate comfort food. This delicious bake is super quick to prepare and an ideal midweek meal for all the family.,Umami,Main course,5,20,25,easy,"400g wholewheat pasta, 1 onion, 2 garlic cloves, 1 pack vegetarian sausages, 400g chopped tomatoes, 50g sliced sun dried tomatoes, 1 pinch sugar, 3 tbsp red pesto, 50g cheddar cheese, Basil or mixed herbs, 100g mozzarella",veggie-pasta-bake-umami.html,4,"Vegetarian,Pasta,Baked",recipes/super-easy-vegetarian-pasta-bake -Watercress soup,watercress-soup-umami.jpg,Watercress soup with a sprig of coriander as garnish in a white bowl with green trim.,"A wonderfully simple and light soup, making the most of seasonal, local produce. ",Umami,Starter,10,20,30,easy,"3 bunches watercress,3 potatoes,3 onions,2 leeks,800ml stock,5 tbsp crème fraîche",watercress-soup-umami.html,4,"Soup,Vegetarian",recipes/watercress-soup -Victoria sponge cake,victoria-sponge-umami.jpg,"A classic, uncut Victoria sponge with a deep filling of butter cream and jam","A traditional Victoria sponge cake, perfect for any afternoon with a cup of tea.",Umami,Dessert,20,20,40,easy,"225g butter or margarine,225g caster sugar,225g self-raising flour,4 eggs,1 tsp baking powder,3 tbsp of jam for the filling,Icing sugar to dust the top,Cream to serve",victoria-sponge-umami.html,10,Cake,recipes/victoria-sponge-cake +Deep mediterranean quiche,mediterranean-quiche-umami.jpg,"A delicious deep layered Mediterranean quiche with basil garnish.",An Italian inspired quiche with sun dried tomatoes and courgette. A perfect light meal for a summer's day.,Umami,Main course,40,30,70,medium,"For the pastry:,280g plain flour,140g butter,Cold water,For the filling:,1 onion,2 garlic cloves,Half a courgette,450ml soya milk,500g grated parmesan,2 eggs,200g sun dried tomatoes,100g feta",mediterranean-quiche-umami.html,8,"22,13",recipes/deep-mediterranean-quiche +Vegan chocolate and nut brownies,vegan-chocolate-nut-brownies.jpg,"A stack of chocolate and pecan brownies, sprinkled with pecan crumbs and crushed walnut, fresh out of the oven","Scrumptious vegan chocolate brownies that are rich, fudgy, and nutty. These delights have a surprise hint of coconut making them the perfect indulgence. Serve warm with a little vanilla dairy-free ice cream!",Umami,Snack,20,20,40,medium,"6 tbsp sunflower oil, 80g vegan dark chocolate, 170g plain flour, 80g coconut flour, 1 tsp baking powder, 9 tsp cocoa powder, 100g caster sugar, 3 tbsp of maple syrup, 1/4 tsp sea salt, 1 tsp vanilla extract, 230ml unsweetened organic soya milk, 100g pecan nuts, 80g walnut halves",vegan-chocolate-nut-brownies.html,12,"3,7,27,9",recipes/vegan-chocolate-and-nut-brownies +Super easy vegetarian pasta bake,veggie-pasta-bake-umami.jpg,Cheesy pasta dish with vegetarian sausages and topped with mozzarella cheese and basil,A wholesome pasta bake is the ultimate comfort food. This delicious bake is super quick to prepare and an ideal midweek meal for all the family.,Umami,Main course,5,20,25,easy,"400g wholewheat pasta, 1 onion, 2 garlic cloves, 1 pack vegetarian sausages, 400g chopped tomatoes, 50g sliced sun dried tomatoes, 1 pinch sugar, 3 tbsp red pesto, 50g cheddar cheese, Basil or mixed herbs, 100g mozzarella",veggie-pasta-bake-umami.html,4,"28,21,2",recipes/super-easy-vegetarian-pasta-bake +Watercress soup,watercress-soup-umami.jpg,Watercress soup with a sprig of coriander as garnish in a white bowl with green trim.,"A wonderfully simple and light soup, making the most of seasonal, local produce. ",Umami,Starter,10,20,30,easy,"3 bunches watercress,3 potatoes,3 onions,2 leeks,800ml stock,5 tbsp crème fraîche",watercress-soup-umami.html,4,"25,28",recipes/watercress-soup +Victoria sponge cake,victoria-sponge-umami.jpg,"A classic, uncut Victoria sponge with a deep filling of butter cream and jam","A traditional Victoria sponge cake, perfect for any afternoon with a cup of tea.",Umami,Dessert,20,20,40,easy,"225g butter or margarine,225g caster sugar,225g self-raising flour,4 eggs,1 tsp baking powder,3 tbsp of jam for the filling,Icing sugar to dust the top,Cream to serve",victoria-sponge-umami.html,10,5,recipes/victoria-sponge-cake Gluten free pizza,pizza-umami.jpg,"Olives, basil, and mozzarella top a gluten free pizza crust with marinara sauce.","A gorgeous and simple gluten free pizza, with deliciously indulgent mozzarella and Parma ham. Can easily be vegetarian by leaving out the ham.",Umami,Main course,15,15,30,,"400g gluten free flour, 125ml warm water, 125ml milk, 1 sachet dried yeast, 2 tsp sugar, 1 tsp salt, 2 tbsp olive oil, 4 tbsp tomato puree, 1 garlic clove, Fresh basil, 200g mozzarella, 100g rocket, 5 slices Parma ham",pizza-umami.html,4,,recipes/gluten-free-pizza Thai green curry,thai-green-curry-umami.jpg,"A traditional bowl of creamy, aromatic Thai green curry with chunks of chicken in a small bowl with jasmine rice.",A quick and easy version of the classic Thai green curry. Perfect for a midweek meal!,Umami,Main course,10,15,25,,"400g coconut milk, 400g chicken or tofu, 1 tbsp Thai green curry paste, 1 garlic clove, 2 tsp fish sauce, 400g mushrooms, 200g green beans, Fresh coriander leaves, Jasmine rice",thai-green-curry-umami.html,4,,recipes/thai-green-curry -Crema catalana,crema-catalana-umami.jpg,"Typical Catalan dessert made from cream and egg yolks, covered with a traditional layer of caramelized sugar to provide a crispy contrast.",Enjoy this sweet recipe for one of the oldest desserts in Europe. It requires very few ingredients!,Umami,Dessert,10,20,30,,"1l milk, 200g sugar, 6 egg yolks, 30g cornstarch, 1 cinnamon stick, 1 piece lemon peel",crema-catalana-umami.html,8,"Egg, Vegetarian",recipes/crema-catalana -Fiery chili sauce,chili-sauce-umami.jpg,"An iridescent array of chilies, onions, and garlic, slowly sweating over a low heat","A rich and fiery chili sauce. Take care when handling chili peppers. And serve sparingly!",Umami,Accompaniment,10,50,60,easy,"2 red onions, 1 lemon, 2 limes, 250ml malt vinegar, 7 garlic cloves, 1 green bell pepper, 1 red bell pepper, 800g cherry tomatoes, 30 mixed chilies, Olive oil, 1 tbsp ground black pepper, 1 tbsp brown sugar",chili-sauce-umami.html,60,Vegetarian,recipes/fiery-chili-sauce +Crema catalana,crema-catalana-umami.jpg,"Typical Catalan dessert made from cream and egg yolks, covered with a traditional layer of caramelized sugar to provide a crispy contrast.",Enjoy this sweet recipe for one of the oldest desserts in Europe. It requires very few ingredients!,Umami,Dessert,10,20,30,,"1l milk, 200g sugar, 6 egg yolks, 30g cornstarch, 1 cinnamon stick, 1 piece lemon peel",crema-catalana-umami.html,8,"13,28",recipes/crema-catalana +Fiery chili sauce,chili-sauce-umami.jpg,"An iridescent array of chilies, onions, and garlic, slowly sweating over a low heat","A rich and fiery chili sauce. Take care when handling chili peppers. And serve sparingly!",Umami,Accompaniment,10,50,60,easy,"2 red onions, 1 lemon, 2 limes, 250ml malt vinegar, 7 garlic cloves, 1 green bell pepper, 1 red bell pepper, 800g cherry tomatoes, 30 mixed chilies, Olive oil, 1 tbsp ground black pepper, 1 tbsp brown sugar",chili-sauce-umami.html,60,28,recipes/fiery-chili-sauce diff --git a/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/tags.csv b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/tags.csv new file mode 100644 index 0000000000..4bee57b27a --- /dev/null +++ b/core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/tags.csv @@ -0,0 +1,28 @@ +Alcohol free +Baked +Baking +Breakfast +Cake +Carrots +Chocolate +Cocktail party +Dairy-free +Dessert +Dinner party +Drinks +Egg +Grow your own +Healthy +Herbs +Learn to cook +Mushrooms +Oats +Party +Pasta +Pastry +Seasonal +Shopping +Soup +Supermarkets +Vegan +Vegetarian diff --git a/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php b/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php index 01e998e9b3..a3ca278ab8 100644 --- a/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php +++ b/core/profiles/demo_umami/modules/demo_umami_content/src/InstallHelper.php @@ -81,13 +81,45 @@ public static function create(ContainerInterface $container) { * Imports default contents. */ public function importContent() { - $this->importEditors() + $this->importTags() + ->importEditors() ->importArticles() ->importRecipes() ->importPages() ->importBlockContent(); } + /** + * Imports tags. + * + * @return $this + * + * @throws \Drupal\Core\Entity\EntityStorageException + * @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException + * @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException + */ + protected function importTags() { + $index = 0; + $module_path = $this->moduleHandler->getModule('demo_umami_content')->getPath(); + $term_storage = $this->entityTypeManager->getStorage('taxonomy_term'); + if (($handle = fopen($module_path . '/default_content/languages/en/tags.csv', "r")) !== FALSE) { + while (($data = fgetcsv($handle)) !== FALSE) { + $term_name = trim($data[0]); + + $term = $term_storage->create([ + 'name' => $term_name, + 'vid' => 'tags', + 'path' => ['alias' => '/' . Html::getClass('tags') . '/' . Html::getClass($term_name)], + ]); + $term->save(); + $this->storeCreatedContentUuids([$term->uuid() => 'taxonomy_term']); + $index++; + } + } + return $this; + + } + /** * Imports editors. * @@ -124,7 +156,7 @@ protected function importEditors() { protected function importArticles() { $module_path = $this->moduleHandler->getModule('demo_umami_content') ->getPath(); - if (($handle = fopen($module_path . '/default_content/articles.csv', "r")) !== FALSE) { + if (($handle = fopen($module_path . '/default_content/languages/en/articles.csv', "r")) !== FALSE) { $uuids = []; $header = fgetcsv($handle); while (($data = fgetcsv($handle)) !== FALSE) { @@ -138,7 +170,7 @@ protected function importArticles() { // Fields mapping starts. // Set Body Field. if (!empty($data['body'])) { - $body_path = $module_path . '/default_content/article_body/' . $data['body']; + $body_path = $module_path . '/default_content/languages/en/article_body/' . $data['body']; $body = file_get_contents($body_path); if ($body !== FALSE) { $values['body'] = [['value' => $body, 'format' => 'basic_html']]; @@ -188,7 +220,7 @@ protected function importArticles() { protected function importRecipes() { $module_path = $this->moduleHandler->getModule('demo_umami_content')->getPath(); - if (($handle = fopen($module_path . '/default_content/recipes.csv', "r")) !== FALSE) { + if (($handle = fopen($module_path . '/default_content/languages/en/recipes.csv', "r")) !== FALSE) { $header = fgetcsv($handle); $uuids = []; while (($data = fgetcsv($handle)) !== FALSE) { @@ -253,7 +285,7 @@ protected function importRecipes() { } // Set field_recipe_instruction Field. if (!empty($data['recipe_instruction'])) { - $recipe_instruction_path = $module_path . '/default_content/recipe_instructions/' . $data['recipe_instruction']; + $recipe_instruction_path = $module_path . '/default_content/languages/en/recipe_instructions/' . $data['recipe_instruction']; $recipe_instructions = file_get_contents($recipe_instruction_path); if ($recipe_instructions !== FALSE) { $values['field_recipe_instruction'] = [['value' => $recipe_instructions, 'format' => 'basic_html']]; @@ -284,7 +316,7 @@ protected function importRecipes() { * @return $this */ protected function importPages() { - if (($handle = fopen($this->moduleHandler->getModule('demo_umami_content')->getPath() . '/default_content/pages.csv', "r")) !== FALSE) { + if (($handle = fopen($this->moduleHandler->getModule('demo_umami_content')->getPath() . '/default_content/languages/en/pages.csv', "r")) !== FALSE) { $headers = fgetcsv($handle); $uuids = []; while (($data = fgetcsv($handle)) !== FALSE) { diff --git a/core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/DefaultContentFilesAccessTest.php b/core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/DefaultContentFilesAccessTest.php index 677a2dfa4c..f3c7d53f0e 100644 --- a/core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/DefaultContentFilesAccessTest.php +++ b/core/profiles/demo_umami/modules/demo_umami_content/tests/src/Functional/DefaultContentFilesAccessTest.php @@ -21,9 +21,9 @@ public function testAccessDeniedToFiles() { $files_to_test = [ 'images/heritage-carrots.jpg', - 'recipe_instructions/mediterranean-quiche-umami.html', - 'article_body/lets-hear-it-for-carrots.html', - 'articles.csv', + 'languages/en/recipe_instructions/mediterranean-quiche-umami.html', + 'languages/en/article_body/lets-hear-it-for-carrots.html', + 'languages/en/articles.csv', ]; foreach ($files_to_test as $file) { // Hard code the path since the demo_umami profile is not installed.