sad wrote: > page1 is ROOT > page2 is /test > pe1 is code-compat defined in page1 > > page1 points style "default" > page2 points style "empty" > > page1.content is "main page" > page2.content is "TEST" > pe1.value is "COMPAT" > > (all the above should have style independent behavoir by definition) > > I see in the cache: > page1: 77.php > COMPAT > main page > > page2: 78.php > TEST
OK, that is the behaviour as I would have expected it. If a page is assigned a style, the search for parent styles and inherited elements stops at that page. I'm not saying that we can't change this, it is in fact rather trivial to change. Commoent out 'g_array_set_size(path, 0);' in lib/src/pageresolve.c and you're done. What do y'all think, people? Should inherited elements show up through styles? > Connecting to mysql://midgard:<password>@localhost/mgd_test > Resolving host: http://www.e-bankir.ru:111/test > Host found: 6 > Resolving page: http://www.e-bankir.ru:111/test > Page found: 78, active=0, redirect=1 > > If i change page2.style to "inherited" nothing changes in the above output!!! You need yesterdays changes to test/pageresolve.c to see a difference. The difference is there but not displayed. > But cached pages are changed to: > page1: 77.php > COMPAT > main page > > page2: 78.php > COMPAT > TEST This is what I would have expected. Your sample was excellent and clearly pinpointed where we misunderstood each other. I'm open to discuss what the desired behaviour would be -- as you see it's a one-liner change. I'm reposting this to user@since changing behaviour needs community involvement. Or is it actually existing behaviour that inherited elements show up through assigned styles? In that case there's no discussion, I'll just change the preparser. Emile --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
