Hot answers tagged

4

The only way I know to remove menu or category IDs from the urls is to either override the router system (not fun) or use a SEF component like sh404Sef (there a several others, I just used this one as an example). It lets you fully control the alias/urls for everything in your site.


3

You can use AS keyword. Try this: $query ->select('a.id, a.alias AS cat_alias, b.category_id, b.item_id, c.id, c.name, c.alias AS item_alias') ... ... ; Then foreach ($resultado as $key => $value) { echo "alias: $value->cat_alias"; } Note: Using AS keyword is not mandatory, so you can omit it. For example: $query->select('...


3

I FOUND THE SOLUTION!!! Temporary change menu item type to Text Separator, modify alias to your liking and change type back to External URL. REFERENCE:http://www.mysysadmintips.com/other/web/285-remove-date-and-time-from-joomla-menu-link-url Thanks to all for the help. ;)


2

This is a pretty easy thing to do, it might just not be very easy to find or well documented. Follow these three steps: Step 1: Create a new menu then go to the menu item(s) you would like to duplicate and select them all. Step 2: Select batch, in the bottom left under "Move or copy" select the menu you created in step 1 and underneath the title select "...


2

You could accomplish this in your component's route.php file. The particulars would depend on how your routing in route.php is done so I can't give you an exact answer but I think you'd need to update your parse() method to include something like this the beginning: public function parse(&$segments) { if(count($segments)==1 && $segments[0]=='...


1

I managed to get this working by editing the (already existing Helix / Joomshaper) override. After spending a (very!) long time trying to figure out where the /items url parameter was coming from, I gave up and modified the override. I know this isn't a solution but it solves my problem, and possibly someone else that uses the Helix framework or a ...


1

No, there is no simple way to this. At least, simple means a lot of things for everybody here. I will give you some good directions on this however. First of all, J2Store has Simple products, variable products, configurable products, flexible products...etc. So how do you think it's simple? Then there is the content component which handles the articles, ...


1

Yes it redirects to the long address; in your case IMHO: you have to write a router to supporting SEF URLs in your component. I think, all you need is described here: https://docs.joomla.org/Supporting_SEF_URLs_in_your_component


1

Unfortunately, there's no simple way to achieve what you want. When you create a menu item, your link goes to the menu item alias, not to the article alias. So you need a menu item for your article, but you don't have to show the menu item. This can be achieved in two ways: Hidden menu Create a new menu (Menus → Manage → Add New Menu). Call it ...


1

Update to 3.4.8 and run the rebuild menu command. Seriously update to 3.4.8 as soon as possible (I'm not saying that will fix your menu issue, but it will improve the security of your site)


1

Have you check the alias In Menu item? Did you try Menu >> Rebuild Rebuild. Reconstructs and refreshes the relevant table. Normally, you do not need to rebuild this table. This function is provided in case the data in the table becomes corrupted. https://docs.joomla.org/Help35:Menus_Menu_Item_Manager


1

I think you are looking for a way to install one extension in several sites, and streamline some customization. This plugin or module would be only for you to show fixed content under certain specific conditions: site-1 -> images/pictureXY.jpg site-2 -> Hello there It is certainly possible, but you have to create it to hardcode the customizations ...


1

You could always just create a duplicate menu module instead of creating a duplicate menu. You can limit the levels shown to make sure you only see top level menu items for a footer.


1

First of all - alternate template (place template file in your template/html/com_content directory). Article to help you: http://docs.joomla.org/Layout_Overrides_in_Joomla Then - add new editing options to altered template. You can use existing options as refference.


1

If you're talking about the article alias, invoke the content model or read it from the database. If you're talking about the alias in the url, getting it is not easy: Joomla has so many ways of generating it: it will be different if you get to the article : via a blog or category list, it will be based on the article alias; through a direct menu item, ...


1

One possibility is slightly modifying the layout to allow more template controls. This is not directly related to getting the alias of the article, but another approach. To do this add this field inside the templateDetails.xml file <field name="htmllayout" type="list" default="center" label="HTML Layout" description="Dynamic layout style from ...


Only top voted, non community-wiki answers of a minimum length are eligible