You are here:Home»KB»Web Design»CMS»Joomla»Using Joomla Aliases to create preferred URLs
Tuesday, 15 December 2015 21:02

Using Joomla Aliases to create preferred URLs

Written by

This is probably a noobie question so i will warn you guys first but i am a bit stuck. I have had a look about and i do not know what to ask for except here.

I have installed projectfork and installed the PF Menu module. I am using SEF (native not extension). All the links are as follows

http://www.mysite.com/dashboard
http://www.mysite.com/projects
etc..

As you can see they are all root links, but i would like them like

http://www.mysite.com/projectfork/dashboard
http://www.mysite.com/projectfork/projects

On the docs site, the menus on the left do exactly this.
http://projectfork.net/docs

Are all the docs menus actually part of the main menu or is there a joomla trick i can use ie hidden menu item to get all the PF module menu to have 'normal' links?

Solution

  • please consider adding this to the instructions and/or the PF installation as this is a fix other people will want so all their PF stuff is in the same folder/url (less messey) www.mysite.com/projectfork

Install Projectfork

  • this install PF, modules and the menus

Make the following changes:

PF Menu

  • edit the PF menu
  • add a menu item, call it 'projectfork' point it to the PF dashboard
  • in the PF menu select all the other items and select batch (at the top)
  • move all the items under the new 'projectfork' menu item you have just created

Main Menu

  • create a menu item, call it 'projectfork' or what ever you want, do not fill in alias
  • select menu item type 'Menu Item Alias', this is under 'System Links'
  • point the 'Menu Item Alias' to the top level menu item in the PF Menu
  • save

PF Menu Module

  • edit the PF Menu Module called 'Projectfork'
  • set 'Base Item' to 'Projectfork' (or what ever your parent menu item is in the PF Menu)
  • set the start level = 2

You have now configured all your PF links to be under the directory projectfork.

Overview

This solution is not for when you have joomla into a sub-directory because, left as standard the same issue would arise but just in a sub-folder.

My method allows me to have all my projectfork links in the projectfork subfolder. With the standard install of PF and joomla, the PF Menu Module Links are all root items. I wanted my in a subfolder as if i had installed a seperate piece of software whilst everything else was kept route.

This probably arises because i will be using my website for more that PF.

Maybe the solution i have done above might be common Joomla stuff but i found it tricky. I did not even know about joomla 'Menu Alias Item' until today.

Read 1107 times