Home Products Joomla!1.5 Extensions Joomla!1.5 Components Multicategories Component for Joomla!1.5 - Tutorial

Donate

Russian English
Multicategories Component for Joomla!1.5 - Tutorial PDF Print E-mail
Joomla!1.5 Components
Written by Mike Milkman   
Sunday, 11 April 2010 15:57
Article Index
Overview
Changelog
Download
FAQ
Tutorial

Tutorial on how to post the same article into different categories with Multicategories Component for Joomla!1.5

To avoid misunderstanding let's mark sections, categories and links related to Joomla! with (J) and the same stuff related to Multicategories Component with (M)

Before

sectionsLet's say we have musical site. First go to the Back-end. Here we have two (J) Sections:

  • (J) Section "Artists" that has 6 (J) Categories: "A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z";
  • (J) Section "Genres" that has 5 (J) Categories: "Pop", "Rock", "Jazz", "Rap", "Techno".

categoriesEach of the (J) Category that belongs to (J) Section "Artists" contains several articles dedicated to a particular musician. The (J) Categories that belong to (J) Section "Genres" currently has not any articles.

mainmenuAlso we have two common (J) Standard Section Layout menu links in your Main Menu for each of the (J) Section:

  • (J) Artists (index.php?option=com_content&view=section&id=1);
  • (J) Genres (index.php?option=com_content&view=section&id=2).

