This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

banshee181139655
banshee181139655

Hello October Team, For training, i created my own plugin for "pages" with more functions. My plugin works, i can create pages. After that i go to CMS/Page->Plugin Components->add a puplic route for list all my pages. example: mysite.com/mypages Thats works!! But now i like a route for my single post. I dont know how i can do this. How i can add a route to my single pages?

I remember in lavarel: I created a extra controller for that, and i created a new route: Route::get('/{url}', 'publicPageController@getSingle')->name('publicPage.single');

Many thanks :)

Last updated

banshee181139655
banshee181139655

Solved: Add a new page: Page-single --> Route:/pages/:slug

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.