From 5a2b02c4fa356697df382b2567a797a8c490caf3 Mon Sep 17 00:00:00 2001 From: chmst Date: Sun, 20 Sep 2020 22:29:34 +0200 Subject: [PATCH 1/7] Separate Metismenu, speaking names for menu items --- .../language/en-GB/plg_sampledata_blog.ini | 21 ++-- plugins/sampledata/blog/blog.php | 104 +++++++++--------- 2 files changed, 61 insertions(+), 64 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index bf9e553d6e35a..d07c624af8d75 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -21,30 +21,29 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_3_TITLE="About your home page" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_FULLTEXT="" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_INTROTEXT="

Your site has some commonly used modules already preconfigured.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_4_TITLE="Your Modules" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_FULLTEXT="

These include:

Each of these modules has many options which you can experiment with in the Module Manager in your site Administrator. Moving your mouse over a module and selecting the edit icon will take you to an edit screen for that module. Always be sure to save and close any module you edit.

Joomla! also includes many other modules you can incorporate in your site. As you develop your site you may want to add more module that you can find at the Joomla Extensions Directory.

" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="

Templates control the look and feel of your website. This blog is installed with the Cassiopeia template.

You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).

For example you can change the site background color, highlights color, site title, site description and title font used.
More options are available in the site administrator. You may also install a new template using the extension manager.

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_FULLTEXT="

This blog is installed with the Cassiopeia template.

You can edit the options by selecting the Working on Your Site, Template Settings link in the top menu (visible when you login).

For example you can change the site background color, highlights color, site title, site description and title font used.

More options are available in the site administrator. You may also install a new template using the extension manager.

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="

Templates control the look and feel of your website.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_TITLE="Your Template" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_FULLTEXT=" This will be a nice documentation on multi column Layouts in J4.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est " PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_INTROTEXT="

Millions of Websites are built on Joomla!

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Multilingual" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="Uurnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke. " -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

We love Joomla to the moon and back! Thank you to all voluteers who have contributed!

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="

Uurnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.

" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

We love Joomla to the moon and back! Thank you to all volunteers who have contributed!

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Flexible System" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_FULLTEXT="

Cupcake ipsum dolor. Sit amet cotton candy ice cream sesame snaps cake marshmallow powder. Ice cream chocolate cake marshmallow halvah bonbon. Dragée carrot cake danish candy muffin brownie. Candy sugar plum ice cream chupa chups macaroon tiramisu soufflé oat cake. Topping cheesecake lollipop gummi bears icing sweet roll donut liquorice. Pie jelly-o candy donut oat cake cotton candy.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="

