1. tehfink
  2. cmsplugin-photologue

Commits

tehfink  committed 2b34076

updated readme: if you want {{site}} to work in templates of cms pages with attached photologue app, install cms-context_processors

  • Participants
  • Parent commits 0f8ff32
  • Branches default

Comments (0)

Files changed (1)

File README.txt

View file
-PRE-ALPHA
+ALPHA
+v.1
 
 Name: cmsplugin-photologue
 Description: provides a plugin bridge between django-cms2 & django-photologue, for cms plugins and page app attachment 
 - add 'cmsplugin_photologue' to INSTALLED_APPS
 - add ('cmsplugin_photologue.urls', 'Photologue plugin app') to CMS_APPLICATIONS_URLS
 - run 'python manage.py syncdb'
-- add plugins to pages, or attach 'Photologue plugin app' to a page
+- add plugins to pages, or attach 'Photologue plugin app' 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
 
 - 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.'
+- 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!