Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Add new staticpages backend: external #836

Merged
merged 26 commits into from
Mar 31, 2014
Merged

Conversation

nidico
Copy link
Collaborator

@nidico nidico commented Mar 31, 2014

This pull request concludes the Adhocracy side of what has been developed and used in the last year in the long living kotti/staticpages branches.

It can either be used against the adhocracy.kotti package which lives in the feature-kotti-2.2.1 branch of liqd/adhocracy or against the plone package in liqd/adhocracy.plone.

This also adds a few more features which are only available with the external staticpages backend (automatic navigation creation, permissions) and features which are available with all backends (hierarchical static pages, customizing flags).

Furthermore the database based API is slightly modified in order to work with underscores. I don't quite remember why this happened in this branch, but I'm tired of rebasing this. Also the solution proposed in #676 would be better, but this already improves the status quo.

nidico and others added 26 commits March 31, 2014 21:01
Implement the fallback mechanism on backend side
and change the staticpage client-side to skip language choice and fall
back to the all_languages function.
This now works with all 3 backends, but is mostly useful for kotti based
main navigation.
This adds a permission `static.show_private` which can be requested by
static page backends by setting the static page `private` attribute
`True`.
Conflicts:
	src/adhocracy/lib/staticpage.py
This allows to use separate mediacenter and staticpages API endpoints by
defining the more special configuration options:

* adhocracy_service.mediacenter.rest_api_address
* adhocracy_service.mediacenter.rest_api_token
* adhocracy_service.staticpages.rest_api_address
* adhocracy_service.staticpages.rest_api_token
Additional data fields: : nav, sidebar, description, css_classes (to
allow side specific customization).
-  use sidebar and full_teaser
-  wrap everything in a static_wrapper div
   and apply css_classes there
For some reason the content in the inner blocks isn't shown if these
blocks also exist in the inherited template (in this case
template.html).
nidico added a commit that referenced this pull request Mar 31, 2014
Add new staticpages backend: external
@nidico nidico merged commit dc235bb into liqd:develop Mar 31, 2014
@nidico nidico deleted the feature-staticpages branch March 31, 2014 20:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants