meteor - Adding a field to Categories? -
i want change way post list rendered in telescope based off property of category in. i.e. 1 category listview when gridview.
i tried:
categories.addfield({ fieldname: 'gridtype', fieldschema: { type: number, optional: true, autoform: { omit: true } } });
the issue im not seeing property added, noticed in documentation intended posts, users, comments ect i'm guessing should work.
the reason not think working it's showing on create category form
you need remove autoform:{omit: true}
. mentions in docs if want hide forms should pass omit
option, otherwise can leave out.
also, sure add in file that's accessible on both client , server, otherwise you'll see in schema on client categories.simpleschema()._schema
it'll have persist on server.
Comments
Post a Comment