Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Friday, 25 March 2011

Drupal - Content construction kit (CCK) field information

Hi,

Days ago I was in need for quick access to CCK field table information in order to query Drupal data base. So searching through CCK modules function library I found couple of ones;
1. content_fields() - returns information about content fields - see more for options - http://api.lullabot.com/content_fields
2. content_database_info() - returns database information about particular field - more goes here - http://api.lullabot.com/content_database_info
So having a bit of brainstorming I've created this small

Saturday, 12 March 2011

Drupal breadcrumb custom settings

Some time ago, working on Dev-factory project project, I had a problem to display customized breadcrumb in a way that user can navigate back to parent page while reading child page of specific menu.
Please have a look at this Child Page, as you can see breadcrumb just below the main navigation displays option to navigate back to parent Menu items, and this is only on pages where menus have children.
Took I vile to get decision and

Thursday, 24 February 2011

Helper function to get taxonomy name based on Drupal arg

Hi,
I found it might be useful to publish this function I,ve created. Since some times you need an extra information in Your pages $title variable.
You can use this in your themes to add additional information on your taxonomy/term/x pages or for whatever else you need to pull something out based on Drupal's argguments ok here

Tuesday, 11 January 2011

MSSQL VS MySQL Test for reports

Hi,

This might be helper for for all of us, just imagined toady that some times we need different analytical data to dispose.
Like counting page hits or search results, so it might be a challenge run all through database table with 1000K+ records to find data.

So, today working and expecting to created simple report took me some time to discover simple SQL queries for thsi problem, so here

Wednesday, 10 November 2010

Creating customized language switcher block on Drupal website in PHP.

Hi,

Tonight I want to share some ideas how to customize or even create you own language switcher block on your Drupal based website. Live example I am using is Aisc.com.
Some things you need for that;
1. Enable locale module - you can find under core/optional modules
2. Internationalization or i18n custom module from drupal.org/project/i18n.

At first install I18n module and enable all multilingual support what is required - in my case these are all options, because I needed all site content

Thursday, 14 October 2010

Playing with your Drupal web sites logo and slogan

Hi,

Kind of working on with aisc.com web site today and looking around for some interesting solutions, suddenly I,ve got an idea or actually I needed to find solution for;

How to get Drupal based web sites logo, slogan and other settings in a block on your web page?


Well from first point it looked simple, just to do

Saturday, 9 October 2010

Changing Drupal web page $head_title value.

I think I,ve had asked myself this topic quite a lot of times, how to change this web pages variable $head_title to adjust to your sites needs.
So, answer is easy actually, because you have
beautiful  theming function phptemplate_preprocess_page();

So here it..

Friday, 17 September 2010

Working on Student Alpha project - Drupal

This weeks best edition on Student alpha project. Working on Drupal Pressflow 6.19 installation
Requirement from costumer - WE want change default file name on Field field, of course content type is made by CCK.
Here how it looked from previous developers point of view ..

Tuesday, 20 July 2010

Solving simplenews block theming in Drupal

Ok,

Some weeks ago I,ve installed Simplenews module for one of my Drupal developments, as you may notice there are a lots of discussions going regarding displaying of subscribe/save button in the Simplenews block, most of them - how to change default SAVE when user is not logged in to Subscribe (or whatever).
First I,ve tested well known function themename_simplenews_block () - no results,

Sunday, 2 May 2010

Change Drupal icon to your logo.

Hi,
I,ve been using DRUPAL for a long time, and since I use this platform, and of course I search around for other websites build on Drupal.
You know this small .ico file which represent small icon on your browsers, I call that command line, small text are when you type in your favourite web sites address.
In most cases developers making custom Drupal themes are sing, I far as I guess

Sunday, 13 September 2009

PHP tutorial for beginers

I will really recommend to read all this step by step to any web developer or just a beginer of web development. I found this very interesting, for me - experienced WEB developer it was fantastic adventure to come back to beginings of PHP to solve some difficult issues.
Php