On Tue, 2002-10-22 at 17:37, Eero af Heurlin wrote: > Simon Chan wrote: > > > > Hi, > > > > I am the midgard beginner and I don't know what is the difference > > between page and style. Since I write php and use php template before > > and I don't know where I put template in midgard is suitable. Is anyone > > can help me?? > > > > Page is an object the has either defined or inherited style (it's > inherited from either parent page or host object if the current page is > root level page) > > style contains elements (called style-elements) pages can also contain > elements (called page-elements) page-elements override style-elements > with the same name, elements are called using <[elementname]>, element > names ROOT, code-init, code-compat and code-global are magical, they're > automatically called by Midgard, ROOT is usually only present in styles, > where it can contain the layout directly with <(content)> placeholder > where the page->content should appear, usually though the layout is > divided into logical blocks which are then called as neccessary. Styles > can also contain have child styles, which by default inherit all the > parents elements, but by defining an element with the same name you can > override it, this is very usefull for making for example a slightly > modified style for extranet, based on the public website style and so > on... > > Calling an element is roughly equivalent of include() (the contents of > the element are evaluated as neccessary) though for storing code that is > not essential for the layout (or is meant to by distributed separate > from the layout) I recommened using snippets which are included with > mgd_include_snippet(). > > Hopefully this gets you started. Explaining the style system thoroughly > requires some hands-on showing or illustrations, while it's simple to > use in most cases it can be quite complex when you start taking into > account page-elements that have their inherit set to true (so subpages > also inherit this page-element and so on) and child styles etc. > > -- > Eero af Heurlin [EMAIL PROTECTED] > Consultant Partner Tel: +358 (0)20 198 6035 > Nemein Solutions Oy http://www.nemein.com/ > > Nadmin Studio and Midgard support at +358-20-198 6050 / > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
Hi Eero af Heurlin, Actually, I know Midgard provides some template or style that help us to build website. eg:www.its-linux.com I want to use Midgard template but cannot find it. Can you tell me how can use Midgard template?? Also, I want to know what is snippet. I just know we can share the code in it. Thanks. Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
