HTML code for double chevron
The code for the double chevron (») is:
»
This can be used as a forward arrow, for example at the end of a link.
The code for the double chevron (») is:
»
This can be used as a forward arrow, for example at the end of a link.
Within the Google input box enter site: followed by the site URL.
For example entering the below (without spaces):
will show all the URLs held by Google for this site.
Within CCK (Content Creation Kit) activate 'Content Permissions'.
For example, images on a page could be restricted to a role of users whilst the text content is visible to all users.
Therefore only after logging in would the user be shown the complete page.
Locate a search string in a selection of files
find . -exec grep "swf" '{}' \; -print
The above will search for 'swf' within all files from the current location recursively (including all subdirectories).
find . -name "slider.css" -exec ls -al {} \;
The module Nodewords facilitates easy management of meta data on Drupal websites.
To set-up meta data for the home page note it's done via the URL path of admin/nodewords/meta-tags/frontpage and not by editing the fields within the content (node) that has been used as the home page.
Using the Drupal menu navigate as follows:
Administer -> Meta tags -> Default and specific meta tags -> Front Page
The example below shows how to execute a shell command from within php script.
The command pwd
executes the current working directory.
<?php $output = shell_exec('pwd'); echo "<pre>$output</pre>"; ?>
Drupal notes
<?
include("../../legacy/program.php");
?>
Firstly, to get the current url in php use the following:
<? $current_url = $_SERVER['REQUEST_URI']; echo $current_url; ?>
For URLs with trailing parameters the following will place the first part of the current URL (i.e. the part before ?) within the variable $current_url[0] and then print it out.
<? $current_url = explode("?", $_SERVER['REQUEST_URI']); echo $current_url[0] ; ?>
For example with the URL:
For styling tables check this link out:
http://www.smashingmagazine.com/2008/08/13/top-10-css-table-designs/