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

"PageProperties" #1638

Closed
coderovich opened this issue Nov 10, 2017 · 13 comments
Closed

"PageProperties" #1638

coderovich opened this issue Nov 10, 2017 · 13 comments

Comments

@coderovich
Copy link

Hello!

I can't understand how to set the PageProperties

What steps will reproduce the problem?

I made a file as mentioned in docs:
image

then import via composer...

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

But when i click on 3-dots button
image
no properties are shown
image

Additional infos

Q A
LUYA Version 1.0 RC4
PHP Version 7.1
Platform Apache
Operating system Windows
@nadar
Copy link
Member

nadar commented Nov 10, 2017

run the import command

@coderovich
Copy link
Author

coderovich commented Nov 10, 2017

@nadar of course i make the import after any changes in the code, but properties still not visible
image

@nadar
Copy link
Member

nadar commented Nov 10, 2017

  • Could you please post the import command output?
  • Maybe try the dev-master by using^1.0@dev for the luya entries in your composer.json file.

@coderovich
Copy link
Author

coderovich commented Nov 10, 2017

Yes, import screenshot at your disposal above :)

I updated the CMS up to ^1.0@dev and got the error exception after cleanup the code and the next import command

image

@nadar
Copy link
Member

nadar commented Nov 10, 2017

i did not see the screenshot :-) sorry

Yes, there are some updates and api breaks due to very close 1.0.0 release, #1505

In your case change enableCompression to contentCompression in your config, run migrate, and import again.

@coderovich
Copy link
Author

coderovich commented Nov 10, 2017

this screenshot is probably no longer needed :)

I made all the steps (forgot about migration). So the last import output was:
clip2net_171110131150
and now my property is available :) Thanks for help

And the last question please.
Is this the only one approach to set up the common properties for the site?
I mean, that if i want to set up the phone number property globally (but editable using admin area) what is the right way to do this?

Right now i can imagine to do this thing only via pageProperties.

@nadar
Copy link
Member

nadar commented Nov 10, 2017

Currently, there is no such feature, you could use the global config params (http://www.yiiframework.com/doc-2.0/guide-structure-applications.html#params) method in your config file, or the use config model (https://luya.io/api/luya-admin-models-Config which implements registry trait) so you could do like Config::set('phonenr', '123123123') and Config::get('phonenr') which then stores data in the database, but there is CURRENTLY no ui to change those values in the admin, but we will add this in feature.

@coderovich
Copy link
Author

Got it! Thanx for you time and help! I wish a success to your great project!

@nadar
Copy link
Member

nadar commented Nov 10, 2017

Inspired by your input, i am going to add this feature.

Thank you, i hope you can build your website with it, and report all bugs and future ideas ;-)

@nadar
Copy link
Member

nadar commented Nov 10, 2017

#1639

@coderovich
Copy link
Author

coderovich commented Nov 10, 2017

Of course, I will help to search for bugs while developing my current project on LUYA.

@nadar
Copy link
Member

nadar commented Dec 1, 2017

Hi @coderovich the ability to store configuration values in the admin ui is now available on dev-master. And you can retrieve them by Config::get('youridentifier');

@coderovich
Copy link
Author

oh, cool. thx! i'll test it )))

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

No branches or pull requests

2 participants