Git Product home page Git Product logo

kitconcept.voltodemo's Introduction

kitconcept.voltodemo

kitconcept https://secure.travis-ci.org/collective/kitconcept.voltodemo.png

kitconcept.voltodemo is a helper package to setup a Plone site ready to use with Volto. Drop it in your buildout and then install it. It is used in Volto itself for testing it.

Usage

https://github.com/plone/volto/blob/master/api/base.cfg#L13

and along with plonesite recipe:

https://github.com/plone/volto/blob/master/api/base.cfg#L13

Demo home page

It features a hack to make the Plone site Volto Blocks enabled with some demo content.

Volto Editor

It enables the Volto Blocks behavior on the Document content type by default, enabling Volto editor for that content type.

Document content type

Richtext and table of contents behaviors has been removed from the Document behaviors since it's confusing for the users if it shows in the form.

Disabled content types

It disables (fti) of some default content types since they are not ready or full working yet on Volto side. So, Collections, Link and Events are disabled.

CORS profile

A quick helper for enable CORS for development config is also provided in the kitconcept.voltodemo module. So you can call:

<include package="kitconcept.voltodemo.cors" />

from you ZCML while developing.

Versions compatibility

kitconcept.voltodemo < 2 Volto 3 and Volto 4 until alpha 9 kitconcept.voltodemo >= 2 Volto 4 (from alpha 10)

kitconcept.voltodemo's People

Contributors

fredvd avatar sneridagh avatar tiberiuichim avatar tisto avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

kitconcept.voltodemo's Issues

KeyError text on new document

I briefly tried the demo package yesterday and ran into an error when adding and then viewing a page in the standard Plone UI, no Volto:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 155, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 337, in publish_module
  Module ZPublisher.WSGIPublisher, line 255, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 61, in call_object
  Module zope.browserpage.simpleviewclass, line 41, in __call__
  Module Products.Five.browser.pagetemplatefile, line 126, in __call__
  Module Products.Five.browser.pagetemplatefile, line 61, in __call__
  Module zope.pagetemplate.pagetemplate, line 135, in pt_render
  Module Products.PageTemplates.engine, line 88, in __call__
  Module z3c.pt.pagetemplate, line 173, in render
  Module chameleon.zpt.template, line 306, in render
  Module chameleon.template, line 209, in render
  Module chameleon.utils, line 75, in raise_with_traceback
  Module chameleon.template, line 187, in render
  Module 0b206ff831d6062030e8d561a0162bec, line 252, in render
  Module ffde7f6321a3c8dcfa502be6a4127128, line 684, in render_master
  Module ffde7f6321a3c8dcfa502be6a4127128, line 1240, in render_content
  Module 0b206ff831d6062030e8d561a0162bec, line 242, in __fill_content_core
  Module 0b206ff831d6062030e8d561a0162bec, line 110, in render_content_core
  Module Products.PageTemplates.expression, line 94, in __call__
  Module Products.PageTemplates.expression, line 62, in traverse
  Module OFS.Traversable, line 350, in unrestrictedTraverse
   - __traceback_info__: ([], 'text')
  Module OFS.Traversable, line 301, in unrestrictedTraverse
   - __traceback_info__: ([], 'text')
  Module plone.folder.ordered, line 241, in __getitem__
KeyError: 'text'

 - Expression: "context/text"
 - Filename:   ... egg/plone/app/contenttypes/browser/templates/document.pt
 - Location:   (line 14: col 21)
 - Source:     tal:condition="context/text"
                              ^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... egg/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 94: col 70)
 - Source:     ... 

Recent commit 4e011e8 by @sneridagh explains why that happens: the rich text behavior was removed.

It would be fairly easy to change the document view in plone.app.contenttypes to use context/text|nothing to avoid this error.

Or maybe create a view for use in the traditional Plone UI. But that is double work.

Main question: is it the intention that this demo package is (a bit) usable in the traditional UI? Fine if the Volto blocks do not show up, but it would be nice if view and edit still work.

I realise this is just a demo package, and is there as a demo backend for the Volto UI, so feel free to say: we're not interested in supporting this in the traditional UI.

Login credentials on demo home page are incorrect

The login credentials at the bottom of the demo home page are incorrect:

user: test
password: test

They should be:

user: admin
password: admin

I assume this is something in the ZODB that requires someone who can update its content so that it remains after each nightly wipe.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.