Stacks or includes
Permalink
Hi !
I'm only beginning with Concrete 5 and I have to say I am really impressed with the work ! Now just like any beginner I have tons of questions ! One of them is :
If I got it well stacks are like chunks of html we can place somewhere. My question is, what is better ? Just keep the regular php includes I already have as they seem to work perfectly or replace the includes with a stack block ? Will there be any difference in terms of speed as I guess the stack will call data from the database whereas an include code will not ?
Thanks !
I'm only beginning with Concrete 5 and I have to say I am really impressed with the work ! Now just like any beginner I have tons of questions ! One of them is :
If I got it well stacks are like chunks of html we can place somewhere. My question is, what is better ? Just keep the regular php includes I already have as they seem to work perfectly or replace the includes with a stack block ? Will there be any difference in terms of speed as I guess the stack will call data from the database whereas an include code will not ?
Thanks !
There is a big difference between stacks and includes.
Stacks are a great way of producing multiple use areas, so for example you could have a sidebar stack that has , a form block in it, a content block in it, and a map block in it, and then you could just add that to any page you need that combo of blocks on, via the site edit menu, if your using includes you would need to hardcode these blocks into the include and call them in your code, stacks can be built and operated from within Concrete5.
Regards