sh404sef plugin for custom component - how the heck is it done?

Discussion in 'Joomla' started by lasserh, Apr 9, 2010.

  1. #1
    Hi there,
    So I finally wrote my first custom component for joomla! 1.5 and now I want it to work with the sh404sef component, so the urls are as neat as all my site's other urls are.
    sh404sef has been fantastic for my site - no doubt about it - but I simply cannot understand how to write my own plugin to make it work with my new component. I have been reading the tutorial on sh404sef home page, but, as I'm not that great at coding for joomla, it doesn't make much sense to me.

    SO - can anyone give me a helping hand with this? Here's the low-down:
    Component name: com_mep
    There is only one query string: mepName
    The non-sef url looks like this: index.php?option=com_mep&lang=da&mepName=SomeName
    I would like it to look like this: MEP/SomeName/

    I understand that I'm supposed to make a file called com_mep.php in a directory called sef_ext in the component directory and place the plugin code in that file. But I can't figure out what code I need to write (I have tried with the help of the aforementioned FAQ).
    Could someone please help. I would absolutely positively love you for it!

    Thanks
     
    lasserh, Apr 9, 2010 IP