Okay figured that part out. Sorry about that. I was accidentally
editing the custom_layout.html which I had in my views/default folder
instead of just views. This layout references some of the pictures in
java scripts. For example: var settings = {

// Images
images: {
/*
Your slides, in this format:

'path/to/image.jpg': 'position',

where 'position' is the vertical/horizontal position (eg. 'center
center', 'top left').
Use wide/short images for best results.
*/
'images/slide01.jpg': 'bottom center',
'images/slide02.jpg': 'top center',
'images/slide03.jpg': 'bottom center'

},

// Transition speed (in ms)
speed: 3000,

// Transition delay (in ms)
delay: 4500

};

Is there a way for me to point to my pictures while in javascript? Can
I do {{URL('static','images/slide01.jpg')}} ?

On Sat, Mar 8, 2014 at 2:31 PM, Austin Taylor <[email protected]> wrote:
> Thank you so much, Paolo!! This is wonderful! It certainly helped my
> understanding. However, whenever I try to use this code: Only web2py.css and
> calendar.css work.
>
> {{
> response.files.insert(0,URL('static','css/web2py.css'))
> response.files.insert(1,URL('static','css/bootstrap.min.css'))
> response.files.insert(2,URL('static','css/bootstrap-responsive.min.css'))
> response.files.insert(3,URL('static','css/web2py_bootstrap.css'))
> response.files.insert(4,URL('static','css/style.css'))
> response.files.insert(5,URL('static','css/style-desktop.css'))
> }}
>
> After a little troubleshooting I figured out the calendar.css was being
> pulled from web2py_ajax.html
>
> Any idea on why the code above wouldn't work in the layout_custom.html? I
> REALLY appreciate your help. This has made such a difference!
>
>
> On Saturday, March 8, 2014 9:08:29 AM UTC-5, Paolo Caruccio wrote:
>>
>> It's just a demo. The code is not tested. You should consider this only as
>> a very basic reference. The filenames here reported are only conventional
>> you should use yours.
>>
>> 1) put the css files of the template in static/css folder of your web2py
>> application;
>> 2) put the js files of the template in static/js folder of your web2py
>> application. Please note that jquery is already shipped with web2py (check
>> web2py_ajax.html);
>> 3) assuming that the index.html located to http://pastebin.com/zbnWjs1v is
>> the main file of the template, you should modify it in order to get
>> advantage of the web2py features and save it in the views folder as
>> layout_custom.html (check the layout_custom.html here attached). Please note
>> the {{include}} that replaced the main content and the changes in the <head>
>> section;
>> 4) create in views/default folder a file named intro.html (here attached)
>> containing the main content from the index.html of the template and
>> extending layout_custom.html;
>> 5) in controller/default.py add the following:
>>
>> def intro():
>>     return locals()
>>
>> 6) in the browser see http://ipserver/appname/default/intro page (of
>> course you have to replace ipserver and appname with real values).
>>
>> As said this is only a basic guide. You should make other adjustments in
>> order to obtain a full working layout based on the template but we are here
>> to help you in case of necessity.
>>
>>
>> Il giorno sabato 8 marzo 2014 01:55:10 UTC+1, Austin Taylor ha scritto:
>>>
>>> Hello,
>>>
>>> I purchased this CSS template and I want to integrate web2py with it
>>> (because I love web2py).
>>> http://www.4templates.com/website-templates/726353988-WT00926/#green
>>>
>>> It has multiple html files it references, js files, and css sheets.
>>> Index.html located here: http://pastebin.com/zbnWjs1v
>>>
>>>
>>> How would I be able to normalize this enough to where I can extend the
>>> "layout.html" into other sheets and use all of the .js/css that comes with
>>> it?
>>>
>>> I've tried for 2 days now and I keep running into issues. Even when I try
>>> to just return locals() (if I put the index.html in views) it still doesn't
>>> apply the css sheets. I've tried using {{=URL('static','css/style.css')")}}
>>> with no luck either.
>>>
>>> Please help me find the best way to make this page normal.
>>>
>>>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/_uG8b8zwdDk/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to