Adding additional new products to Cyn.in 3.1.3
The objective of this wiki is guide about the process of adding additional new products to the Cyn.in 3.1.3
For this task I selected the example.archetype product that is "an example package for learning how to develop an Archetypes-based content type".
Although this product is available to install from two resources like:
Step by stepDownload the Cyn.in Community Edition Source - v3.1.3 and install as said on the Wiki. When you finish the installation edit the file buildout configuration
and add the lines bellow:
Later go to edit the configuration file that contains constants used by default during setup handler of ubify.policy
extends = versions.cfg
versions = versions
# This extension will dump a list of unpinned versions
# each time you run buildout.
dump-picked-versions-file = dumped-versions.cfg
overwrite-picked-versions-file = True
always-check = true
# Reference any eggs you are developing here, one per line
# e.g.: develop = src/my.package
# Add additional eggs here
# elementtree is required by Plone
# specific source checkouts
example.archetype = svn http://svn.plone.org/svn/collective/example.archetype/trunk/
Locate the bellow sections and add the new configuration
PRODUCT_DEPENDENCIES = ('Calendaring',
spacesdefaultaddablenonfolderishtypes = ('Document',
Then edit ContentRoot.xml file from default profile of ubify.coretypes products and add the bellow configuration:
Also you need repeat the last past with ContentSpace.xml files from default profile of ubify.coretypes product and add the bellow configuration:
Then re-run buildout
./bin/buildout -vNc user.cfg
When your buildout is complete, you can start the zope server by typing:
./bin/instance fgThis will start the Zope server in foreground mode (so that you can easily kill it by pressing Ctrl + C). Read the scrolling output, if all goes well you will see something like the following when the scrolling stops:
"2008-07-14 13:58:25 INFO Zope Ready to handle requests"
Congratulations, you've managed to get over the difficult parts. Now for the easy / fun stuff:
Open up your favorite browser (Everybody say together with me: Firefox!) :)
Navigate to http://localhost:8080 (if you use the same computer as desktop) or substitute the localhost with the hostname (or even the IP address) of the computer that zope/cyn.in is running on.
You should see the "Zope quick start screen". Cool, you can access your newly built Zope server. Next, navigate to http://localhost:8080/manage . This will give you an HTTP basic authentication request. Use the following credentials to get in: username: admin and password: secret
You will see the standard Zope management interface. On the left you will see a frame when the Id of your previous cyn.in website created. The go to clic on Id and Now, scroll down, and find the item called portal_quickinstaller (Allows to install/uninstall products) and click on that.You'll get a list of previous products installed, among these check the check-box next to the item labeled "Ubify Site Policy" and hit the Reinstall
button. Do NOT check any other item.
Again, this will take some time and you can watch the scrolling progress in your fg command line window. When it completes, the list will refresh where most of the items will have moved down to the "Installed Products" section.
Great, you don't know it yet, but you've managed to get a working cyn.in installation built out of source! :)Let's get to proving that: In your browser, type up the following address:
If you don't like doing as recommended and chose a different ID during Plone Site creation, substitue your ID in place of cyin in the above URL, of course.
After some moments of tense waiting, the familiar cyn.in login screen should greet you and you can get in by using the following standard credentials: username: siteadmin and password: secretLater when you are logged go the Root space and click to New button and there will show the new archetype called "Example AT - InstantMessage".
- Write how integrate with meta data block
- Write how create a new site updates portlet for new content type
- Write how create a new apps view for new content type
- Write how integrate my new content type to site stats and content types distribution pie chart
- Create a Policy product for these configuration