web2py Pluginsjust some cool examples |
|||||||||
| /plugins/default/mmodal [ login | register | lost password ] | |||||||||
Main Menu |
web2py plugins are self contained pieces of an application that can be added to any existing application. They usually define components, i.e. objects that can be embedded in a page and talk to the server via ajax. Often they include corresponding jQuery plugins and the serverside funcitonality to make them work. Here you can find some examples. The web2py admin interface provides a web interface to upload and manage the plugins. The plugin themsselves are .w2p files (as for web2py apps). There are just tar gzipped files containing the source code. You do not need to unzip them. The admin interface will unzip them on upload in web2py. Once a plugin becomes part of your app, you can customize it without affecting other apps. Look and feel can be customized via CSS. About Plugin mmodalThis is a minimalist modal window like this: click me To use it: Create an instance of the plugin:
{{a=PluginMModal(title='Hello World',content='give this a try!',close='close',width=70,height=70)}}
Then print the instance in somewhere in the page
{{=a}}
To generate a link that opens the modal
{{=a.link('click me to open it')}}
Required plugin (including plugin source code)You need this. Just upload it through the web2py plugin interface for your app. download |
||||||||
|
Copyright © 2009 - Powered by web2py |
|||||||||