Welcome Guest, Not a member yet? Register   Sign In
Where do you put the content of the site?
#2

[eluser]tonanbarbarian[/eluser]
I think I might have just answered something similar to this in another post.

You want to break your site up into parts, call them modules, elements whatever, so that you can have more control over the display rather than having the entire page in a single view file?

If that is the case look at this post I just wrote

http://ellislab.com/forums/viewreply/329953/

Also what I did not mention in that post (and I will not include code for here) is that you can use a similar system called Layouts , usually implemented as a Library (look in the forums and wiki for examples) that allow you to put code around your view.

Basically the process is
Layout
View
Element
Element
Element

I guess the Layout could load more elements as well
The layout just makes it easy to "skin" or "template" your site without having to change every view

Hope this is what you are looking for


Messages In This Thread
Where do you put the content of the site? - by El Forum - 12-13-2007, 02:27 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 02:43 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:07 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:26 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:33 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:48 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 03:58 PM
Where do you put the content of the site? - by El Forum - 12-13-2007, 08:01 PM
Where do you put the content of the site? - by El Forum - 12-14-2007, 02:09 AM
Where do you put the content of the site? - by El Forum - 12-14-2007, 09:38 AM
Where do you put the content of the site? - by El Forum - 12-14-2007, 06:27 PM
Where do you put the content of the site? - by El Forum - 12-25-2007, 10:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB