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

How edit template in cms-module #1533

Closed
Wofik29 opened this issue Oct 5, 2017 · 2 comments
Closed

How edit template in cms-module #1533

Wofik29 opened this issue Oct 5, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@Wofik29
Copy link
Contributor

Wofik29 commented Oct 5, 2017

What steps will reproduce the problem?

Admin panel -> pages -> Create new page -> set "As template" is "yes", "Use Template" is "No", select my layout and click "Save new page".
I go to Admin panel -> pages -> Templetes and click on new page "Edit".

What is the expected result?

I expected to see the selected layout same in edit something page.
Example:
luya1

What do you get instead? (A Screenshot can help us a lot!)

But I see the blank page, layout does not render:
luya2

Layout in the second screenshot is same as in the first screenshot.

I'm doing something wrong? How do I fill a template?
Or the template is edited differently?

LUYA Check ouput (run this script and post the result: luyacheck.php)

1: [in_array('mod_rewrite', apache_get_modules())] true
2: [ini_get('short_open_tag')] '1'
3: [ini_get('error_reporting')] '22527'
4: [phpversion()] '7.0.22-0ubuntu0.16.04.1'
5: [php_ini_loaded_file()] '/etc/php/7.0/apache2/php.ini'
6: [php_sapi_name()] 'apache2handler'
7: [isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : unknown] 'Apache/2.4.18 (Ubuntu)'

Additional infos

I looked debug tool in chromium, and I see, that data layout has come, but not render. And nothing error in console.

Q A
LUYA Version 1.0.0-RC4
PHP Version PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
@nadar
Copy link
Contributor

nadar commented Oct 5, 2017

hi @Wofik29 thanks for the report, this is indeed a bug. You have to choose the version (first version) in the version dropdown inside the draft page, then you can add blocks and edit the draft and re used it later.

@nadar nadar self-assigned this Oct 5, 2017
@nadar nadar added the bug label Oct 5, 2017
@nadar nadar added this to the 1.0.0 milestone Oct 5, 2017
@nadar
Copy link
Contributor

nadar commented Oct 6, 2017

@Wofik29 i just pushed a fix, if you like you can install the latest dev-master in order to test. thanks for the report

@nadar nadar closed this as completed Oct 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants