Friday, November 19, 2010

Avoid Scrollbars when using JQuery Accordion

Use the fillSpace and clearStyle options and set them to TRUE.
$("#accordion").accordion({
    fillSpace: true,
    clearStyle: true
});

Saturday, November 13, 2010

Get the Language ID from Template in Joomla 1.5

$config = &JFactory::getConfig();
$config->getValue('language');

Tuesday, November 9, 2010

Get Raw Data in the Template in Symfony

echo $page->getRawValue()->getContent();
The $page variable is the model object and the getContent method gets the content column/text which contains HTML tags... To avoid html entities, you have to use the getRawValue method.