jfquestiaux
Well-Known Member
It took me quite a while, but eventually I got it working!
You can now enjoy the features of sh404SEF with Fabrik.
Here is how it works :
Kwown issue : when you have a menu link pointing to a detailed view record, the URL is correct but for some reason the active menu is set to the existing menu item of the list that contains the record.
It can be a problem if these links are submenus that suppose to stay invisible when they are not active. I hope I'll find a solution.
You can see the plugin in action on my site.
EDIT : as of March 24th, I uploaded a new version to correct a few issues. If you have already downloaded the previous version, you should replace the file by this one. Be sute to have the 1.2 version (check in the top of the file).
You can now enjoy the features of sh404SEF with Fabrik.
Here is how it works :
- While it is not part of the Fabrik download on GitHub, upload the attached file into components > com_fabrik > sef_ext and override the included file.
- Then do the following settings (required for it to work) :
- For each of your lists, you have to set a "SEF slug" : in the "navigation" tab of your list's settings, choose one element that will be used in the SEF URL
- Optional but important : there is a great new feature in Fabrik 3 that allows you to have different display (columns and/or prefilter) to the same list without having multiple copies of that list : you just have to set the desired options in the link menu settings. Although this is very convenient, it has the drawback that in that case, the name of the list being always the same, the SEF URL for your different links will all be the same and therefore they will all point to the first list in the menu order. To avoid that, you have to set the "Prepend menu title" to "Yes" in the SEF tab of the Fabrik options. In this case, the SEF URL will show the title of the link instead of the label of the list and all the different views will be linked correctly.
- Optional : if you want to include the list's name in the URL when you link to a detail view, go the "SEF" tab in the Fabrik options and set "Table name on forms" to "yes".
- In sh404SEF configuration, in the "By component" tab, make sure you have "use default handler" for fabrik.
- On the same line, set "enable shURL" if you want to create short urls for your Fabrik pages
- If you have changed the settings in sh404SEF, you should purge the already created URLs
- Link to a list : you have the label of the list in the URL
- Link to detail : you have the chosen slug, preceded by the list name if set so, in the URL
- Link to visualization : you have the label of the visualization in the URL
- Edit or create a record : no SEF is created - you can always create one manually in sh404SEF for specific forms if needed (like for a contact form)
Kwown issue : when you have a menu link pointing to a detailed view record, the URL is correct but for some reason the active menu is set to the existing menu item of the list that contains the record.
It can be a problem if these links are submenus that suppose to stay invisible when they are not active. I hope I'll find a solution.
You can see the plugin in action on my site.
EDIT : as of March 24th, I uploaded a new version to correct a few issues. If you have already downloaded the previous version, you should replace the file by this one. Be sute to have the 1.2 version (check in the top of the file).