Showing posts with label joomla. Show all posts
Showing posts with label joomla. Show all posts

Joomla: Redirect ke halaman tertentu jika belum login (guest)

$user = JFactory::getUser();
$mainframe = JFactory::getApplication();
if($user->id > 0){

JFactory::getApplication()->redirect('registered user url', $error, 'error' );
}
else{
JFactory::getApplication()->redirect(JURI::base().'index.php?option=com_users&view=login', $error, 'error' ); //redirect to login page
}
semoga terbantu :)

sumber
Continue Reading

Template compact news k2 content module

Continue Reading

Hide Empty Extra Field

Hide Empty Extra Field in module k2 content

extraFields->ALIAS->value)): ?>
extraFields->ALIAS->value; ?> bedrooms -
Continue Reading

add list item in same category k2 joomla

imagine if you have a virtuemart, while showing your products can also display other products of the same category




Continue Reading

warning " JCacheStorageFile::_deleteFolderFailed..."

Jika mendapat pesan warning " JCacheStorageFile::_deleteFolderFailed..."


  • untuk hosting pastikan folder cache dengan permission 777
  • untuk vps pastikan seluruh folder dengan user dan group www-data dengan cara chown -R www-data:www-data /var/www/joomla
Continue Reading