Have problem in adding new article in joomla the articles are getting added at the top instead of the bottom of existing article.
The sorting order of Joomla articles can be set in several different places, ranging from default settings to menu-specific settings, each one taking precedence over the previous setting.
The best way to make sure you have control over the way your articles are sorted is in your menu item editor. You should check several settings in the "Layout" tab (or "Blog Layout" if that's what you're using):
Category Order - I recommend using "No order", or else the articles will be sorted by category first.
Article Order - Use "Oldest first".
Date for Ordering - Created/modified/published. You probably want to use "Published" here. If you set this to "Modified", any article will be placed last when you save it.
Related
This is difficult to explain but I'll do my best.
I have a site with a number of articles grouped into different menus, which allows me to present relevant content to the visitor depending on what they are interested in. Each article may be in a number of menus.
I have also categorised each article based on the menu that it is most relevant to. I have done this in order to create a landing page using the category list component.
The issue I have is that the urls in the category list output do not relate to the active menu, when the article is in a number of menus. When you click on the article it takes you to the different menu. This issue is fixed if I unpublish the article from all other menus. I understand this is because Single article menu id takes precedence over category menu id's.
I need a fix that selects the active menu id rather than the default.
Any help appreciated.
Joomla cannot do what you want to do by default. In short, you have multiple URLs for each article and you want Joomla to automatically know which context that article is displayed in in order to display the right URL. Joomla can't do this.
What you need to do is that you want to override the layout module for that category and create a code that will get the right URL based on the context you are in. Not a very easy thing to do but this is how it should be done.
Note that there are some extensions, such as flexicontent, that allow articles to be listed in multiple categories, and that will handle such URLs correctly depending on the context.
I am really confused about these 2 concepts. I am basically wanting to change the appearance of the Joomla category page that lists the sub-categories in it. I dont like the default "Alternative Layout" options of Blog and List type. I want to show the sub-categories with an image + sub-category title style similar to some Portfolio layouts I've seen. So I started googling and reading a few docs on how to do this. During this time, I came across the Layout Overrides in Joomla which says that we can create alternative Joomla Layouts to display Modules, components, Category and Menu Items.
Q1) So does this mean that I can create a new layout (for portfolio category as an example) and if I place them inside "templates/myTemplate/html/com_contact/category" folder this layout option will be listed under Alternative Layout drop-down list in admin panel?
While I was reading some more, I then came across the K2 method where it says that K2 allows creating sub-templates to have different styles for each categories. I havent decided if I am going to use K2 or the core Joomla articles. But my main concern is to style some category pages differently to the default blog or list options. When I read the above article, I thought this can be done in Joomla core itself. But when I read the K2 article on Templating with K2 (and the concepts of sub-templates), it said that the core Joomla doesnt allow sub-templating and K2 can do that.
Q2) What is the difference between creating sub-templates for K2 categories and creating custom template layouts for Joomla categories?
I am totally confused here. If Joomla allows to create different layouts for categories which can then be chosen from the admin panel on what layout to use for that category, what is so special about K2's sub-templating which claims that only K2 allows the flexibility of choosing a different layout for different categories?
Can someone help me understand this please? I have been searching to understand the difference for several hours and I am still stuck on this...
I am new to Joomla and I am using the Joomla version 3.3.
There is a big difference in Joomla core Alternative-Layouts and K2's approach. Hard to explain in theory...
Joomla:
The core feature offers two choices: Either create Alt-Layouts and assign them to each Category and (each!) Article in Backend. Or with a new, alternative MenuItem. The latter is achieved through an additional XML file with same name and location. As long as you work with Categories and Listings, the result is quite similar. But it is different when it comes to the Article Fullview: You won't get an alternative layout for full view automatically! You have to assign the layout in backend or use 1 global setting from the article options. The latter will only apply to articles that have no respective Alt-MenuItem. This can result in a "chicken-egg-situation". AFAIK, frontend submission requires an alternative MenuItem for each edit-form. You can't get an alternative full-view layout when you click on a blog/list item "easily". The links from your category items still lead to the "default" without extra work. In my experience, full-view layouts are displayed in the following setups only:
Alt.MenuItem (XML) for Category and Article. A MenuItem for each article has to exist, to automatically pickup your alt.Layout.
Alt.Layout assigned to each Article. (manual work)
Alt.Layout set for Category (no XML). Only 1 global setting in Article's manager options.
K2:
The layout folder structure is simpler. All layout files live in the same folder, you just rename that container folder. e.g. products. The inner files keep their default names. This results in an easier and automated "workflow". A layout is assigned to a category and/or its sub-categories. Article full-views pick up their layout automatically, due to the file/folder structure. There is no difference between frontend/backend. No manual assignment on article edit is needed. Nor single K2 items in the menu. (not to mention, that you get extra fields per category)
Hope this helps.
I'm trying to order some articles from a category in joomla at this url:
http://www.dasphotonics.com/apps/joomla/en/products/electronic-intelligence-and-radar
After put the order at the administration panel, optical harmessing I have it on the fourth place but it appears at the 3rd place, why?.
Regards and thank you
The reason is that Joomla doesn't order the articles by the backend ordering by default.
There are two ways to change this.
Do this ordering Global
Set the ordering method in the Menu
The first one could be changed in the Article List->Options (Top Left Button)->Shared Options (Tab)->Article Order (Drop Down) - Change this to Ordering. This will change all Blog and Category views to this type of ordering.
The second option is in the Menuitem. On the right site you have a Slider called "Blog Layout" there is a Option "Article Order" change this to "Article Manager Order". This will change only this Blog or Category view to this type of ordering.
I'm having problems with a Joomla install (problem exists in both 1.5.13 and 1.5.15) that won't order articles in a category or section blog layout.
I've tried setting the sort order on the layout manually to all the different sort options but it has no effect.
Ordering on the front page works fine.
Any ideas?
You need to Enable Custom Ordering...
install-climber.blogspot.com/2011/09/set-custom-articles-order-parameter-or.html
In the options for the menu item (i.e. when you click the item name), look on the right hand side and click "Parameters (Advanced)".
You should set Category Order to "No, order by Primary Order only" and Primary Order to "Default" (or "Most recent first" if that doesn't work).
If a Category is tuned to be shown in several columns (f.e. 2), but only 1 column fits in template, the soring may be broken.
On my Joomla website, I'd like to have a "about our company" article always be the first article on the front page. I want the other articles to shift down in position as new articles are added, but to keep the "about our company" one constantly on top.
I tried setting the order of that article on the front page manager to -1, but it still shifted down when I added a new article.
Any ideas?
You could write that info in a module and publish that module in a position that shows up before the component.
Do you have the front page sorted by date? If you do then make the about us article have a created date of 2099-01-01 and make sure you switch off show date for that article
Unless you find an adequate plugin for this specific need, I'm afraid you have to manually modify the template.
Depending on the setup, you can use the section or category info as a "fake" article. Enable showing the section/category description in the menu item (it's off by default) and you'll have a text that is always at the top.
I was struggelng with the same issue,... and have found the solution in the joomla documentation.
In the frontpage manager set order number for the article that you want to be "always-on-top" to -1 (minus one). This will make sure it will always have a lower order number than the other articles, even when other people submit articles.
For Joomla 1.5, go to your FrontPage Manager. The article you want to always have at the top, type is -1 in the ORDER column (as William said above). Now next to the name of this column, there is a picture of a floppy disk - you MUST click on this icon to SAVE the order.
Now your WELCOME article is numbered -1 and will always be at the top of your front page.
This question is Google top result, yet Joomla has been upgraded many times since it was asked and answered. Here is a more recent option:
In Joomla 3.4, you can do this by going to the settings of the category that displays the articles, then to its Blog Layout, then set Article Order to Featured Articles Order. This makes featured articles appear above normal articles.
In 2020, one could add Custom Fields (available since Joomla 3.7) to Joomla articles, or just to articles in a certain category, and then modify the template to query this Custom Field and handle articles accordingly.
in the order number in joomla 1.5 setting the order number to a minus figure doesn't work, it keeps reverting back to the default number.