Tuesday, July 25, 2006

Removing "Edit Primary Link" in Drupal

Renovation of our college website gave me an oppurtuity to work in Drupal. Did a lot of tweaking and little editing in CSS and just got the feel of Drupal. Drupal rocks with a plethora of features, plugins and modules. It was a great experience to work in a cool CMS like Drupal. One thing in which we got stuck up with was removing "Edit primary links" thing that appeared in all pages. So here comes some of my experience which may help some

1) To remove the "Edit primary links" u have to edit menu.inc files in the include directory. In Drupal 4.7.2 u have to comment lines 814 to 817. The lines could be easily identified.

2) To upload image in a page image module and img_assist modules available in Drupal is used. Drupal image icon can also be added to the Tinymce WYSIWYG editor for easy use. But even after doing all this image may not upload correctly. The problem may be because of the webserver. Apache2 should be configured with --enable-gd-imgstrttf --enable-gd-native-ttf for them to work correctly.


psonica said...

Great site lots of usefull infomation here.

drupal said...

well it will be automatically vanishes as soon you add a menu in primary links..
or you can simply do it by chenging the THeme template (.tpl) file

DONT MOD THE CORE filed dude..