Joomla 2.5 + How to display the category in the url - joomla

I was hoping someone could help me. I've searched high and low for an answer for this one, and I haven't been able to find the exact answer (even within the forum).
How can I display the category name in the url in Joomla (v2.5). I have 2 categories in my site so far. For example, I have a category called Refrigeration. I created an article called test and put it under the Refrigeration category. But for some reason, it will only display in the URL as:
www.something.com/test.html.
I would like it to display like this:
www.something.com/refrigeration/test.html
I know you can create a hidden menu, using the category (such as "Refrigeration") as the parent, and placing the related articles underneath that category (ie - with "Refrigeration" as their parent). But this seems rather inefficient. I just really want to be able to separate my articles on the site into different categories, and have that category display in the url.
Or, is the only way to accomplish this to install an SEF extension?
Any help is greatly appreciated. Please let me know if I need to provide further information.

The default Joomla SEF functions solely on the menus structure. It's hard to believe, but once you accept that Joomla Menu's aren't for actually "building menus" and more for build url / site structure, life will become a bit easier.
To do what you want, you can create the hidden menu for each category, and it should work without having to put each article as a menu item underneath in the hidden menu. However, it would be much easier to use a SEF component to handle it for you. There may be some lightweight plugins available, but I haven't seen one.
SEF components can be found here: http://extensions.joomla.org/extensions/site-management/sef

Related

Joomla - Modifying default category list view (through overrides?)

I'm building a site for a friend and I should state that this is not what I'm doing for living. I just started working with Joomla a few days ago.
Everything is good so far, except I'm stuck at one point.
This is a site for a construction company and I need to create articles for on-going and completed projects. I will create an article for each project and each article will belong to a category, 'Completed' and 'On-Going', respectfully.
I plan to create menu links for 'Completed' and 'On-Going' categories in main menu. I also want to present a thumbnail of the article on the category list. Problem is, standard look of the category list is kinda ugly, and I have no idea how to change it. I'm using a template named PixelDot, but it does not seem to do any good for my problem.
During my research, I stumbled upon concepts 'Layout Overrides' and 'Alternative Layouts'. I have basic html and css knowledge, also some PHP, but I am totally lost on which file(s) to modify. I also need a little help on get the entry text picture as a thumbnail on the category list (this is the list where you see 'articles' aka projects which belongs to the category (completed or on-going), when you clicked on relevant menu button)
Any help will be highly appreciated. My Joomla version is 3.4.1. (which I believe most up-to-date version as today)
I'm sometimes making it more complex while I try to make things detailed and clear, I hope this is not one of those cases.
First, I would suggest using tags rather than categories to manage this. Tags are much better suited for temporary labelling or dividing into groups.
Second, go to the template manager, template view for your template.
Go to the create over ride tab and select the view that you want to override (i.e. tagged items).
This will automatically copy all the files to the correct location in your template.
At that point you can play around with the layouts to your heart's content.
Also ... some pieces of the layout you may want to override may not be in the traditional layout but may be in a jlayout. You can do the same thing with them. THis is all documented in the docs.joomla.org site as well as around the web.
I also would do this with Tags. One reason is, assuming you are using SEF URLS, that the projects article pages will have a unique URL. If you move a project's article from "on-going" to "completed" then you may be changing that SEF url. This will cause your search engine ranking for that page to be lost.
I would tag each article "on-going", "completed", etc and then create a menu item to display only that specific tag. The project's article would stay in its original category, that could be my project type, project location, etc; which also will increase the SEO for that given project's article.

How to achieve dynamism with Joomla?

i'm new to Joomla and i'm considered in the phase of discovering it yet , my problem here is that i'm using Joomla to make a cafe online ordering website , i want the customer to access the website and make his order from it, so i have to provide him with an active menu containing the cafe menu items, so i have to provide a radio buttons(or something like that) in order to give the customer the ability to choose his order items and to confirm his choices at last. i searched a lot about how to make that using Joomla and didn't reach to any thing , so it will be great if anyone can help me in such stuff.
You can not build complex custom forms with Joomla out-of-the-box.
The best solution depends on your needs - especially your further processing of the order.
If you just want to send it by mail to someone or to have it saved in the database, then it would be a enough to use a form extension for joomla. You will find many form extension on JED - they vary a lot in features, usability,flexibility and price. I often use breezingforms because it is very flexible and you can extend it with your own code (mostly).
If you want a full "shop" then you should have a look at the virtueMart extension for joomla. Or even at a shop system instead of joomla.
If you want full control you can write your own HTML and PHP Code and inject it into Joomla by a module such as Sourcerer from nonumber.nl. Or you write your own extension...

