cmsplugin-photologue /

Filename Size Date modified Message
cmsplugin_photologue
163 B
29 B
85 B
1.9 KB
57.4 KB
1.4 KB

BETA

Name: cmsplugin-photologue Description: for django-cms. provides a plugin bridge between django-cms & django-photologue, for cms plugins, page apphook attachment, and navigation extension Download: http://bitbucket.org/tehfink/cmsplugin-photologue/

Requirements: - django-photologue: 2.2 - django-cms-2: 2.0.1 - django: 1.1.1

Last tested with: - django-photologue: rev 405 - django-cms-2.0: rev 6dde6de4e3249bfc189c674d7f40375d6138be98 - django: 1.1.1

Setup - make sure requirements are installed and properly working - add cmsplugin_photologue to python path - add 'cmsplugin_photologue' to INSTALLED_APPS - add ('cmsplugin_photologue.urls', 'Photologue plugin app') to CMS_APPLICATIONS_URLS - add ('cmsplugin_photologue.navigation', 'Photologue plugin navigation') to CMS_APPLICATIONS_URLS - run python manage.py syncdb and, if you haven't already, photologue's python manage.py plinit - add plugins to pages, or attach 'Photologue plugin app' and 'Photologue plugin navigation' to a page (you may have to restart server process for urls to an attached page to work, something with how django-cms caches urls)

Optional - recommended: install cms-context_processors (or your own), so {{ site }} will work in photologue pages attached to cms pages - define CMSPLUGIN_PHOTOLOGUE_SAMPLE_SIZE, CMSPLUGIN_PHOTOLOGUE_CSS_CHOICES in settings - copy cmsplugin_photologue/templates/plugins/ to your project directory

Todo: - create variable to control root view displayed when attaching app to cms page - define CMSPLUGIN_PHOTOLOGUE_SAMPLE_SIZE per plugin

Examples:

CMSPLUGIN_PHOTOLOGUE_CSS_CHOICES = (('0', ''),('1', 'left'),('2', 'right'),('3', 'center'),) ) - adds an optional css class to the gallery or photo enclosing div in the plugin templates

CMSPLUGIN_PHOTOLOGUE_SAMPLE_SIZE = 3 - overrides photologue.urls.SAMPLE_SIZE : 'Number of random images from the gallery to display.'

Note: This is not great code, but it works. Please tell me how to make it better!

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.