I am trying to set a nice clean "details" page that only shows some basic 
information for a product. I do not want ALL information that is being 
storded (such as my slug, private notes field, etc..) to be visable to the 
customer. Now, I have this:

def details():
    try:
        equipment = db.equipment[int(request.args(0))]
    except:
        equipment = db(db.equipment.slug == 
request.args(0)).select().first()
        
    return dict(equipment=equipment)

and in my details.html I am just using the {{=BEAUTIFY(response._vars)}} 
which is displaying all of the info in a un clean way. What do I need to do 
to just display only a few items, and allow me to place the elements 
anywhere I would like on the page? For example, I just want the 'title', 
'description' and 'photo' to be shown on the 'details' page. How would I 
make them independant of one another so I can place the image one spot, the 
title another spot (the <h1>) and the description elsewhere (<p>)
For example
<h1>{{title}}</h1>
<p>{{description}}</p>
<center>{{image1}}</center>

 I know this may be basic stuff, but I am learning python as I go and these 
forums are a great help. I cannot seem to find my answer in the web2py docs.

-- 



Reply via email to