Hi,
>> I think not. MidCOM caching should be disabled and the debug.log says it
>> is loading style 19, which is the ID of Sub12. Already made a little
>> test page without midcom and assigned the style Sub12 to it. There the
>> output is as expected. I fear it is a MidCOM problem...
>
>Where and how do you call the Style element "div-titel"? Are you using
>MidCOM's style function?
No, I use it as a "normal" Midgard Style. It is called in the ROOT of
the main style:
..
<body <(bodytag-extra)>>
<(div-titel)>
<(div-menu)>
<(div-content)>
<(div-unten)>
</body>
</html>
..
The structure of the style is as follows:
SG :
MyStyle
+Sub1
+Sub12
<[div-titel]>
<[show-article]>
+Sub2
...
<[show-article]>
<[ROOT]>
<[content-row]>
<[css]>
<[div-box]>
<[div-content]>
<[div-menu]>
<[div-titel]>
<[div-unten]>
<[show-article]>
Now I set the style of a topic to and what I expect is that it takes
the element "div-titel" form Sub12. But it takes the element from
/MyStyle. If I assign the same style (/MyStyle/Sub1/Sub12) to a
non-MidCOM-page it works like expected.
Maybe this is because the style /MyStyle is assigned to the root page
of the MidCOM site and style assignments to topics in AIS are only
resolved by MidCOMs style functions, as they are implemented as
record_extensions and midgard does not know about them.
But how to make little changes in the top of a page for different topics?
I need some different images for different topics. OK, I could get the
current topic in "div-titel" from the context and implement a case...,
but this is not the way I like it.
Hope I clearly described my problem now and you can give me a hint.
/ingo
>
>In order to make MidCOM display the right style (which is independent
>from the Page Style because of some reasons), you have to use e.g.
><? midcom_show_style("div-titel"); ?>
>
>Remember this is a function, so you have to make all variables you want
>to pass to the Style Element global ones.
>
>
>> The following is the output of debug.log:
>>
>> Feb 24 10:41:38 [info] midcom_helper__styleloader::_getComponentStyle:
>Current
>> component has user defined style: 19
>> Feb 24 10:41:38 [warn] midcom_helper__styleloader::_get_style_id_from_path:
>> Substyle '' not found
>> Feb 24 10:41:38 [info] midcom_helper__styleloader::show: trying to
>load "style-
>> init"
>> Feb 24 10:41:38 [info] midcom_helper__styleloader::show: trying to
>load "show-
>> article"
>> Feb 24 10:41:38 [info] midcom_helper__styleloader::show: trying to
>load "style-
>> finish"
>> Feb 24 10:41:38 [info] midcom_helper__styleloader::_getComponentStyle:
>Current
>> component has user defined style: 19
>> Feb 24 10:41:38 [warn] midcom_helper__styleloader::_get_style_id_from_path:
>> Substyle '' not found
>
>See question above, there does not seem to be a load request for
>"div-titel"...
>
> Nico.
--
Nico Kaiser ::
[EMAIL PROTECTED] :: http://siriux.net/
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]