Forums / Setup & design / Homepage with 2 columns
Andreas Kaiser
Friday 29 September 2006 9:25:56 am
I have to create a hompage template with 2 columns.
How good would it be to modify the article class with two select boxes (show frontpage column 1 / show frontpage column 2) and then filter by attributes the articles to show in every column of the template?
Perhaps other option would to create a section, but I don't really see how really sections work...
(I have to learn a lot about ez publish and the templates...because I feel to lost...)
Thanks in advance
eZ Partner in Madrid (Spain) Web: http://www.atela.net/
Ćukasz Serwatka
Monday 02 October 2006 12:05:08 am
Hi Andreas,
I would use new content class called "frontpage" where you can have those 2 columns, XML block attributes and title (Text string) attribute. Then you need to assign template to that class and check if column has content ( http://ez.no/community/forum/general/check_if_attribute_has_content_or_not ) then display it. Using CSS you can easily play with columns width.
http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog