I'm digging into Knop and trying to understand huw to use all the
different parts. I'm slowly getting forward but there's still things
I don't fully understand.
This is how I think stuff happens:
When building the final result Knop uses the path info. So if path is
customer/list Knop looks for files like xxx_customer_list.inc in
_config, _library, _content and includes/process them.
(I'm about here in my process.)
But, what if I want some parts of the page that's not specific for a
given page or module? Like I usually have a header that's partly
dynamic. For instance I would like a login form in the header
regardless of what page the user is at. And if the user is logged in
I want that state to be reflected in the header as well. Where do I
put this info? Do I need to repeat it in every cfg.xxx_xxx.inc dokument?
At 23.37 +0100 2007-03-08, Johan Solve wrote:
>At 23.16 +0100 2007-03-08, [hidden email] wrote:
>>But, what if I want some parts of the page that's not specific for a given page or module? Like I usually have a header that's partly dynamic.
>I put such reusable common snippets in _include.
>There is really a need to separate the logics (lib) from the presentation for such snippets but so far I put it all in _include.
There is also cfg__global and lib__global where you can put common configurations and logics.
Johan Sölve [FSA Member, Lasso Partner]
Web Application/Lasso/FileMaker Developer
MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se mailto:[hidden email] (spam-safe email address, replace '-' with 'a')