GithubHelp home page GithubHelp logo

collective / plonetheme.business_casual Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 4.0 9.53 MB

A theme for Plone 5

License: MIT License

Python 2.58% Shell 0.09% RobotFramework 0.37% HTML 0.86% JavaScript 1.03% CSS 95.06%

plonetheme.business_casual's Introduction

Business Casual

Business Casual is a full website template for Plone.

https://raw.githubusercontent.com/collective/plonetheme.business_casual/master/preview.png

See additional screenshots below.

Installation

Zip

In zip version you don't get the slider but only a static banner due to limitations.

  1. Download the zip file
  2. Import the theme from the Diazo theme control panel.

Buildout

Install plonetheme.business_casual by adding it to your buildout:

[buildout]

...

eggs =
    plonetheme.business_casual

and then running bin/buildout

Documentation

Full documentation for end users can be found here

Contribution

  • Clone the repo.
  • Run bin/buildout
  • next, install the local dependencies theme requires
    $ npm install
  • Watch For Changes & Automatically Refresh
    $ grunt watch
  • Build & Optimize(This will create a dist folder with optimized files and a zip of theme)
    $ grunt dist

License

MIT License

Credit

Based on Business Casual Provided by Start Bootstrap

Screenshots

Full size screenshot:

https://raw.githubusercontent.com/collective/plonetheme.business_casual/master/docs/plonetheme.business_casual-screenshot.jpg

iPhone Plus screenshot:

https://raw.githubusercontent.com/collective/plonetheme.business_casual/master/docs/plonetheme.business_casual-screenshot-iphone-plus.jpg

plonetheme.business_casual's People

Contributors

vikas-parashar avatar tkimnguyen avatar svx avatar

Stargazers

Leonardo J. Caballero G. avatar  avatar Luciano Andrade avatar  avatar Mayank Mohindra avatar Katja Süss avatar Ivan Teoh avatar

Watchers

James Cloos avatar  avatar  avatar

plonetheme.business_casual's Issues

Unable to modify 'Type title here' and 'TYPE YOUR SLOGAN/ADDRESS HERE'

I'm using this theme for a subsite using lineage.

I uploaded the zip file and then created a copy for modifying. However, I'd like to modify the 'Type title here' and 'TYPE YOUR SLOGAN/ADDRESS HERE'.

I've tried editing the index.html file but the changes are not being shown. I've disabled caching at @@caching-controlpanel, and clear cache/refresh at @@theming-controlpanel-mapper?

Any suggestions would be grateful.

Thanks.

Version Overview
Plone 5.0.6 (5016)
CMF 2.2.10
Zope 2.13.24
Python 2.7.12 (default, Oct 12 2016, 13:45:40) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
PIL 3.3.0 (Pillow)

Lineage 2.1 2.1
Lineage Index 0.5 0.5
Lineage: Child Site Local Registry 1.3.3 1.3.3
Lineage: Theme Selection Addon for Child Sites 2.0 2.0
Version of plonetheme.business_casual.zip (downloaded on 15 feb 2017)

Error handling subrequest to /slider-images/@@slider-images

When I install plonetheme.business_casual via Add-ons control panel on Plone 5.2.11 and Python 3.8.16, it show the following error:

