Skip to content

Override category value #141

Open
Open
@kandr3s

Description

@kandr3s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions