How to publish Joomla! articles into multiple categories without 3rd extensions

How  to publish Joomla! articles into multiple categories without 3rd extensions
Questions:
Alot of people have question about how to add article (an article) for Multiple categories in joomla system, or some one ask me How to create a blog of articles from multiple categories?
Answers:
From Doc Joomla: How to create a blog of articles from multiple categories?
“No, Articles and other content items cannot be assigned to multiple categories or sections.” this is main problem.
In Joomla! Joomla 1.0 and Joomla 1.5: Content items are restricted to a single category in a single section. In Joomla! Joomla 2.5 and newer: Content items are restricted to a single category in a category tree.
Possible work-arounds include:

  • creating duplicate articles in multiple categories.
  • using menus rather than dynamic lists of content items.
  • using various third party extensions that simulate assignment to multiple categories.
  • using key words to simulate categories and sections.

Problem: not Good for SEO contents duplicate,

Most of them answers to use 3rd extensions from JED http://extensions.joomla.org/extensions/structure-a-navigation/multi-categorization
Problem: You must to paid for download, and not easy for you to control it if you joomla newbie.
So what is best solution for you can creat a articles blog from multiple categories with joomla CMS without 3rd extensions.

1. Fisrt of Fisrt is login Joomla administrator 🙂
In topbar Content menu Select Category mannager, Creat New category if you have new system else remmeber all your categories name.
2. Creat Tags
In topbar tooin Menu Components Select Tags component and this case creat new one.
Titled as the same your category name, and descriptions allow you to remember it, then click Save.
Do for all tags as same your categories.

d4j-multiple-categories-joomla-article

3. Creat joomla content for multiple tags
Now in Topbar Content menu Select Article Manager: Add New Article
Create new article and assign to category as default your system, but with Tags, remember to add multiple tags as your categories, or tags you just created in step 2.

d4j-multiple-categories-joomla-article2d4j-multiple-categories-joomla-article3

4. Creat your Artiles Blog with articles from multiple categories
in Topbar backend – Menus select your menu and Menu Manager: New Menu Item
named as News (this is my demo category name in this tut, for you can creat new one)
and Select menu item is Tags => Tagged Items – This links to a list of items with specific tags.

d4j-multiple-categories-joomla-article4

With Tag* requiment field please select your Tag. (in this tut I select is News)

d4j-multiple-categories-joomla-article5
then click to Save and close,
Now you can creat new One Menu named is Technology with Tag is technology
Remmeber publish it and assign to Menu you want to display in Frontend.
now can check your Frontend

d4j-multiple-categories-joomla-article6
Affter check frontend sone one to say: Oh, Lam you are rock!, this very easy, but please to check step 5 this is most important!

5. Make your menu same as blog.
If you are coder or webdesigner can easy to do for step 5, else you can download my file.
Login your hosting controlpanel or can use FTP liek FileZilla to creat new folder in your Joomla template named com_tags
your_template/html/com_tags
your_template/html/com_tags/tag
then copy files from folder: components/com_tags/views/tag/tmpl to your_template/html/com_tags/tag
Will like that
your_template/html/
your_template/html/com_tags
your_template/html/com_tags/tag
+ default.php
+ default_items.php

Use your Editor, I like NotePad++  free and easy to use.
Open your your_template/html/com_tags/tag/default_items.php
Line 74 Before: <?php echo $item->event->afterDisplayTitle; ?>

Add code:

<?php
$articleId = $item->content_item_id;
$table_plan         = & JTable::getInstance(‘Content’, ‘JTable’);
$table_plan_return  = $table_plan->load(array(‘id’=>$articleId));
if($table_plan->introtext){
echo “<pre>”.$table_plan->introtext.”</pre>”;
}else{
echo “<pre>”.$table_plan->fulltext.”</pre>”;
}
?>

Save and upload to your server,
Now you can check your Frontend for result.

d4j-multiple-categories-joomla-article7
Conclusion: this tutorial easy to creat articles Blog with multiple category without 3rd extensions and No Hack Joomla core (sure small code in your template will make it nice)

And what will be Solve

  1. No creating duplicate articles in multiple categories. – so dont affect to SEO Contents Duplicate
  2. No using various third party extensions that simulate assignment to multiple categories, Will Save your Money
  3. Easy to do yet, and using Joomla default component, no hack Joomla Core

Happy with my tutorial dont forget to by me a beer 🙂




Be Sociable, Share!

Leave a comment