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
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
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.
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.
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?
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.
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.
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.
Or you could use a shop / eCommerce addon where each property is a product.
https://www.concrete5.org/marketplace/addons/page-list-maps-and-geoc...