Fade in page content on load of page using jQuery
<?php drupal_add_js( '$(document).ready(function(){ // Hide all paragraphs $("p").hide(); // Fade them into visibility $("p").fadeIn("slow"); });', 'inline' ); ?>
<?php drupal_add_js( '$(document).ready(function(){ // Hide all paragraphs $("p").hide(); // Fade them into visibility $("p").fadeIn("slow"); });', 'inline' ); ?>
Our favoured service for this is:
You may like to check out:
Custom Pagers is no developed and doesn't support Drupal 9.
When creating a menu page it can be very helpful to automatically set the parent item subject to the content type. For example, all new case studies should always reside under the parent menu item "Case Studies".
To achieve this use the Auto Menu module.
Once the module has been enabled it is configured under the "workflow" options that reside under each content type.
When a content author adds a node they are typically required to select a parent item.
However, the default display of parent menu options shows items that are irrelevant and confusing.
Therefore, it is more user friendly to show only the menu items of relevance. This can be achieved by only displaying a specific menu and its items through use of the module Menu Settings per Content Type.
The module pathauto allows the automatic creation of seo friendly URLs.
This module allows you to specify a redirect from one path to another path or an external URL, using any HTTP redirect status.
Some related and recommended modules for redirects:
The Content Access module allows you to manage permissions for content types by role and author.
$variable = condition ? if true : if false
An example is shown below:
$style = isset($_GET['style']) ? $_GET['style'] : 'default';
This checks whether variable $_GET['style'] is set. If it is variable $style is given this value. Alternatively, variable $style is given the value 'default'.
print date (jS M y, timestamp) will produce 28th Oct 09
print date(jS F y, timestamp) will produce 30th January 2011