2023-02-17 13:07:54,907 ERROR   [plone.subrequest:38][waitress-1] Error handling subrequest to /slider-images/@@slider-images
Traceback (most recent call last):
  File "/home/macagua/.buildout/eggs/cp38/Chameleon-3.10.2-py3.8-linux-x86_64.egg/chameleon/template.py", line 192, in render
    self._render(stream, econtext, rcontext)
  File "/home/macagua/proyectos/training/buildout/var/cache/2250523e3e14e799c1bf7a846e055e28.py", line 155, in render
    __iterator = _static_139986245700480('path', 'context/keys', econtext=econtext)(_static_139986245700288(econtext, __zt_tmp))
  File "/home/macagua/.buildout/eggs/cp38/zope.tales-5.2-py3.8.egg/zope/tales/expressions.py", line 250, in __call__
    return self._eval(econtext)
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/PageTemplates/Expressions.py", line 217, in _eval
    ob = self._subexprs[-1](econtext)
  File "/home/macagua/.buildout/eggs/cp38/zope.tales-5.2-py3.8.egg/zope/tales/expressions.py", line 153, in _eval
    ob = self._traverser(ob, element, econtext)
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/PageTemplates/Expressions.py", line 133, in trustedBoboAwareZopeTraverse
    object = traversePathElement(object, name, path_items,
  File "/home/macagua/.buildout/eggs/cp38/zope.traversing-4.4.1-py3.8.egg/zope/traversing/adapters.py", line 156, in traversePathElement
    return traversable.traverse(nm, further_path)
  File "/home/macagua/.buildout/eggs/cp38/zope.traversing-4.4.1-py3.8.egg/zope/traversing/adapters.py", line 61, in traverse
    raise LocationError(subject, name)
zope.location.interfaces.LocationError: (<Products.Five.browser.metaconfigure.SimpleViewClass from /home/macagua/proyectos/training/buildout/src/plonetheme.business_casual/src/plonetheme/business_casual/theme/views/slider-images.pt object at 0x7f5117d7b460>, 'keys')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/macagua/.buildout/eggs/cp38/plone.subrequest-1.9.3-py3.8.egg/plone/subrequest/__init__.py", line 154, in subrequest
    result = mapply(
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/ZPublisher/mapply.py", line 87, in mapply
    return object(*args)
  File "/home/macagua/.buildout/eggs/cp38/zope.browserpage-4.4.0-py3.8.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/Five/browser/pagetemplatefile.py", line 126, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/Five/browser/pagetemplatefile.py", line 58, in __call__
    s = self.pt_render(
  File "/home/macagua/.buildout/eggs/cp38/zope.pagetemplate-4.6.0-py3.8.egg/zope/pagetemplate/pagetemplate.py", line 133, in pt_render
    return self._v_program(
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/PageTemplates/engine.py", line 378, in __call__
    return template.render(**kwargs)
  File "/home/macagua/.buildout/eggs/cp38/z3c.pt-3.3.1-py3.8.egg/z3c/pt/pagetemplate.py", line 176, in render
    return base_renderer(**context)
  File "/home/macagua/.buildout/eggs/cp38/Chameleon-3.10.2-py3.8-linux-x86_64.egg/chameleon/zpt/template.py", line 302, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/macagua/.buildout/eggs/cp38/Chameleon-3.10.2-py3.8-linux-x86_64.egg/chameleon/template.py", line 215, in render
    raise_with_traceback(exc, tb)
  File "/home/macagua/.buildout/eggs/cp38/Chameleon-3.10.2-py3.8-linux-x86_64.egg/chameleon/utils.py", line 53, in raise_with_traceback
    raise exc
  File "/home/macagua/.buildout/eggs/cp38/Chameleon-3.10.2-py3.8-linux-x86_64.egg/chameleon/template.py", line 192, in render
    self._render(stream, econtext, rcontext)
  File "/home/macagua/proyectos/training/buildout/var/cache/2250523e3e14e799c1bf7a846e055e28.py", line 155, in render
    __iterator = _static_139986245700480('path', 'context/keys', econtext=econtext)(_static_139986245700288(econtext, __zt_tmp))
  File "/home/macagua/.buildout/eggs/cp38/zope.tales-5.2-py3.8.egg/zope/tales/expressions.py", line 250, in __call__
    return self._eval(econtext)
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/PageTemplates/Expressions.py", line 217, in _eval
    ob = self._subexprs[-1](econtext)
  File "/home/macagua/.buildout/eggs/cp38/zope.tales-5.2-py3.8.egg/zope/tales/expressions.py", line 153, in _eval
    ob = self._traverser(ob, element, econtext)
  File "/home/macagua/.buildout/eggs/cp38/Zope-4.8.7-py3.8.egg/Products/PageTemplates/Expressions.py", line 133, in trustedBoboAwareZopeTraverse
    object = traversePathElement(object, name, path_items,
  File "/home/macagua/.buildout/eggs/cp38/zope.traversing-4.4.1-py3.8.egg/zope/traversing/adapters.py", line 156, in traversePathElement
    return traversable.traverse(nm, further_path)
  File "/home/macagua/.buildout/eggs/cp38/zope.traversing-4.4.1-py3.8.egg/zope/traversing/adapters.py", line 61, in traverse
    raise LocationError(subject, name)
zope.location.interfaces.LocationError: zope.location.interfaces.LocationError: (<Products.Five.browser.metaconfigure.SimpleViewClass from /home/macagua/proyectos/training/buildout/src/plonetheme.business_casual/src/plonetheme/business_casual/theme/views/slider-images.pt object at 0x7f5117d7b460>, 'keys')

 - Expression: "context/keys"
 - Filename:   ... /plonetheme/business_casual/theme/views/slider-images.pt
 - Location:   (line 7: col 36)
 - Source:     <li tal:repeat="item context/keys"
                                    ^^^^^^^^^^^^
 - Arguments:  template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7f510c10f400>
               options: {}
               args: ()
               nothing: None
               modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7f511ab2b3d0>
               request: <WSGIRequest, URL=http://localhost:8080/Plone2/slider-images/@@slider-images>
               view: <Products.Five.browser.metaconfigure.SimpleViewClass from /home/macagua/proyectos/training/buildout/src/plonetheme.business_casual/src/plonetheme/business_casual/theme/views/slider-images.pt object at 0x7f5117d7b130>
               context: <Products.Five.browser.metaconfigure.SimpleViewClass from /home/macagua/proyectos/training/buildout/src/plonetheme.business_casual/src/plonetheme/business_casual/theme/views/slider-images.pt object at 0x7f5117d7b460>
               views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f50ffe2db20>
               here: <Products.Five.browser.metaconfigure.SimpleViewClass from /home/macagua/proyectos/training/buildout/src/plonetheme.business_casual/src/plonetheme/business_casual/theme/views/slider-images.pt object at 0x7f5117d7b460>
               container: <Products.Five.browser.metaconfigure.SimpleViewClass from /home/macagua/proyectos/training/buildout/src/plonetheme.business_casual/src/plonetheme/business_casual/theme/views/slider-images.pt object at 0x7f5117d7b460>
               root: <Application at >
               traverse_subpath: []
               user: <PropertiedUser 'admin'>
               default: <DEFAULT>
               repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7f510f857880>
               loop: {}
               target_language: None
               translate: <function BaseTemplate.render.<locals>.translate at 0x7f510c13adc0>
               attrs: {'data-target': '#carousel-example-generic', 'data-slide-to': '${python:repeat.item.index}', 'class': "${python: repeat.item.start and 'active' or ''}"}
[18] > /home/macagua/.buildout/eggs/cp38/zope.traversing-4.4.1-py3.8.egg/zope/traversing/adapters.py(61)traverse()
-> raise LocationError(subject, name)
(Pdb++) h

Undocumented commands:
======================
f  frame  hf_list  inspect  paste  put  source

(Pdb++) l
 56  	        if hasattr(subject, '__getitem__'):
 57  	            try:
 58  	                return subject[name]
 59  	            except (KeyError, TypeError):
 60  	                pass
 61  ->	        raise LocationError(subject, name)
 62  	
 63  	
 64  	@zope.interface.implementer(ITraverser)
 65  	class Traverser(object):
 66  	    """
(Pdb++) 

Any idea how fixed it? @tkimnguyen @vikas-parashar

Missing setup step

The slider images view assumes that you have a scale available named banner. This is not in Plone by default so it should be added in @@imaging-controlpanel. It would be useful to say this in the readme because the behavior without this change does not make it obvious what the problem is.

Unable to delete theme from @@theming-controlpanel

I'm using this theme for a subsite using lineage.

I uploaded the zip file and then created a copy for modifying. However, I'd like to delete the original uploaded theme and cannot. I click on the delete button in @@theming-controlpanel and see a blanked out box on a darkened background. Please see images attached.
business_theme_delete2
business_theme_delete1

Version Overview
Plone 5.0.6 (5016)
CMF 2.2.10
Zope 2.13.24
Python 2.7.12 (default, Oct 12 2016, 13:45:40) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
PIL 3.3.0 (Pillow)

Lineage	2.1	2.1
Lineage Index	0.5	0.5
Lineage: Child Site Local Registry	1.3.3	1.3.3
Lineage: Theme Selection Addon for Child Sites	2.0	2.0

Version of plonetheme.business_casual.zip (downloaded on 15 feb 2017)

Can't put a non-English character in the title

Hi,

As I'm French, I wanted to write a French title for my Plone site using the Business_Casual theme.

So I wrote: site_title = string:Partage d'expérience

But it doesn't le me do that.

Is it a way to write a title with accented letters in it?

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.