[web2py] Re: Tagging View
correct. On Friday, 11 May 2012 23:59:39 UTC-5, Rod Watkins wrote: Wow, very cool. One question. In the cms app, a page (with an id) already exists so the ajax post to the addtag action can add the tag to the page. In my case the create version of the form will not have an entity with an id yet since it does not exist in the db. Am I wrong to think than that this solution won't work on the create entity page? I would need a pre-existing entity, yes? Thanks Rod
[web2py] Re: Tagging View
That is done here: https://github.com/mdipierro/w2cms Look into the action tags() On Friday, 11 May 2012 21:06:43 UTC-5, Rod Watkins wrote: I have a question I have not been able to answer for myself. In the web2py cookbook, there is this suggested model for handling tags: db.define_table('data', Field('value')) db.define_table('tag', Field('record_id', db.data), Field('name')) I like that. But I have struggled with the correct way to handle the form for the data entity. I want a create/edit form that allows the entry of any fields in the data entities table as well as tags for the entity (like, say, Wordpress). I am using SQLFORM to handle the form processing of the data table form elements. But how would I handle the tags input? What is the recommended way of creating/updating the tags? Thanks Rod
[web2py] Re: Tagging View
Wow, very cool. One question. In the cms app, a page (with an id) already exists so the ajax post to the addtag action can add the tag to the page. In my case the create version of the form will not have an entity with an id yet since it does not exist in the db. Am I wrong to think than that this solution won't work on the create entity page? I would need a pre-existing entity, yes? Thanks Rod