thanks for the link, will teach me to jump between the bits im interested
in rather than just reading it through.
and thank you for the +1 on the args method for pages, was hoping i was
thinking sensibly there.
Alan
On Friday, June 8, 2012 1:52:12 PM UTC+1, Anthony wrote:
>
> if i create a function for adding a new page, where both tables page &
>> page_content have their fields edited on the same page, what is the best
>> method for the id & foreign key to match cleanly?
>>
>
> Maybe have a look at this:
> http://web2py.com/books/default/chapter/29/7#One-form-for-multiple-tables
>
>
>> with the urls for pages, to ensure clean seo, it would be best in my
>> opinion (for us anyway) to make the page names the args, so
>> cms/page/PAGENAME/SUBPAGE and just use routing to take away the controller
>> and functions, that way the arguments (PAGENAME/SUBPAGE) can be strung
>> together as a field (pageurl), so a function doesn't need creating for
>> every page. would this be problematic for me at all or would you see that
>> as a ok plan of action?
>>
>
> Yes, that would be a good way to go.
>
> Anthony
>