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.
modulesrounds.png


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

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support