Archive for the 'plone' Category

am I a splogger?

Thursday, December 14th, 2006

A new term for my web buzzword vocabulary today: “splogger” - a term I just saw on scobelizer, apparently used for “someone who uses a system to automatically copy blog posts from other people”. I am doing something similar with the “skatevine” page on dfr skate zine, but I prefer the term “news aggregator”. I’m not profitting from this as I don’t currently carry advertising on DFR - my reasons for doing it were basically:-

  • make the site more useful, a source of skateboard news for people who don’t use an RSS aggregator (or even know what one is)
  • a platform to experiment with RSS aggregation tools in plone (currently using CMFSin, shortl^h^h^ eventually to be moved to feedfeeder)
  • To provide links back to the sites it aggregates content from in a useful way.

I can see that some people might get annoyed if their content appears on other sites without their permission, especially if the site in question is passing the content off as their own and/or using it to drive ad-revenues. Site owners who carry advertising may also worry that people reading their content on other people sites aren’t going to see (and click on) their ads, but the flipside of this is that if they do link back to the original content, this will boost the pagerank of the original content, therefore making people more likely to see it and click on the ads - this wouldn’t happen if everyone used a personal news aggregator).

I can also see how it can be annoying if search engines rank the aggregated posts higher than the original posts (which was the point of Scobles post I think….), I guess if they got this sorted it wouldn’t be such an issue.

Getting the Title of the current level0 node in Plone

Wednesday, December 13th, 2006

This is not so much a “how-to”, but more of a “is this how-to?”, I post it here mainly to invite comment and expose my ignorance about the much cleaner method that probably exists.

OK, first my use case - in a skin I am building the title of the current level 0 node is always displayed as a section heading e.g. If you are viewing the page “eggs”, a few levels down and the breadcrumb trail reads home -> foo -> bar -> eggs, “foo” is displayed as a banner heading, so wherever you are in the site you know what main section you are in.

so I have created a skin script called getLevelZeroTitle that has approximately this in it (with try/except statements, and a list of id’s to ignore to handle errors):-

current_level0_path = ‘/’.join(context.getPhysicalPath()[:3])
section_id = context.getPhysicalPath()[2]
current_level0_title = context.portal_catalog(path=current_level0_path)[0].Title
return current_level0_title

Is this the way forward or is there something “built in” to handle this?

If you love your plone data, set it free…

Tuesday, November 21st, 2006

If you can get it back into version 2.5 then the data belongs to plone, otherwise it never belonged to plone in the first place..

I’m still undecided and a bit lost about how i’m going to get www.dfrskatezine.com upgraded from 2.1 to plone 2.5

To recap:-

  • I can’t really upgrade it in situ (although could be persuaded to try it if people think this is the best bet)
  • portal zexp import didn’t work for me
  • smaller zexp imports left me with broken stuff.
  • it is on a shared instance so the data.fs file is too big to move realistically (once again, still an option if encouraged)

so…I’ve started creating some zpts that I can use to dump content as xml files (e.g. all_articles.xml, containing title, content, url and any other data I need to move - kind of RSS on acid). Not quite XMLforest, but I haven’t got my head round that yet as I live in the skin layer mostly. The masterplan is to then use some python foo magic to populate a fresh 2.5.most_recent_stable site from this XML.

Obviously I need to handle the images and other files seperately - so far I have used a skin script to generate a file containing wget statements for each visible/published image on the site and download the images with a mirrored folder structure, along with an accompanying xml file with the captions, descriptions and paths. I intend to rebuild my products from scratch (pop my zope 3 cherry even?) so I don’t necessarily need my existing products to be 2.5 compatible.

Think i’m going about this the wrong way? Please let me know! Please also bear in mind that while I am a keen student, I am mostly a GUI guy (+ basic archetypes development), and am easily confused by your crazy python talk, and have been made weak by your excellent installers, to the point that I haven’t got a clue how you would go about installing or upgrading zope if it requires me to do anything more than click buttons ;-)

How to confuse the hell out of the plone navtree and yourself in six easy steps

Tuesday, November 7th, 2006

Six simple steps to make the plone 2.5 navigation portlet get it’s knickers in a twist:-

  1. create a folder in the root of a plone site
  2. in folder contents in the root, move your folder to the top so that it is the first item (after “home” if you have that enabled) in the navigation tree
  3. in the new folder create a new page and set that page as the default view
  4. in the ZMI enable “Folder” as a type that can be used for a default page (see this is where I should have known something bad was going to happen)
  5. go to the root of the site and set your new folder as the default view of the portal (i.e so that the homepage of the portal is in fact the default page in your new folder one level deep - believe it or not I had a reason to do this)
  6. Hey presto your new folder falls to the bottom of the navtree - no amount of reordering will persuade it otherwise! You can try swearing too if you like, that won’t work either ;-)

PloneFormGen - through the web form builder for plone

Monday, November 6th, 2006

