I want to show all the articles from a certain category in different module positions.
How I think it needs to work. I make a plugin that collects all the articles with their information in a central array. This array get emptied one by one in the module positions that I specify. I presume you'll also need a module that adds to the plugin so the plugin needs to know where the items need to go.
But is this the way to go or do you recommend something different? Maybe it already exist in a component or module?
Why are you making your own plugin to show Joomla article since Joomla already have it Just follow the following steps to create article category module in Joomla.
Create module under extension->module->new->choose-Article-categories
Now choose the article category and the position where you want to publish it. You can choose already available positions or you can create it on the fly.
If you want to publish module in custom position then check this link https://api.joomla.org/cms-3/classes/JModuleHelper.html
Related
I need to make a connection between articles on different languages in Joomla, like in the menu manager. Can anybody tell me how to implement it and if it's possible without using additional plug-ins?
Update:
I already have a multilingual, but only for categories and I need configure it for articles.
There is an example below:
http://clip2net.com/s/6SElBt
Article for "Solar Energy" category and when I change the language I move to the description of this category in another language, but not in the same article.
http://clip2net.com/s/6SEkD1
How do I configure the language switching and stay on the same article?
Joomla 2.5 and later have core support for multilingual content. But there are some extra steps involved, in order to set it up properly.
There are plenty of tutorials out there: http://multilingual-joomla-demo.cloudaccess.net/multi-lingual-steps-by-steps.html
Briefly the process involves the following steps:
Enable and configure the core language plugins
Install the additional translation packs
Add the corresponding content languages
Prepare your categories structure to reflect your multilingual content. - Note that you will have a root category for all languages and then a root category for each language.
Set the main language for your homepage
Create the corresponding Menu Structure for all your languages
Start writing content for each language
Configure and Publish the Language Switcher module.
I think what you are looking for is menu items/article associations.
If the article you want to connect to another is linked to your site through a menu item, go to the menu item in question and see the association tab. There you can select what other menu item you want to connect it to.
You can also associate articles with each other by doing the same thing. Go to article manager->the article in question->association tab and choose what article you would like to link it to.
With Joomla 2.5 you can associate menu items, but not individual articles. So the best you can do is if a menu item links to a specic article, then you link the articles at the menu level.
Joomla 3 has more options, and you can indeed associate individual articles in different languages (at the article level) ... it works like a charm.
Good luck!
I've been trying to find a solution for the same issue on Joomla 2.5 but couldn't.
Today I found this link that describes how the solve the issue on Joomla 3.0:
http://www.slideshare.net/erictiggeler/creating-a-multilingual-site-in-joomla-joomla-3-beginners-guide-eric-tiggeler
I didn't try it yet but it looks like the feature is supported in Joomla 3.0.
I'm working in OpenCart 1.5.5 on some sort of newsmodule for in the side bar. I've got it all running in the back-end, but i don't know how i could asign this module module/aselsi to the right side bar on the home page, product page and category page.
I've already looked in some source code's, but i don't fully understand how this particilur thing works.
I did try to make it work by inserting in the DB tabels oc_layout and oc_layout_route some info, but that also didn't work.
So my question is: How can i make my extension / module apear on the front-page?
By running in the back-end I guess You have created a custom controller, model and view for some form where You manage Your news. That is OK.
But since this should be a module You also have to create a backend part for this module so that it could be installed and assigned to the layout on certain pages. The simplest way how to do this is to copy these files:
admin/controller/module/banner.php
admin/language/<YOUR_LANGUAGE>/module/banner.php
admin/view/template/module/banner.php
into Your new
admin/controller/module/aselsi.php
admin/language/<YOUR_LANGUAGE>/module/aselsi.php
admin/view/template/module/aselsi.php
and rename all the class names, constants, model and language file names from banner to aselsi. After this You should see a new Aselsi module under Extensions > Modules in You administration where You should be able to assign this module to pages and positions...
Just want to mention that simple copy-paste + rename is not enough, You would have to edit some other parts as well to get it working.
EDIT: I'm not at the code right now, but yes, You are right, it has a lot to do with that line You are mentioning in comment. Each module setting is saved as serialized string (which is a serialized array) which contains module settings - layout, position, sort_order, etc. The key is the module key - aselsi in Your case, same as all other modules has their own modules. By only installing the module You set the module as active but You can show the module by saving it's settings. In frontend controllers for left, right column and top and bottom content the active modules are then populated and all set to display on that layout and on that position are displayed then.
The installing/uninstalling of module (in backend) can be extended to e.g. add/remove new DB tables for that module and/or for altering current DB tables (by adding new columns, etc.) by implementing install and uninstall methods with their respective logic.
I hope this simple explanation helps a little.
With Joomla it's possible to load modules into articles and even into other modules, but is it also possible to load menu-item pages into module positions?
For example, I have a menu item that shows the contact-list, in other words every person added in the contacts in the Joomla backend.
I wish to show this contact-list not as an actual page, but within a module or other article, is there any way to achieve this?
It is possible to add a module everywhere in Joomla. Depending where you want to include it there are different approaches.
If you want to add a module in an article you can use the loadmodule placeholder:
{loadposition xx} //( where xx is the position)
See this for more info http://docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F
Assuming that your contact list is generated within a component, you could also take a different approach by using two plug-ins:
Include Component, and
Articles Placed Anywhere
Call the non-sef URL to the component from an article using the syntax used by Include Component. Next, call the article within a module using the Articles Placed Anywhere module.
I was looking for an answer to the same question as you, which eventually pulled me in a different direction. I know your question was posted a long time ago, but I thought I'd answer it anyway. Perhaps it's just a partial answer, but I hope it helps.
In Joomla 1.5, you can set modules to display on certain menus and not display on the others. When you set Joomla to display a module on a menu going to a component, it displays that module on all the possible links inside that component. Is there anyway I can change this feature. Is there a way that I can decide which module shows on some sublinks without creating menus that direct me to those sublinks.
I hope my question is clear. If not pls, ask for clarification and I would do that gladly
You might consider using: http://www.nonumber.nl/extensions/advancedmodulemanager
It gives you enough options to display modules on very specific pages / scenarios like yours.
I'm trying to write a slideshow for joomla. Specifically one that will be placed next to an article (no necessarily associated with the article though). Should i write a component, or a module? OR should I write a component that is placed in the page using a module (like the com_banner and mod_banner stuff in the joomla basic installation).
I know I am reinventing the wheel, but I really want to learn about joomla modding.
You want a module. You can assign modules to any menu items.
Modules will appear on that page and "sub-pages". For example, if you assign a module to a menu item that points to a "Article blog layout", then it will appear on that page and the articles linked from it.
If you only want one specific article, or any page without a specific menu item, create a new menu called "hidden menu" and make a menu item in it. Menus don't appear unless you publish the menu module.
By the way, there are many slideshow components for Joomla already out there - Photoslide from gavick.com is pretty good, and free.
If you want to associate the slideshow to a specific article i think you should write a component, because in this way you have more control on the article and you can manage its structure and its layout.