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

Override category value #141

Open
kandr3s opened this issue Oct 29, 2021 · 0 comments
Open

Override category value #141

kandr3s opened this issue Oct 29, 2021 · 0 comments

Comments

@kandr3s
Copy link

kandr3s commented Oct 29, 2021

I'm trying to use MICROPUB_OPTION_DERIVE_CATEGORY to override the social and article values written by default (using Quill). My goal is to have these values replaced for status when there's no title and post for articles.

I've used the following values for the env variable:

[  
  {  
    "condition": "title = '' ",  
    "category": "status"  
  },  
 {   
    "condition": "title != '' ",  
    "category": "post"  
  }  
]

and also

[  
  {  
    "condition": "title = '' ",  
    "value": "status"  
  },  
 {  
    "condition": "title != '' ",  
    "value": "post"  
  }  
]

But it doesn't work. Is there something I am missing in the documentation? Is there another way to accomplish this?

Thanks.

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

1 participant