Hi,

I have created a site using magnolia 4.5.2 and stk 2.0.2. But when ever I do an 
upgrade of my custom module I have to modify stk configuration which makes for 
a very unclear seperation of content between STK and my own custom 
functionality.

So to make it absolutely clear. I have magnolia with stk installed and I 
install two seperate modules to get my custom functionality. One for the code 
and one for the theme of the site.

One of my problems has been TemplateAvailability how to make it work without 
modifying stk configuration. So I implemented my own stk page type and model. 
But found out the category lookup only works for instanceof STKPage :-)
So I modified the category matching aswell.

Then I found at several places there is a lookup for the root of a site and 
it's theme. So I modified that using extensions. Then I found out the same 
methods are also exposed through STKTemplatingFunctions, which I can't 
override. So my fix is to modify all the places where those functions are 
called.

Question?

So was I wrong to use extensions to implement my own stuff on top of STK I 
wonder? Or should I have accepted the modification of STK configuration. And 
the mixing of custom and stk parts. I didn't want my own customized version of 
stk, cause I might want to upgrade later on.

So I start to get things working in my seperate module, modifying as less stk 
config as possible. But in the process I implement a lot of models myself :-) 

Now my second question is. How do I extend and override the server part of the 
configuration? I can't seem to extend those configuration trees in my custom 
module.

Same applies for the stk config folder, if I could have extended that I would 
have been able to add available custom templates based on the stk.

Hope to get some good feedback.. thank you..

Falks

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=2e053b50-f2f1-4c17-9551-cc0cfb3dacc7


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to