Adding a new feature.

"Scott Savarese" <[email protected]>
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
I don't know if this already exists in mod_layout, but if not I would like
to try implementing it, and would like help... If it is in there, can
somebody tell me how to do it?

I have a website (duh?) that uses a template to create a left margin and
top header as a template. I can very easily take mod_layout and use it to
put a header on top of the content and the closing footer at the bottom of
the content. That will provide me with most of what I need...

However I would like to preserve the title fields in the content and place
it in the template at various places. For instance, my template currently
takes the title tag out of the html and inserts it into various points in
the template so that the title appears in my title bar as well as part of
my top header... I like how that looks...

So, I was wondering if I can add a tag... say 'LayoutKeepTag "<title>"'
which when implemented looks for the contents of the title tag in my html
and then looks for a matching tag in the template code. If it finds a
matching tag it replaces the contents with what was in the previous html.

Did I explain that well? If not sorry... I am trying to get a handle on
how mod_layout works but my C isn't as good as it used to be (I do perl
much better). If anybody could help me implement something like this it
would be great... I've already read some apache books on writing modules,
especially output filters, but when it comes to implementing it now I am
totally lost.

Thanks,
Scott
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.