SpinaCMS / spina-blog

Blog engine for Spina CMS
MIT License
11 stars 25 forks source link

Categories index view has no access to SpinaCMS default layout #20

Open wojtasss opened 3 years ago

wojtasss commented 3 years ago

When go to category link for example "http://localhost:3000/blog/categories/howto" where "Howto" I manually created category the spina/blog/categories/index.html.haml hasn't access to default application layout, can I somehow inject it?

simmerz commented 3 years ago

Are you using spina_2_0 branch for spina 2.0 alpha release? If so, I've just committed a change that adds include ::Spina::Frontend to the controller. If you're using master branch, you might want to add that in a decorator for now.

wojtasss commented 3 years ago

Hi thanks for response. I have used spina 2.0 alpha and spina_2_0 on spina-blog as you said but still no layout access. I have created app/views/spina/blog/categories/show.html.haml with some text for test and still no layout :( Screenshot_2020-10-27_20-56-27

aseroff commented 2 years ago

@wojtasss did https://github.com/SpinaCMS/spina-blog/pull/34 solve this issue?