Looking for knowledge

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Looking for knowledge

Jolle Carlestam-2
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?

HDB
Jolle

#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lists.montania.se/Lists/knop/
(log in with your email and ConfirmationID as password, send message to
<[hidden email]> to get that ID)
Project homepage http://montania.se/projects/knop/
AIM chatroom knop aim:gochat?roomname=knop


Reply | Threaded
Open this post in threaded view
|

Re: Looking for knowledge

Johan Solve-2
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.

--
     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')

#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lists.montania.se/Lists/knop/
(log in with your email and ConfirmationID as password, send message to
<[hidden email]> to get that ID)
Project homepage http://montania.se/projects/knop/
AIM chatroom knop aim:gochat?roomname=knop

Reply | Threaded
Open this post in threaded view
|

Re: Looking for knowledge

Johan Solve-2
In reply to this post by Jolle Carlestam-2
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')

#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lists.montania.se/Lists/knop/
(log in with your email and ConfirmationID as password, send message to
<[hidden email]> to get that ID)
Project homepage http://montania.se/projects/knop/
AIM chatroom knop aim:gochat?roomname=knop