Commits

tehfink committed 49a7439

example & branch info, small errors

Comments (0)

Files changed (1)

 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-photologue: trunk
+- django-cms-2: 2.0.2
 - django: 1.1.1
 
 Setup
 - 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
+- add ('cmsplugin_photologue.navigation', 'Photologue plugin navigation') to CMS_NAVIGATION_EXTENDERS
 - 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
+- the photologue default templates extend a 'base.html', while django-cms uses a default 'index.html'. quick solution: create a 'base.html' placeholder template which extends 'index.html'. see 'cmsplugin_photologue/templates/base.html' for an example.
+- recommended: install cms-context_processors (or your own), so {{ site }} will work in photologue pages attached to cms pages. NB: this should be fixed in latest django-cms trunk. does it work for anyone?
+- define CMSPLUGIN_PHOTOLOGUE_SAMPLE_SIZE, CMSPLUGIN_PHOTOLOGUE_CSS_CHOICES in settings.py
 - 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
+- cache navigation extenders
 
+Example Projects:
+i'm going to _try_ and track the most recent django-cms release and the current trunk, starting with 2.0.2. the example projects require a virtualenv with the requirements above installed, and should work out of the box.
 
-Examples:
 
+Examples (settings.py):
 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