You are here:Home»KB»Web Design»CMS»Joomla»Extensions»Set Projectfork into a sub directory called 'projectfork'
Wednesday, 26 November 2014 00:00

Set Projectfork into a sub directory called 'projectfork'

Written by

The Problem

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

thanks


Solution

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.

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.


Other methods of getting a menu to the url you want

  • Add to main menu (the traditional method)
    -
    move the PF menu items from the PF menu to the Main Item whilst giving it a parent item which will then provide the url structure you want
  • Leave PF Menu in a standalone Module
    -
    If you want the PF Menu module left as is, in a separate module. Just give it a parent item, this parent item is best pointing to the Front dashboard. The downside of this if it has to be dispalyed all the time. You can then go further and hide the parent item. The menu will then look exaclty the same as it was when it was installed but with a url prefix (ie projectfork/dashboard)
  • Publish PF menu next to main menu
    -
    as above but publish the module to the main menu slot, it should then create a menu but next to the regular menu. The advantage of this is the url structure you want is created, the menu is maintained spearately.
Read 1248 times Last modified on Wednesday, 26 November 2014 20:27