| Name |
Type |
Description |
Notes |
| children |
List[str] |
|
[optional] |
| cover |
str |
|
[optional] |
| description |
str |
|
[optional] |
| display_name |
str |
|
|
| hide_from_list |
bool |
<p>Whether to hide the category from the category list.</p> <p>When set to true, the category including its subcategories and related posts will not be displayed in the category list, but it can still be accessed by permalink.</p> <p>Limitation: It only takes effect on the theme-side categorized list and it only allows to be set to true on the first level(root node) of categories.</p> |
[optional] |
| post_template |
str |
<p>Used to specify the template for the posts associated with the category.</p> <p>The priority is not as high as that of the post.</p> <p>If the post also specifies a template, the post's template will prevail.</p> |
[optional] |
| prevent_parent_post_cascade_query |
bool |
<p>if a category is queried for related posts, the default behavior is to query all posts under the category including its subcategories, but if this field is set to true, cascade query behavior will be terminated here.</p> <p>For example, if a category has subcategories A and B, and A has subcategories C and D and C marked this field as true, when querying posts under A category,all posts under A and B will be queried, but C and D will not be queried.</p> |
[optional] |
| priority |
int |
|
[default to 0] |
| slug |
str |
|
|
| template |
str |
|
[optional] |
from halo_client.models.category_spec import CategorySpec
# TODO update the JSON string below
json = "{}"
# create an instance of CategorySpec from a JSON string
category_spec_instance = CategorySpec.from_json(json)
# print the JSON string representation of the object
print(CategorySpec.to_json())
# convert the object into a dict
category_spec_dict = category_spec_instance.to_dict()
# create an instance of CategorySpec from a dict
category_spec_from_dict = CategorySpec.from_dict(category_spec_dict)
[Back to Model list] [Back to API list] [Back to README]