Web Translate

Label

Friend Connect

About Me

Sharing Can Make Your Live Easier
Lihat profil lengkapku
Rabu, 06 Januari 2010

Create Block for Specifik Page on Drupal

For example if you want add some html script on certain term so here are what you must do. As note I use Drupal 5.xx another version maybe have same way.
First thing you must know ID (number) of the term If you don't know then let's do this.
1. Login to your drupal site
2. Go to Admin > Content Management > Categories > Choose list term on the categories that be mother of the term > Highlight or Click Edit
3. Then you will see number or ID of the term. Remember it
If you have get the ID than create a block
1. Go to Admin > Site Building > Block > Add Block
2. Save the block and edit again by click configure
3. Scroll down your browser and on the bottom you can see menu "Page specific visibility settings"
There are 3 option that you can use to show block on specific pages.
- Show on every page except the listed pages.
- Show on only the listed pages.
- Show if the following PHP code returns TRUE (PHP-mode, experts only).
If you just want show the block on specific page so choose option number 2 "Show on only the listed pages" Then on the textarea pages submit this
taxonomy/term/8
8 is ID of term. Because term located under category (taxonomy) so you must write taxonomy/term/8
4. Click Save
5. Now you can publish the block if it's not publish. It's mean you can locate block on specific section on your drupal site.

0 komentar:

Posting Komentar