mail navigation and URI construction for the path to other pages
Mar 07, 2011; 06:43
mail
navigation and URI construction for the path to other pages
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>I have a question about the path that is generated because currently I can not get links to bring up the intended page. On <a href="http://cfg__nav.inc">cfg__nav.inc</a> I have the following:<br><br><?LassoScript<br> <br> var(<br> 'nav'=(knop_nav(<br> -root='/',<br> -default=($s_user->auth ? 'forms' | 'login'),<br> -currentclass='ui-btn-active')),<br> 'nav_children'=null<br> );<br> <br> $nav_children=(knop_nav);<br> $nav_children->(insert(-key='forms',-label='Forms Home'));<br> $nav_children->(insert(-key='forms_physicianInteraction',-label='Physician Interaction'));<br> $nav_children->(insert(-key='forms_competencies',-label='Competencies'));<br><br> $nav->(insert( <br> -key='forms', <br> -label='forms',<br> -children=$nav_children,<br> -default='forms'));<br> <br> $nav_children=(knop_nav);<br> $nav_children->(insert(-key='timeclock',-label='Time Clock Home'));<br> $nav_children->(insert(-key='timeclock_in',-label='Time Clock In'));<br> $nav_children->(insert(-key='timeclock_out',-label='Time Clock Out'));<br><br> $nav->(insert( <br> -key='timeclock', <br> -label='Time Clock',<br> -children=$nav_children,<br> -default='timeclock'));<br> <br> ...<br>?><br><br>It creates a navigation as follows (when Time Clock is selected):<br><br># forms<br># Time Clock<br><br> * Time Clock Home<br> * Time Clock In<br> * Time Clock Out<br> ...<br><br>The HTML behind this navigation is as follows:<br><br><ul><br> <li><a href="/forms/">forms</a></li><br> <li><a href="/timeclock/" class="ui-btn-active">Time Clock</a><br> <ul><br> <li><a href="/timeclock/timeclock/">Time Clock Home</a></li><br> <li><a href="/timeclock/timeclock_in/">Time Clock In</a></li><br> <li><a href="/timeclock/timeclock_out/" class="ui-btn-active">Time Clock Out</a></li><br> </ul><br> </li><br> ...<br></ul><br><br>The file system is structured as follows:<br><br>/_content<br> <a href="http://cnt_forms_competencies.inc">cnt_forms_competencies.inc</a><br> <a href="http://cnt_forms_physicianInteraction.inc">cnt_forms_physicianInteraction.inc</a><br> <a href="http://cnt_forms.inc">cnt_forms.inc</a><br> <a href="http://cnt_login.inc">cnt_login.inc</a><br> <a href="http://cnt_timeclock_in.inc">cnt_timeclock_in.inc</a><br> <a href="http://cnt_timeclock_out.inc">cnt_timeclock_out.inc</a><br> <a href="http://cnt_timeclock.inc">cnt_timeclock.inc</a><br><br>My question then is, are all _content files to be located at /_content? No sub-directories? Do the names of the _content files have to be specifically assigned (meaning the names have something to do with how the file is retrieved by the knop framework)? When I click on my links, they do not find the content files, but instead display a blank page.<br><br>A URL that is shown as "/timeclock/timeclock_in/" I understand from the documentation that it is not a physical path, but it means the action is "timeclock" and the actionpath, what is to be done, is "timeclock_in". But, is that what I really want? Do I need the action to be "timeclock_in"? .... meaning load the content for the "timeclock_in" page. Also, am I supposed to put children nav items into subdirectories? (I tried and it did not work either).<br><br>Is there more documentation specifically on how URIs are to be structured in Knop? What does Knop do if the incoming URI has a domain and more then 2 path components (action and actionpath), are the 3rd, 4th, and so on components of the URI treated as parameters to whatever method is called, or are they ignored? </div><div><br></div><div>Michael<br></div></span></body></html> <P><PRE>-- =0D #############################################################=0D This message is sent to you because you are subscribed to=0D the mailing list <knop@lists.montania.se>.=0D To unsubscribe, E-mail to: <knop-off@lists.montania.se>=0D Send administrative queries to <knop-request@lists.montania.se>=0D List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html=0D Project homepage http://montania.se/projects/knop/=0D Google Code has the latest downloads at http://code.google.com/p/knop/
Mar 07
Steve Piercy - Web Site Builder Re: navigation and URI construction for the path to other pages
Mar 07, 2011; 12:43
Steve Piercy - Web Site Builder
Re: navigation and URI construction for the path to other pages
Mar 07
Johan Solve Re: navigation and URI construction for the path to other pages
Mar 07, 2011; 22:05
Johan Solve
Re: navigation and URI construction for the path to other pages
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!