Hi!

Let's say I've following table defined:
db.define_table('page',    
   Field('is_index', 'boolean'),
   Field('title', 'text', default=''),
   Field('block_content', 'text', default=''),
   Field('block_ad', 'text', default=''),
   Field('block_footer', 'text', default=''),
   format='%(title)s'
}

I've inserted several pages (rows) in it.

What would be the best way for block_footer to have the same value as in 
'index' rows, i.e. like the footer on many (if not all) pages of a web site 
stays the same.

Basically I'm looking for a way to reference index row's footer value in 
other page's block_footer filed leaving a possibility for customization in 
case some page would require a different footer. 


-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to