Company website upgrade & update, now and thenSo, I'm pretty much done with the upgrade of the website
It's been a bit of work to fine-tune the layout, polish the content (although it should be more). I've also had to go in and modify the plone.app.portlets package to include the suggested patch (don't remember where) that skips <ul> tags in navigation to get an HXTML result that is 100% compliant with the W3C validator.
I started with the beyondskins.responsive theme for layout and design, and have made a lot of changes to it to simplify it, and make it pass the W3C validator. It had some weird HTML-attributes such as role.
There was also an HTML attribute in Plone that didn't jive with the W3C validator, and that was the attribute placeholder on the search box. Isn't (X)HTML compliance a bit important thing for SEO and accessibility, if so - why did something like that slip through the Plone development/release process?
There was one thing in particular I noticed when validating the page on W3C - and that was that the KSS system put an invalid attribute into the template. So I added a product in products called Patches, with the following __init__.py file:
from zope.interface import implements
from zope.component import getMultiAdapter
from zope.viewlet.interfaces import IViewlet
from Products.Five.browser import BrowserView
""" Renders a link rel tag with the real url of the published object. """
def __init__(self, context, request, view, manager):
super(KSSBaseUrlViewlet, self).__init__(context, request)
self.__parent__ = view
self.context = context
self.request = request
self.view = view
self.manager = manager
self.context_state = getMultiAdapter((context, request), name=u'plone_context_state')
# We need to generate the link in every case, since the new url base detection
# algorithm of kss relies on it.
return u'<link rel="alternate" href="%s/" />' % self.context_state.object_url()
from plone.app.kss import headerviewlet
headerviewlet.KSSBaseUrlViewlet = KSSBaseUrlViewlet
That worked out well.
Anyway, I think the website looks pretty good now, available in English, Norwegian (y un poco) español.
I would *love* to get some comments and feedback on what is good and bad, what should be changed, removed or added.
[Permalink] [By morphex] [Python, Zope, Plone - and anything loosely related to that (Atom feed)] [2013 10 Jan 12:09 GMT+2]