Jump to content

[PS 1.7] Module and SEO&URL rewriting


Recommended Posts

I noticed a nice feature I'm trying to use, in PS 1.7.

When a module declares controller pages, these are automatically listed in SEO & URL table.

 

i.e: module-mymodule-controllerpage

 

I tried to assign a friendly URL to this item, for example mycontroller.

 

I tried to call $host/mycontroller and I always have a 404 error.

 

Where am I wrong? is it a feature in development yet?

 

Thanks a lot

 

Manredi

Link to comment
Share on other sites

I found the solution.

controllerpage.php should be a controller class, having a specific name:

 

mymodulecontrollerpageModuleFrontController

 

it may extend ModuleFrontController or simply implement run() method.

 

This way I can assign a rewrite_url to the controller declared in the module.

 

Nice!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...