Re: modify accordion behavior and appearance

TsungWei Hu <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <CAJtAThFCxhTt2R9G6ANSOtgt=vzmgGnOPJ+8g4h4oKzw8Hi2sg@mail.gmail.com>
Hi,

On Thu, Oct 16, 2014 at 7:57 AM, Chuck Theobald <[email protected]> wrote:

> Jean,
>
> In your latest email on this subject, you referred to four ways to
> modify the accordion.js, the second of which is recommended. As I do not
> want to behave savagely, I would like to pursue this optino.
> Unfortunately, I cannot locate such a project in my file system. Do I
> need to check it out of svn or git somehow?
>

By "override it in your policy product", Jean means "create your own
product in the filesystem, specifically in the zinstance/src/ folder if you
installed with the Plone Unified Installer.

By "create your own product", you need to choose a project name, like
"myproj.policy" and run the ZopeSkel tool. It may look like the following:

$ cd ~/Plone/zinstance
$ cd src
$ ../bin/zopeskel plone

plone: A project for Plone add-ons

This creates a Plone project (to create a Plone *site*, you probably
want to use the one of the templates for a buildout).

To create a Plone project with a name like 'plone.app.myproject'
(2 dots, a 'nested namespace'), use the 'plone_app' template.


This template expects a project name with 1 dot in it (a 'basic
namespace', like 'foo.bar').

Enter project name: myproj.policy

If at any point, you need additional help for a question, you can enter
'?' and press RETURN.

Expert Mode? (What question mode would you like? (easy/expert/all)?)
['easy']:
Version (Version number for project) ['1.0']:
Description (One-line description of the project) ['']:
Register Profile (Should this package register a GS Profile) [False]: True


Hopefully this helps you on the first steps. Get yourself a book:
Professional Plone 4 Development by Martin Aspeli, and you will be on a
more smooth path.

Personally, to modify accordion.js in such a case, I will begin with a
fresh Unified Installer, and do the following:
$ cd ~/Plone/zinstance/src
$ git clone git-9UaJU3cA/F/[email protected]:plomino/Plomino.git Products.CMFPlomino
$ cd ~/Plone/zinstance
$ vi develop.cfg
[sources]
Products.CMFPlomino = fs Products.CMFPlomino

[buildout]
eggs +=
    Products.CMFPlomino

$ bin/buildout -c develop.cfg
$ bin/plonectl start

It should take less than one hour. Then, you can modify anyway you want in
src/Products.CMFPlomino. This is like Jean's option #1, but civilized
enough. If you are able to keep your customization in your own github
space, that's even better.

Good luck.

/marr/

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.