Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"view file can not be blank", "json config cannot be blank" while creating layout from admin panel #19

Closed
igorveremsky opened this issue Feb 27, 2018 · 5 comments

Comments

@igorveremsky
Copy link

I create project using instruction from https://luya.io/guide/install-windows link , than i test them and trying to add new layout from admin panel and i get this error:

screenshot_151

@nadar
Copy link
Member

nadar commented Feb 27, 2018

@igorveremsky layouts must be provided trough import command, but yes there should not be an add button indeed :-)

Read more about layouts: https://luya.io/guide/app-cmslayouts

I am going to make an issue for the "wrong add button".

@igorveremsky
Copy link
Author

@nadar i also cant do this :) i create 2columns.json:

{
  "rows" : [
    [
      {"cols": 8, "var": "left", "label": "Main content Left"},
      {"cols": 4, "var": "right", "label": "Sidebar Right"}
    ]
  ]
}

2columns.php:

<div class="row">
    <div class="col-md-6">
		<?= $placeholders['left']; ?>
    </div>
    <div class="col-md-6">
		<?= $placeholders['right']; ?>
    </div>
</div>

at views/cmslayouts folder. Than i run luya import and get:
screenshot_152
But i dont see it in admin panel:
screenshot_153

What can be wrong?

@nadar
Copy link
Member

nadar commented Feb 28, 2018

You have to run the luya bin outside of the vendor folder. On windows its best way to use php index.php import in the public_html folder.

Go to iv-luya.local/www/public_html and run php index.php import

or maybe run vendor/bin/luya import but i am not used to windows.

@igorveremsky
Copy link
Author

run php index.php import works, but vendor/bin/luya import no. also thanks now i see my new layout in admin panel. i think issue can be closed.

@nadar
Copy link
Member

nadar commented Feb 28, 2018

Maybe there is also another solution to run the composer vendor bin files on windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants