Hi,
I am a beginner in python and web2py.
I need help for a linking problem. There are different samples about
links in documentations but ı could not find any sample link to a file
which has ''. . . . href="table.field.value. . . ."
There are some examples for 'images' but in this case you do not use
any functions or any html files which are called from database.
I could not find any similar sample to solve the problem below:
model:
db.define_table('lesson',
SQLField('section', 'string'),
SQLField('title','string'),
SQLField
('linker','string')) ########### here in lesson.linker i want to
put sample_1 action or sample_1.html and other samples
(in every 'row.lesson.linker' there are different samples)
controller:
def index():
titles=db().select(db.lesson.ALL)
return dict(titles=titles)
def sample_1():
def sample_2():
def sample_3():
...many samples...
view :
###here i want to put my link
. . . . .href="{{titles.linker}}".....
question :
How to build a link --from any view to any view of the same
application-- which has to be adressed not directly( like =form) but
instead in
the models related field.
thanks in adv. for your interest
regads
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---