I'm trying to display unique entry tags on all pages of a website in a bar 
on the left side. It seems the best place to put this info is in the 
'default.html', which could call a function using LOAD. 

So in the controller i have: 

def getTags():
    """get a list of distinct entry tags"""
    return db().select(db.entry.tag,distinct=True)

then in the default.html i have:

 {{tags = LOAD('default','getTags')}}

it looks like the info is getting through, as when i can print out the list 
in default.html with {{=tags}} (which gives a bold header of 'entry.tag' 
followed by all unique values) but its unclear how to iterate over each of 
the values within the returned object. I'm guessing this is returning a row 
object? How do I iterate over it to create links for each unique entry?

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to