Subscribe To RSS Feed


Mike D's SharpBlog

Just another Sharpdot weblog

Archive for April, 2010

Drupal: Wysiwyg TinyMce not working in IE

- Wednesday, April 21st, 2010 -

I recently was developing a Drupal Ver6 site and when doing functionality testing noticed that the TinyMce Editor was not working in IE. The editor buttons would not display. After hours of bug hunting and goggling I finally figured out the problem. IE apparently limits how many css includes you can have, so to resolve the issue I just had to Enable “Optimize Css Files” from the performance tab.

Hope this saves you hours of searching.

Posted in Drupal | 17 Comments »

Drupal: Forms, and Form Templates, Contact Form Template

- Wednesday, April 14th, 2010 -

I found this great video about adding a template to the drupal contact form and wanted to make sure I did not forget where I found it. It also has good general information about working with forms.

Posted in Drupal | No Comments »

Eclipse: Setting up FTP in Eclipse Galileo

- Wednesday, April 7th, 2010 -

The method I used to get FTP in Eclipse was to install Aptana Studio and Use the FTP client that came with it.

  • Once you get Aptana Installed you will need to open the Aptana Web perspective (Window -> Open Perspective-> Other -> Aptana Web).
  • Once you have the perspective open you should see a tab called File, if you don’t see this tab you can open it by going to Window -> Show View -> File.
  • In the File tab there should be an item called FTP, if you right click on it you will be presented with ftp options to create a Ftp Site.

Posted in Eclipse, Productivity Applications | No Comments »

Drupal: Complex View Layout, Getting Down and Dirty!

- Tuesday, April 6th, 2010 -

Drupal provides a ton of great functionality, but every now and then you get a designer, Amber :) , who just try’s to come up with a design for a Drupal site that challenges your knowledge of the system. Well thanks to the challenge I have found a nice bit of functionality to allow very custom views.

My challage was to have a block created by a View, pull the top 3 news nodes (basically like a blog) and display it on the homepage side-bar. Well that is not difficult, I even created a template for the block. Well now we wanted to show additional data for the first item in the view and not for the rest.

Question: Well, there is not a loop or counter to check for in the template file so how was I to get this done?
Answer: Using a Views Attachment Display.

Drupal Views have a display type called attachment. It is exactly as its name sounds,  a view that attaches to another. You can set it to display the additional data that you would like to display for the first item(or how ever many you want) then tell the Attachment Display to display before/after another View. Just change the offset of the main view to compensate for the items brought in by the Attachment.

Hope this helps others.

Tags: , ,
Posted in Drupal, PHP | No Comments »