We proudly present Joomla Version 4!

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Security First!" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Template" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla V4" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Template" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Metismenu" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Article" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Archive" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Articles" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE="Lorem" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE="Ipsum" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE="Articles" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Joomla V4" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Millions of Websites" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Flexible System" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index bfb18adee8d26..a25c0458d86bf 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -534,7 +534,7 @@ public function onAjaxSampledataApplyStep2() 'num_leading_articles' => 4, 'num_intro_articles' => 0, 'num_links' => 2, - 'orderby_sec' => 'front', + 'orderby_sec' => 'rdate', 'order_date' => 'published', 'blog_class_leading' => 'boxed masonry-2', 'show_pagination' => 2, @@ -582,29 +582,15 @@ public function onAjaxSampledataApplyStep2() 'secure' => 0, ), ), - // Blog with 3 columns array( + // Sample metismenu (heading) 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE'), - 'link' => 'index.php?option=com_content&view=category&layout=blog&id=' . $catids[2], - 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'type' => 'heading', + 'link' => '', + 'component_id' => 0, 'params' => array( - 'layout_type' => 'blog', - 'blog_class_leading' => '', - 'blog_class' => 'boxed columns-2', - 'show_category_title' => 0, - 'num_leading_articles' => 1, - 'num_intro_articles' => 2, - 'num_links' => 0, - 'orderby_sec' => 'rdate', - 'order_date' => 'published', - 'show_pagination' => 2, - 'show_pagination_results' => 1, - 'show_category' => 0, - 'info_bloc_position' => 0, - 'show_publish_date' => 0, - 'show_hits' => 0, - 'show_feed_link' => 1, + 'layout_type' => 'heading', 'menu_text' => 1, 'show_page_heading' => 0, 'secure' => 0, @@ -747,52 +733,55 @@ public function onAjaxSampledataApplyStep2() ), ), array( - // Category List - 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE'), - 'link' => 'index.php?option=com_content&view=category&layout=list&id=8', - 'parent_id' => $menuIdsLevel1[0], - 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, - 'params' => array( - 'page_subheading' => 'Subheading of List', - 'menu_text' => 1, - 'show_page_heading' => 1, - 'secure' => 0, - ), - ), - array( - // Single article + // Blog 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE'), - 'link' => 'index.php?option=com_content&view=article&id=3', - 'parent_id' => $menuIdsLevel1[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE'), + 'link' => 'index.php?option=com_content&view=category&layout=blog&id=' . $catids[0], + 'parent_id' => $menuIdsLevel1[3], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( - 'menu_text' => 1, - 'show_page_heading' => 1, - 'secure' => 0, + 'layout_type' => 'blog', + 'show_category_title' => 0, + 'num_leading_articles' => 1, + 'num_intro_articles' => 4, + 'num_links' => 2, + 'orderby_sec' => 'front', + 'order_date' => 'published', + 'blog_class_leading' => 'boxed columns-1', + 'blog_class' => 'columns-2', + 'show_pagination' => 2, + 'show_pagination_results' => 1, + 'show_category' => 0, + 'info_bloc_position' => 0, + 'show_publish_date' => 0, + 'show_hits' => 0, + 'show_feed_link' => 0, + 'menu_text' => 1, + 'show_page_heading' => 0, + 'secure' => 0, ), ), array( // Category List 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE'), - 'link' => 'index.php?option=com_content&view=featured', - 'parent_id' => $menuIdsLevel1[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE'), + 'link' => 'index.php?option=com_content&view=category&layout=list&id=' . $catids[0], + 'parent_id' => $menuIdsLevel1[3], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( + 'page_subheading' => 'Subheading of List', 'menu_text' => 1, 'show_page_heading' => 1, 'secure' => 0, ), ), array( - // Articles (menun header) + // Articles (menu header) 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE'), 'type' => 'heading', 'link' => '', - 'parent_id' => $menuIdsLevel1[0], + 'parent_id' => $menuIdsLevel1[3], 'component_id' => '', 'params' => array( 'menu_text' => 1, @@ -818,11 +807,21 @@ public function onAjaxSampledataApplyStep2() // Add a third level of menuItems $menuItems = array( array( - // Article1 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_17_TITLE'), + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[5], + 'parent_id' => $menuIdsLevel2[4], + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, + 'params' => array( + 'menu_show' => 1, + 'secure' => 0, + ), + ), + array( + 'menutype' => $menuTypes[0], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[6], - 'parent_id' => $menuIdsLevel2[5], + 'parent_id' => $menuIdsLevel2[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_show' => 1, @@ -830,11 +829,10 @@ public function onAjaxSampledataApplyStep2() ), ), array( - // Article2 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_18_TITLE'), + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), 'link' => 'index.php?option=com_content&view=article&id=' . (int) $articleIds[7], - 'parent_id' => $menuIdsLevel2[5], + 'parent_id' => $menuIdsLevel2[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( 'menu_show' => 1, From 4db6f01b7012b363e3405cbfb7d022bb72ee4a3f Mon Sep 17 00:00:00 2001 From: chmst Date: Mon, 21 Sep 2020 09:37:06 +0200 Subject: [PATCH 2/7] Fix parent_id in author menu --- plugins/sampledata/blog/blog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index a25c0458d86bf..d6ff5fbb9e872 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -711,7 +711,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_9_TITLE'), 'link' => 'index.php?option=com_config&view=config', - 'parent_id' => $menuIdsLevel1[4], + 'parent_id' => $menuIdsLevel1[5], 'component_id' => ExtensionHelper::getExtensionRecord('com_config', 'component')->extension_id, 'access' => 6, 'params' => array( @@ -724,7 +724,7 @@ public function onAjaxSampledataApplyStep2() 'menutype' => $menuTypes[1], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE'), 'link' => 'index.php?option=com_config&view=templates', - 'parent_id' => $menuIdsLevel1[4], + 'parent_id' => $menuIdsLevel1[5], 'component_id' => ExtensionHelper::getExtensionRecord('com_config', 'component')->extension_id, 'params' => array( 'menu_text' => 1, From 9924470c43b5afcb2b262158bd68aec441e558de Mon Sep 17 00:00:00 2001 From: chmst Date: Tue, 22 Sep 2020 15:33:02 +0200 Subject: [PATCH 3/7] Change the name "metismenu2 to "Sample Layouts" --- administrator/language/en-GB/plg_sampledata_blog.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index d07c624af8d75..aa43d24268fbd 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -38,7 +38,7 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla V4" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Metismenu" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Sample Layouts" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE="Articles" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Joomla V4" From 26db62c7bdc46befc12277b159fded6df700f19a Mon Sep 17 00:00:00 2001 From: chmst Date: Wed, 23 Sep 2020 23:50:35 +0200 Subject: [PATCH 4/7] Change mansory to columns, Add a link to the parent in the sample menu, use layout noCard for newsflash --- plugins/sampledata/blog/blog.php | 35 +++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index d6ff5fbb9e872..5c84d948f2233 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -536,7 +536,7 @@ public function onAjaxSampledataApplyStep2() 'num_links' => 2, 'orderby_sec' => 'rdate', 'order_date' => 'published', - 'blog_class_leading' => 'boxed masonry-2', + 'blog_class_leading' => 'boxed columns-1', 'show_pagination' => 2, 'show_pagination_results' => 1, 'show_category' => 0, @@ -743,7 +743,7 @@ public function onAjaxSampledataApplyStep2() 'layout_type' => 'blog', 'show_category_title' => 0, 'num_leading_articles' => 1, - 'num_intro_articles' => 4, + 'num_intro_articles' => 2, 'num_links' => 2, 'orderby_sec' => 'front', 'order_date' => 'published', @@ -779,16 +779,31 @@ public function onAjaxSampledataApplyStep2() // Articles (menu header) 'menutype' => $menuTypes[0], 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE'), - 'type' => 'heading', - 'link' => '', + 'link' => 'index.php?option=com_content&view=category&layout=blog&id=' . $catids[2], 'parent_id' => $menuIdsLevel1[3], - 'component_id' => '', + 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( - 'menu_text' => 1, - 'show_page_heading' => 1, - 'secure' => 0, + 'layout_type' => 'blog', + 'show_category_title' => 0, + 'num_leading_articles' => 3, + 'num_intro_articles' => 0, + 'num_links' => 2, + 'orderby_sec' => 'front', + 'order_date' => 'published', + 'blog_class_leading' => 'boxed columns-3', + 'blog_class' => '', + 'show_pagination' => 2, + 'show_pagination_results' => 1, + 'show_category' => 0, + 'info_bloc_position' => 0, + 'show_publish_date' => 0, + 'show_hits' => 0, + 'show_feed_link' => 0, + 'menu_text' => 1, + 'show_page_heading' => 0, + 'secure' => 0, ), - ), + ) ); try @@ -1005,7 +1020,7 @@ public function onAjaxSampledataApplyStep3() 'cache' => 1, 'cache_time' => 900, 'cachemode' => 'itemid', - 'style' => 'Cassiopeia-default', + 'style' => 'Cassiopeia-noCard', 'module_tag' => 'div', 'bootstrap_size' => '0', 'header_tag' => 'h3', From 8f0fb6ce29a5bdab28541b9c5ac7ab84f2937c72 Mon Sep 17 00:00:00 2001 From: chmst Date: Thu, 24 Sep 2020 10:47:28 +0200 Subject: [PATCH 5/7] Joomla 4, use article title as menuItem title --- .../language/en-GB/plg_sampledata_blog.ini | 11 ++++------- plugins/sampledata/blog/blog.php | 14 +++++++------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index aa43d24268fbd..fae337f4c378c 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -26,24 +26,21 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_INTROTEXT="