frontpageNow go to the Front-end. There is a menu in the left column of the main page that contains two links:

  • (J) Artists (http://sitename/index.php?option=com_content&view=section&id=1&Itemid=2);
  • (J) Genres (http://sitename/index.php?option=com_content&view=section&id=2&Itemid=3);

frontartistsThe link "(J) Artists" leads to the (J) Artists Section Page that displays a list of the links to the 6 (J) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z").

fronta-dThe link to (J) Category "A-D" leads to the Page that displays a list of the articles filed under this (J) Category, so does others 5 (J) links.

frontgenresThe (J) Genres link leads to the (J) Genres Section Page that displays a list of the links to the 5 (J) Categories ("Pop", "Rock", "Jazz", "Rap", "Techno").

frontrockThe link to (J) Category "Rock" leads to the Page that displays nothing.

Goal

To make the existing articles shows up in Categories "Pop", "Rock", "Jazz", "Rap", "Techno"

Operations

install1. Install Multicategories Component for Joomla!1.5. During the installation process the Component:

  • makes a COPIES of your 2 (J) Sections: "Artists" and "Genres". Now they are Artists and Genres Level 1 (M) Categories;
  • makes a COPIES of your 6 (J) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z") that belong to the (J) Section "Artists". Now they are Level 2 (M) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z") with the Level 1 (M) Category "Artists" as a parent;
  • makes a COPIES of your another 5 (J) Categories ("Pop", "Rock", "Jazz", "Rap", "Techno") that belong to the (J) Section "Genres". Now they are Level 2 (M) Categories ("Pop", "Rock", "Jazz", "Rap", "Techno") with the Level 1 (M) "Genres" Category as a parent;
  • adds all existing articles to the corresponding Level 2 (M) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z").

Now your 6 Level 2 (M) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z") have the same data as their Joomla! counterparts.

multicategoriesThey belong to the parent Level 1 (M) Category "Artists" (just like the "A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z" (J) Categories belong to the (J) Section "Artists").

multicategorya-dAnd contains the same articles.

Your Level 2 (M) Categories ("Pop", "Rock", "Jazz", "Rap", "Techno") also have the same data as their Joomla! counterparts.

multicategoriesThey belong to the parent Level 1 (M) Category "Genres" (just like the "Pop", "Rock", "Jazz", "Rap", "Techno" (J) Categories belong to the (J) Section "Genres").

multicategoryrockand contains no articles.

But remember although your (M) Categories and (J) Categories look the same and contain the same articles they are completely independent. So if you now make some changes to your (M) Categories you won't see those changes in your (J) Categories.

And that independence gives us many advantages. One of them is the posibility to add one article to different (M) Categories. So let's do it on the next step.

2. Edit (M) Categoriesaddingarticles to add the articles to it:

  • go to Components->Multicategories->Categories to display the list of all your (M) Categories created during the installation;
  • click on the the Level 2 (M) Category "Rock" to edit it;
  • expand the slide panel "Parameters (Articles)" that located to the right to display the list of your articles;
  • choose the articles you want to add to the (M) Category by clicking on them (use Ctrl-Click to select more than one article);
  • click on "Save" button in the Toolbar to save the data;
  • do the same for the rest 4 (M) Categories: "Pop", "Jazz", "Rap", "Techno".

3. Create links to (M) Categories

multicategoriesmenuNow all your (M) Level 2 Categories contain articles. So it's time to add (M) Standard Multicategory Layout Menu Links to your Main Menu where your existing (J) Standard Section Layout Menu Links already located.

multicategoriesmenuartistsTo do it:

  • go to Menus->Main Menu and press "New" button in the Toolbox to create a Menu Link;
  • in the Select Menu Item Type list choose Internal Link->Multicategories->Standard Multicategory Layout;
  • enter a title "Artists";
  • select your (M) Category "Artists" from the Category list at the top of the first slide panel "Parameters (Basic)";
  • click on "Save" button in the Toolbox to save the link;
  • do the same for (M) Category "Genres" entering appropriate title ("Genres") and choosing corresponding (M) Category ("Genres") from the Category list.

multicategoriesmenusNow you have 4 links in your Main Menu:

  • (J) Standard Section Layout Menu Link "Artists" (index.php?option=com_content&view=section&id=1);
  • (J) Standard Section Layout Menu Link "Genres" (index.php?option=com_content&view=section&id=2);
  • (M) Standard Multicategory Layout Menu Link "Artists" (index.php?option=com_multicategories&view=categories&cid=1);
  • (M) Standard Multicategory Layout Menu Link "Genres" (index.php?option=com_multicategories&view=categories&cid=2).

After

frontpageafterNow go to the frontend main page to see the result. The menu in the left column of your main page now contains 4 links:

  • (J) Artists (http://sitename/index.php?option=com_content&view=section&id=1&Itemid=2);
  • (J) Genres (http://sitename/index.php?option=com_content&view=section&id=2&Itemid=3);
  • (M) Artists (http://sitename/index.php?option=com_multicategories&view=categories&cid=1&Itemid=4);
  • (M) Genres (http://sitename/index.php?option=com_multicategories&view=categories&cid=2&Itemid=5).

frontartistsThe link "(J) Artists" leads to the (J) Artists Section Page that displays a list of the links to the 6 (J) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z").

fronta-dThe link to (J) Category "A-D" leads to the Page that displays a list of your articles filed under this (J) Category, so does others 5 (J) links.

frontmulticategoriesartistsThe link "(M) Artists" leads to the (M) Artists Category Page that displays a list of the links to the 6 (M) Categories ("A-D", "E-H", "I-L", "M-P", "Q-V", "W-Z").

frontmulticategoriesa-dThe link to (M) Category "A-D" leads to the Page that displays a list of your articles filed under this (M) Category, so does others 5 (M) links.

frontgenresThe link "(J) Genres" leads to the (J) Genres Section Page that displays a list of the links to the 5 (J) Categories ("Pop", "Rock", "Jazz", "Rap", "Techno").

frontrockThe link to (J) Category "Pop" leads to the Page that displays nothing.

frontmulticategoriesgenresThe link "(M) Genres" leads to the (M) Genres Category Page that displays a list of the links to the 5 (M) Categories ("Pop", "Rock", "Jazz", "Rap", "Techno").

frontmulticategoriesrockThe link to (M) Category "Pop" leads to the Page that displays a list of your articles filed under this (M) Category, so does others 4 (M) links.

So now after comparing (J) Genres Page and (M) Genres Page you can see the difference.



Last Updated on Tuesday, 27 November 2012 05:35