문제

Refinery generates its navigation menu in the _menu and _menu_branch helpers. I want to keep the provided logic since it allows a user to create a new page. However, let's say I have a model Product and I want to insert a link to the show action of Product in the navigation menu. What's the proper Refinery way to do that?

도움이 되었습니까?

해결책

I found the easiest way to do it is create the page in the pages dashboard, and in advanced setting you just fill the redirect to /products/awesome or whatever the product slug or id is.

You can see how I did it on: http://tigrepictures.com/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top