beforeRender added to cartofolio layout, still non-functional though.