Suggestions regarding creation of block and package

Permalink
Hello All,

I have a question regarding development of site in concrete5. Suppose if I want to build a website with listing of houses on homepage with house images and also there will be a house detail page in site. so what best option to achieve this, Do I need to create a package for houses or I have to create two blocks one for homepage and another for house detail page?

Thanks in Advance!

Akash Sharma

 
WillemAnchor replied on at Permalink Reply
WillemAnchor
WebcentricLtd replied on at Permalink Reply
You don't really need to create a block or a package - you could achieve this through the use of page attributes and page lists and it would require quite little in the way of coding.

In general I mean - create some page attributes like house_image, house_price, house_description etc and use these in a custom page list block template.

You could then reuse these attributes when rendering the page for each individual house.
akash1408 replied on at Permalink Reply
But If I use this approach then I have to create dynamically more than hundred pages for houses. so can I create a package with only two page one for listing of houses and other for detail of house?
MichaelG replied on at Permalink Reply
MichaelG
So you want a house list block, and a single page "detail" page to pass all the house through?

If so, then fine. But either way you have to create some type of object for the houses. A page is just a fancy object with attributes already built it.
JohntheFish replied on at Permalink Reply
JohntheFish
There are a few real estate packages in the marketplace that provide bulk entry.

Or you could use a shop / eCommerce addon where each property is a product.