Sometimes we may want to set the page title with url argument. This could be done by adding the following code in the page argument section of view setting. Continue reading Drupal – Set Views Argument as View Title
Category Archives: CMS
Drupal – Create Views for Parent Terms or Children Terms Only
Assume we have the following taxonomy hierarchy. Continue reading Drupal – Create Views for Parent Terms or Children Terms Only
Drupal – Customized Node Template with Exposed Filter in Panel Page
The following post shows you how to customize a node template.
Drupal – Customize Node Template with Panel
I would like to add a year filter in the above content pane. But the exposed filter would not work if you just expose the year filter. In this case, you will need to enable the Use Panel Path. Continue reading Drupal – Customized Node Template with Exposed Filter in Panel Page
Drupal – Customize Node Template with Panel
Panels is a very useful module for customizing page layout. You can either create you own page or edit the Drupal default templates such as Node View and Taxonomy View. Download the Panels and Chaos Tool Suite and enable the following options. Continue reading Drupal – Customize Node Template with Panel
Drupal – Increase ImageField Description Length
The ImageField allow you to add description on every image which you upload in the node. It could be enabled in the content type -> manage field. Continue reading Drupal – Increase ImageField Description Length
Drupal – Site Name Translation
The Drupal site name could be set @ Administer –> Site configuration –> Site information.
In a previous post, you can find out how to setup a multilingual Drupal web site using the i18n module.
Drupal – Apply Language Pack Continue reading Drupal – Site Name Translation
Drupal – Override the php.ini
I was working for a Drupal website which i wanted to increase its maximum file upload size. This value is determined by the php.ini configuration file.
Unfortunately, the server hosting does not provide the SSH access so i can’t edit the php.ini. Therefore i have to let Drupal override the php.ini settings. There is 2 ways for Drupal to override the php.ini settings. Continue reading Drupal – Override the php.ini
Drupal – Style Rendering problem of TinyMCE Editor in WYSIWYG
The WYSIWYG module works with lots of rich text editors such as TinyMCE, FCKeditor, CKEditor … etc. I downloaded the TinyMCE library and enable it in the WYSIWYG profile. After enabling the all available buttons in the rich text editor, i found that the style cannot be rendered correctly. All styled text are rendered without CSS style but attributes in square brackets []. Continue reading Drupal – Style Rendering problem of TinyMCE Editor in WYSIWYG
Drupal – Add and Remove Role From User
The following codes helps you to add or remove role from user. Assume u have a role called contractor.
Add the contractor role for the logged in user Continue reading Drupal – Add and Remove Role From User
Drupal – Custom BreadCrumbs Home Text Translation
If you want to translate the Home Text in the Custom Breadcrumbs, add the following lines in the sites/default/settings.php.
$conf['i18n_variables'] = array( //custom breadcrumbs 'custom_breadcrumb_home', );
Done =)
Reference: Custom Breadcrumbs – README.txt