An off-hand comment I heard about PloneFormGen while I was at plone conference has possibly just payed for most of the conference and travel expense to get to Seattle. I can’t remember where I heard it, but someone mentioned that it was a nice product. I stuck it on my mental to-do list to try it out…

I’m currently working on a site that is close to going live and I had an email waiting for me from the client on friday, saying something like “by the way, can you change that join button so that it sais join our mailing list?” The conversation that followed let me establish that in fact what they wanted was a custom contact form with a few extra options. Usually I would then proceed to hack the contact form and mail script around to achieve this - knowing that I would have to be careful not to lose my customisations if I upgraded or reskinned the site, but this time I decided to try PloneFormGen.

Now that really was painless, really easy to figure out (i’m one of those people who you have to threaten with physical violence before I will RTFM). Thumbs up to Steve McMahon for a very useful product :)

what I did on hol..h^h^h.. at plone conf 2006

Thursday, November 2nd, 2006

central not so perky

I intended to do a comprehensive wrap up of our trip to plone conference in seattle (and stopover in new york), but it is still a bit of a blur, and i’m still jetlagged (ok, i’m just a lightweight, i’m always sleepy). I need to have a look at all the presentation material and my notes, so I promise to write something up and provide some feedback to the presenters in the next week.

The major insight (plonewise) to come out of this week is that resistance to Zope 3 is futile, in fact i’m quite excited about the idea now :-)

Decisions, decisions

Friday, October 27th, 2006

The final afternoon and I face the trickiest decision over which session to attend - all three tracks look useful. I wanted to go to Nate Aune’s multimedia and podcasting tutorial, but i’m fairly well up to speed on that already, but it was difficult to decide between the KSS/ Azax and the UI’s 2.0 tutorials. I plumped for KSS on the basis that I have no idea what it is..

stick a fork in me - i’m done

Friday, October 27th, 2006

it’s the start of day three of plone conference 2006 and I am stuffed with both plone knowlege and lovely delicious fatty food. This hasn’t been as debauched as previous conferences (for the netsight contingent at least) as the jet lag has made us flake out in the evening before we manage to to do any serious damage to our livers.

Last night we took a cab up to a mall to try to procure some cheap consumer electronics - the cab ride there and back was an experience in itself - the first driver hadn’t got a clue where he was going and was asking for directions from us, while mysteriously changing lanes and indicating for no reason - the driver on the way back thought he was in Gran Turismo or something.

plone conference 2006 seattle

Thursday, October 26th, 2006

space needle

i’m two days into plone conference 2006 and it has all been a bit of a whirlwind so far. I’m eight hours behind UK time and travelled 26 hours to get here after missing our connecting flight in houston, thanks to some helpful individual at passport control who wouldn’t let us jump the queue.

so far we haven’t ventured much further than three or four blocks away from the venue, but luckily there are ample bars and restaurants close by. The hotel has good wifi, the conference venue wifi has been intermittent but seems to be improving. I’ve been too busy to blog much, but I have uploaded one or two photos to flicker.

The conference itself has been interesting and the keynote this morning has given me a clearer understanding of where plone is at the moment and where it is going. I was also pleased to note that I am not alone in having trouble with migrations between version and at least it is a recognised issue and much thought and effort is going into a solution, and that solution involves being able to dump a sites content into an intermediate format that can be used to populate a new site, thus giving me a way to get my content where I can see it, rather than hidden in zodb/zexp voodoo.

plone migration woes

Sunday, October 22nd, 2006

At the moment, my pet plone project DFR skate zine is still live, but because netsight have some devious plans for the server it is on, I am trying to upgrade it to the latest version of plone. The site is current running plone 2.1.1 (tip: if you can’t remember what version of plone your site is running, go into the ZMI and click on portal_migration - you’ll find lots of useful info there, including the plone version).

Initial attempts didn’t go well, but I haven’t given up yet. I’m now trying a different approach - creating a blank plone 2.5 site and trying to bring the content over bit by bit. Some of it imported just fine and other objects are throwing various key and attribute errors.

This blog post by Andreas Jung looks like it could be quite useful - my version jump is nowhere near as big as the version described here, but the technique looks interesting - particularly the script for cloning a tree of objects.

I have some fairly radical plans for the development of the DFR site, I was actually thinking of recreating the skin and content type products from scratch, because a) I want a single skin for public and admin view now and b) because the archetypes content types were patched together in a bit of an ad-hoc way, and now they seem a bit.. well… unclean, and basically I think I can do better now..

so… the masterplan at the moment is to extract the content into some format that I can get to the data easily (as I still find it very confusing trying to get to data “lost” in zodb, when the site is broken), then write a script to populate the new site from the data. Obviously xml fits the bill (along with files and folders for media content).

Marshall and XMLForest have been whispered to me on a need to know basis! If I can crack this i’ll be much more confident about maintaining plone sites long term, in the same way that I am confident with CMS’s that use a SQL database for storage.