Templates control PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_5_TITLE="Your Template" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_FULLTEXT=" This will be a nice documentation on multi column Layouts in J4.

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est " PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_INTROTEXT="

Millions of Websites are built on Joomla!

" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Multilingual" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE="Millions" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_FULLTEXT="

Uurnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko. Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress. Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

We love Joomla to the moon and back! Thank you to all volunteers who have contributed!

" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Flexible System" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Love" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_FULLTEXT="

Cupcake ipsum dolor. Sit amet cotton candy ice cream sesame snaps cake marshmallow powder. Ice cream chocolate cake marshmallow halvah bonbon. Dragée carrot cake danish candy muffin brownie. Candy sugar plum ice cream chupa chups macaroon tiramisu soufflé oat cake. Topping cheesecake lollipop gummi bears icing sweet roll donut liquorice. Pie jelly-o candy donut oat cake cotton candy.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="

We proudly present Joomla Version 4!

" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Security First!" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Joomla 4" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla V4" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla 4" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Sample Layouts" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_12_TITLE="Category List" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_13_TITLE="Articles" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE="Joomla V4" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE="Millions of Websites" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE="Flexible System" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_1_TITLE="About" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_2_TITLE="Author Login" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_3_TITLE="Create a Post" diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 5c84d948f2233..48d1469601acc 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -819,12 +819,12 @@ public function onAjaxSampledataApplyStep2() return $response; } - // Add a third level of menuItems + // Add a third level of menuItems - use article title aslo for menuItem title $menuItems = array( array( 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_14_TITLE'), - 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[5], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_6_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[6], 'parent_id' => $menuIdsLevel2[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( @@ -834,8 +834,8 @@ public function onAjaxSampledataApplyStep2() ), array( 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_15_TITLE'), - 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[6], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=&id=' . (int) $articleIds[7], 'parent_id' => $menuIdsLevel2[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( @@ -845,8 +845,8 @@ public function onAjaxSampledataApplyStep2() ), array( 'menutype' => $menuTypes[0], - 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_16_TITLE'), - 'link' => 'index.php?option=com_content&view=article&id=' . (int) $articleIds[7], + 'title' => Text::_('PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE'), + 'link' => 'index.php?option=com_content&view=article&id=' . (int) $articleIds[8], 'parent_id' => $menuIdsLevel2[4], 'component_id' => ExtensionHelper::getExtensionRecord('com_content', 'component')->extension_id, 'params' => array( From df5447ee3391cccf0d82ffd00bddb3764337a000 Mon Sep 17 00:00:00 2001 From: chmst Date: Thu, 24 Sep 2020 13:12:48 +0200 Subject: [PATCH 6/7] fix typo --- plugins/sampledata/blog/blog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sampledata/blog/blog.php b/plugins/sampledata/blog/blog.php index 48d1469601acc..93e80ca6c6282 100644 --- a/plugins/sampledata/blog/blog.php +++ b/plugins/sampledata/blog/blog.php @@ -819,7 +819,7 @@ public function onAjaxSampledataApplyStep2() return $response; } - // Add a third level of menuItems - use article title aslo for menuItem title + // Add a third level of menuItems - use article title also for menuItem title $menuItems = array( array( 'menutype' => $menuTypes[0], From 63fc39315a768bad138deeba8711cb5089b7a34f Mon Sep 17 00:00:00 2001 From: chmst Date: Thu, 24 Sep 2020 15:04:20 +0200 Subject: [PATCH 7/7] Name"Joomla 4" not accepted, changed to Joomla --- administrator/language/en-GB/plg_sampledata_blog.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/administrator/language/en-GB/plg_sampledata_blog.ini b/administrator/language/en-GB/plg_sampledata_blog.ini index fae337f4c378c..993c72d89077a 100644 --- a/administrator/language/en-GB/plg_sampledata_blog.ini +++ b/administrator/language/en-GB/plg_sampledata_blog.ini @@ -32,10 +32,10 @@ PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_INTROTEXT="

We love Joomla to PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_7_TITLE="Love" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_FULLTEXT="

Cupcake ipsum dolor. Sit amet cotton candy ice cream sesame snaps cake marshmallow powder. Ice cream chocolate cake marshmallow halvah bonbon. Dragée carrot cake danish candy muffin brownie. Candy sugar plum ice cream chupa chups macaroon tiramisu soufflé oat cake. Topping cheesecake lollipop gummi bears icing sweet roll donut liquorice. Pie jelly-o candy donut oat cake cotton candy.

" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_INTROTEXT="

We proudly present Joomla Version 4!

" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Joomla 4" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_ARTICLE_8_TITLE="Joomla" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_1_TITLE="Help" -PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla 4" +PLG_SAMPLEDATA_BLOG_SAMPLEDATA_CONTENT_CATEGORY_2_TITLE="Joomla" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_0_TITLE="Blog" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_10_TITLE="Template Settings" PLG_SAMPLEDATA_BLOG_SAMPLEDATA_MENUS_ITEM_11_TITLE="Sample Layouts"