That was pretty much it above. The corresponding html files are basically
like this:
{{extend 'layout.html'}}
<h2>frequently asked questions</h2>
{{=content_files_as_HTML['faq']}}
What other code should I post?
On Monday, May 20, 2013 1:56:23 PM UTC-5, Niphlod wrote:
>
> without the code you use to load them, it's quite impossible to figure out
> why it doesn't work.
>
> On Monday, May 20, 2013 8:53:06 PM UTC+2, Lamps902 wrote:
>>
>> I have a few pages (about, FAQ, terms of service) that are loaded from
>> text files in the static folder. The setup is basically like this:
>>
>> content_files = Storage()
>> file_handler =
>> open(os.path.join(request.folder,"static","content","about.txt"),'r')
>> content_files['about'] = file_handler.read()
>>
>> content_files_as_HTML['about'] = DIV(XML(content_files['about'] %
>> {'page_title':response.title or request.application,
>> 'email_contact':settings.email_contact,
>> }), _id='about_static_content_div', _style='line-height:12px')
>>
>> def about():
>> return dict()
>>
>>
>> If I click on one of the dynamically loaded pages from home or from most
>> other pages, it shows up fine. If, on the other hand, the current page is
>> one of the 'user' pages (i.e. default/user/register, default/user/login),
>> I get a blank page with a "404 NOT FOUND" error. Any idea as to what's
>> going on/how to fix it? Thanks.
>>
>
--
---
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.