Module Chrome knowing when is the last module. - Joomla! Forum - community, help and support
hi,
i created chrome template.
what display different style depending on position of module being wrapped.
the first module of left position needs partly rounded, middle modules need round, , last module needs partly rounded rounded corner opposite first module.
i'm not sure clear here attached screen shot of want.
and here how see chrome function
i need know when module either first or last or none of those.
i checked params passed default function , doesnt seem that.
is there way know these positions without doing nasty query db ?
i not want create new position template , set different style each position.
it needs 1 position user friendly.
hope i'm clear enough
thanks
i created chrome template.
what display different style depending on position of module being wrapped.
the first module of left position needs partly rounded, middle modules need round, , last module needs partly rounded rounded corner opposite first module.
i'm not sure clear here attached screen shot of want.
and here how see chrome function
i need know when module either first or last or none of those.
i checked params passed default function , doesnt seem that.
is there way know these positions without doing nasty query db ?
code: select all
function modchrome_mychrome($module, &$params, &$attribs)
{
//if first module partly rounded
//if middle module fuly rounded
//if last module partly rounded opposite
}
i not want create new position template , set different style each position.
it needs 1 position user friendly.
hope i'm clear enough
thanks
Comments
Post a Comment