fae icon indicating copy to clipboard operation
fae copied to clipboard

Page generator does not create page view

Open asecondwill opened this issue 9 years ago • 4 comments

Just working through the Quick start...

running

rails g fae:page AboutUs hero_image:image hero_text:string introduction:text body:text annual_report:file

does not create the file app/views/fae/pages/about_us.html.slim

And there is nowhere to admin pages in the /admin area.

asecondwill avatar Apr 14 '17 19:04 asecondwill

Hi @asecondwill!

Generated page forms are created in the app/views/admin/content_blocks directory.

See docs for more details pertaining to generators: https://github.com/wearefine/fae/blob/master/docs/topics/generators.md#fae-page

LeChin avatar Apr 14 '17 20:04 LeChin

https://www.faecms.com/documentation/topics-pages

think that needs updating then?

also, how do i get the admin area to show a link to edit the content block?

asecondwill avatar Apr 14 '17 20:04 asecondwill

@asecondwill good catch, feel free to open a PR with the fix!

how do i get the admin area to show a link to edit the content block?

You will need to add a link in the navigation_concern.rb - see docs for example. https://github.com/wearefine/fae/blob/master/docs/quickstart-guide.md#navigation

LeChin avatar Apr 14 '17 20:04 LeChin

ok thanks. i got there. ill use the github docs from now.

asecondwill avatar Apr 15 '17 07:04 asecondwill