Jumoo / jumoo-docs

Documentation for uSync and Translation manager
https://docs.jumoo.co.uk
0 stars 9 forks source link

ImportAtStartup values examples. #3

Closed enkelmedia closed 2 years ago

enkelmedia commented 2 years ago

Hi!

Just wanted to let you know that the "Edit this page" link on e.g. this page: https://docs.jumoo.co.uk/usync/reference/config/ does not work - it gives me a 404.

My real question or feedback was reg. this setting:

{
    "uSync": {
        "Settings": {
            "ImportAtStartup": "None"
       }
   }
}

We have this set to None during development but when we push to Test, Stage, Prod we want to run the import and create doctypes, data types, macros etc. We're not syncing any content.

I'm missing some examples or more details about the setting,

I saw this post: https://bytemeta.vip/repo/KevinJump/uSync8/issues/326 where you write yes, ImportAtStartup expects None, all, settings or content (or a combination of them). If this is still true it would be very valuable to have this in the documentation as well.

Thanks for all the great work!

KevinJump commented 2 years ago

Thanks - updated the links and put some group info in

https://docs.jumoo.co.uk/usync/reference/config#group-values

c50107a53e8171906e16a8679a65a2340ed6e2ef.

enkelmedia commented 2 years ago

Thanks man! What a hero! Have a great summer!

enkelmedia commented 2 years ago

But.... =D

Since there i no examples its hard to know how to separate them? Are you expecting a comma separated list of values?

E.g.:

"ImportAtStartup": "Content,Settings,Forms" 

Or should it be an array in that case?

"ImportAtStartup": ["Content","Settings","Forms"]

Might be something to append here:

Group values can be None, All or any Settings group that you have installed on your site. The default groups are 'Settings' and 'Content'. 

*Group values can be a combination of settings groups (but all or none will override any other groups set in a list)*"