Gallery of images with long descriptions in Joomla

I need to make something like gallery of magazine covers in joomla, and after clicking one image, it should open a page, where viewer would see an image of cover (that he could open in full size) and table of contents with links to some articles. Administrator should also be able to (reasonably) easily add a new covers with content to a gallery. I'm more like a Drupal guy, so I'm asking Joomla guys - what would be the best/easiest way to achieve this (including using extensions etc)? :)
You should be able to do that within the standard Joomla framework. In this case -
Have a main category that each issue would be a subcategory of.
Each issue of the magazine would be a new category, the magazine cover would be the image for that category.
Add the content as articles in the appropriate category
Display the parent category to get the listing of each issue.
Clicking the category would then display a list of links to the articles within the category.
This can definitely be accomplished with the K2 extension, but you can probably do it within the Joomla category/article framework with some simple template overrides.
To suit your needs, you will be best off using a Photo Gallery component and changing the link from opening an iframe/full size image, to an article OR a Portfolio component which I think might be the easier option.
One of my personal favorites is BT Content Slider. I have used it on multiple pages and adapted the code to suit our own needs and it works like a charm. Would also recommend it for you too.

Get preview link to article before publishing

In Joomla 1.5, I created an article. Before publishing it, I want to send a preview URL to my colleagues (they are not registered to Joomla).
I'm looking for something like adding task=preview to the URL and it would show the article.
It would be enough if the article would be normally published but would not be displayed on the main page in the latest news. I tried to set "Front Page" to "No" but without success.
How can I solve the problem?
Joomla! 1.5 doesn't have a feature like this and from the way it's built I'm not sure it's possible without modifying the core com_content files. You could try a search of the Joomla! Extension Directory to see if someone has implemented what you're after.
In the meantime if the article is turning up on the websites front page even when you've set it not to - then the front page must be using a Section/Category Blog page style rather than a Joomla Frontpage page. In this case you could find out which category is set to show on the menu item being used for the front page and then temporarily change your article to another that doesn't appear there.
Once you've got it in another Category you should be able to get a link to the article by doing a search from the front end (assuming you don't want to create a menu link).
try creating a new category called Preview and since that wouldn't have been assigned to any pages yet, it should not appear. If you have trouble finding the article then, you could temporarily publish it either on the home page or somewhere in the menu. Then when you have found and copied the url, you can remove the article from the home page or menu or wherever you temporarily have it appear.
If you should ever want several 'preview' articles appearing on one page, create a new menu item, assign it to the Preview category you made, and in System Parameters, click on Show Title: 'No' so it doesn't appear in the menu. I don't know about what shows up in Google for example so if it's sensitive data I can't say it won't show in search engines, it probably will.
It probably appears on the Front Page because as you say it's part of the 'latest news' module. You could also try removing it from the module feed, but a new category is what I'd do.
Paul
I just selected Section: "Uncategorised" and the article went out from the latest news. Hope it's not accessible any other way in the current setup (there is no search function hopefully). It's not a cleanest solution, but it seems to work.

display custom attributes on Virtuemart browse page

I need the browse page to show quantity box, custom attributes, and Add to Cart button all together.
It doesn't show it at all. Only when you go to the product page, you can see them.
Any solutions?
Thanks, Ahmed.
Ahmed, you'll have to modify the template directly to do something like that. VM uses a large number of template files written in PHP. If you're using the default template, you can find them here:
components/com_virtuemart/themes/default/templates/
From there, it takes a little looking around to figure out exactly which template you need to edit. If you need to edit a browse template, my recommendation is go to your VirtueMart Administration in Joomla backend and look at Admin | Configuration | Site | Layout to get an idea of which files you're using. It will probably say "Default" in the dropdown, with a Configuration link directly below. Click that link and look at the very first item, Product List Style. From the description of your layout desires, you might be using Flat Product List.
The main file for editing that layout is:
components/com_virtuemart/themes/default/templates/browse/includes/browse_listtable.tpl.php
If you're a programmer, you should be able to look thru the code and correctly guess which code elements are being used to display VM product details. If you're not a programmer, you can still fake it by commenting out sections to see what "goes away" on the actual product page. Use what you learn to strip out useful code and move it around.
Another useful file to pull VM product code from is:
components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php
This is the actual product view (unless it's been changed in VM config), and contains pretty much all the common code elements that extract product details. You should be able to lift some of that code and place it where it needs to go in other forms.
Good luck with all of this. I find VM coding painful, and community support in the VM forums can be... sparse...

Resources