Skip to main content
Search
Jon Moore | UK Based Drupal Specialist
Tips 'n' Snips
Home
General
Drupal
Drupal 6
Drupal 7
Drupal 8
Drupal 9
Module Building
HTML & CSS
Javascript
jQuery
PHP
CodeIgniter
Handy Functions
MySQL
WordPress
About
Contact
Previous
Pause
Next
Drupalising a Flat Theme
How you build a Drupal site will greatly depend on your personal preference or the preference of your boss/client. A…
Adding D7 Style views-row odd/even to D8/9 View Templates
views-view-unformatted--testimonials--block-2.html.twig {% for row in rows %} {% set row_classes = cycle(['views-row…
Add Unique ID to Rows In View Template
views-view-unformatted--home-news.html.twig Within {% for row in rows %} we can use {{ loop.index }} like: <article…
Dynamic Copyright Year in TWIG
In D7 the copyright line in a tpl.php file might look like this: <p>© Copyright <?php echo date('Y'); ?…
Include Within TWIG Template
page.html.twig {% include directory ~ '/templates/region--footer.html.twig' %} So this will start att he root of the…
Home
Drupal 8/9 Articles
Drupalising a Flat Theme
Adding D7 Style views-row odd/even to D8/9 View Templates
Add Unique ID to Rows In View Template
Dynamic Copyright Year in TWIG
Include Within TWIG Template
Render Region in D8/9 Compared to D7
Fields With Blank Results Still Show
Add Class or ID to Attributes in TWIG
Drupal 7 Articles
Drupalising a Flat Theme
Metatags not working on overwritten templates
Drupal 7 Site Set-up
Render a Node Field in page.tpl.php
Force HTTPS on ALL pages
HTML Emails With Drupal 7 Webform Module
Ubercart Is Not Using SMTP Module To Send Emails
Why Drupal is King
PHP Articles
Replace \r\n with <br />
Replace in MySQL
Convert Database Date to Something More 'User Friendly'
PHP Email Validation
PHP Logout
SELECT inside a SELECT
#1054 – Unknown column in 'where clause'
Warning: Cannot modify header information – headers already sent by
jQuery Articles
Great Hotspot Image Swap
jQuery .hover();
jQuery .click();
More powerful jQuery selectors
Powerful jQuery Tag Selectors
To 'Get' an element in jQuery
Adding jQuery to your page
jQuery Photo Reflections
Javascript Articles
Adding Javascript to Drupal 7
Javascript not validating?
Javascript & New Lines
JavaScript Accepted Variable Names
Create a JavaScript Array
Speeding Up 'For Loops'
JavaScript Quick Syntax Check
JavaScript Dot Operator List
HTML and CSS Articles
YouTube RSS Feed
Twitter RSS
htaccess 301 Redirect Guide
IE session bug is solved
IE Blocking iFrame Cookies
Apache Re-write Explained
IE Specific CSS
CSS Reset
Wordpress Articles
WordPress Site Hacked
Enable $_SESSION in WordPress
Limit the length of 'the_excerpt' in WordPress
WordPress Migrate
WordPress bloginfo()
How to Add Footer Widgets to a WordPress Theme
Fancybox for WordPress
WordPress – How to Increase Maximum upload file size: 2MB