Just thought is might be handy to see a screenshot for some themes that get posted on pypi.
So here’s a first:
This looks very clean, for me it would have been even nicer if you were able to add more than two line of actual content before you run out of screen space. Usability wise it’s not a good idea to have to go scrolling just to read the contents of your site. But I have to say that the big header thing is apparently popular, since I’ve been seeing them popup everywhere the last year or so. Some examples: Plone.org itself and De Redactie (newssite from Belgium). And while I’m typing this I suddenly realize that even this blog has a big header, but unfortunately I can’t easily change that either
In Plone 3.3 there’s finally a solution for redirects, or at least there is for most of our use cases
There’s an extra option available in your Site Setup – Types (/@@types-controlpanel) where you can say that when you add a Link to your site, this will automatically redirect instead of just showing the link address.
This is also visible in the ZMI/portal_types where the default view for a link is then set to link_redirect_view instead of link_view.
If you set this option, the short name of your link can then function as a redirect.
So, for our usecase: site/index_en.php should redirect to site/english/, we just add a link named index_en.php and as a url we add the full path to the english folder. When people than surf to yoursite/index_en.php, they will automatically get redirected to the english part of the site.
Note: Remember that this only works when you are logged out. If you have rights to edit the link, of course you have to see it first so you can click Edit to change the address if needed.
Use case: an old url (index_en.php) should automatically get redirected to the new plone_site/english/index. Since this is in a folder you can’t use the short name, also not a link with a short name because a standard plone link doesn’t automatically redirect (only in navigation).
- add Products.RedirectionTool to your eggs and zcml section in buildout
- run buildout
- add a Plone site in the ZMI with the Products.RedirectionTool profile selected
What it does
This tool adds a tab to your global toolbar where you can add an alias for every object inside your Plone site.For example, you can make sure this way that your old index.php and index.html links keep working although your page in Plone is now named (short name) welcome.
After installation you see a tab Aliases:
In this tab you can add aliases you want to have for the object you are on (context):
- add collective.redirect to your eggs and zcml section in buildout
- run buildout
- add a Plone site in the ZMI with the Install collective.redirect profile selected
What it does
This package adds a content type called Redirect.
You can name (short name) this link anything you want but not the starting point of your redirection (e.g. if you want index_en.php to get redirected to your english folder, don’t use index_en.php as a short name for this redirect.)
The value in Local path will get redirected to what you put in URL. In our case we want to make index_en.php to go to the english folder in our plone site (rtcr)/english). Make sure you add the name of the plone site if it’s an internal link.
You can also redirect to external url’s. E.g. if you want yoursite/kuleuven to automatically send you to http://www.kuleuven.be. This option makes it possible to arrange some of your apache url rewrites for you.
not tested yet, will come later on…
Plone 3.3 – new link view
In Plone 3.3 they will add a new link view: link_redirect_view. You will be able to select your desired link view in the site setup. You can see what view is being used in ZMI/portal_types/link. Still need to test this to see if it is useful for us.
More info in the next post: link_redirect_view
I’ve been testing some packages in Plone (3.2 and/or 3.3rc’s) and thought it migth be handy to put the results into my blog so our team and the rest of the world can review this. Here’s a first attempt…
This package makes it possible for your users to upload multiple files (documents and images) at once from their computer into the plone site.
- add Products.PloneFlashUpload to your eggs and zcml section in buildout
- run buildout
- add a Plone site in the ZMI with the PloneFlashUpload profile selected
What it does?
After installation you can see a tab Upload in the toolbar of your plone site.
In that screen you can browse your computer using the button
Then select several files you want to upload and click Open:
You can see the files being uploaded:
The result: All uploaded files are added to your website.
- Tested on: Plone 3.2.2, IE7 and FF3.0.11
- Uploaded following file formats without problems: jpg, png, pdf, doc, ppt, mp3, inc, css, php.
- Uploading an html-file appears to work (upload completed) but doesn’t show up anywhere in the contents of your site. This package is meant for images and documents, not for webrelated files (html, php, asp,…).
- There is a maximum size to files that you upload, you can change these settings in zope.conf (cgi-maxlen 0).For more information see this formpost on markmail.One of my files was over 9MB so that should be more than enough…
- There’s also a section on FlashUpload in your Site Setup which lets you add content types that are available for upload. Adding Document to this list makes it possible to upload html-files for example, but they only show the source code so it’s not usable as an import-tool