recentpopularlog in

therobyouknow : node   52

Rabbit Hole | Drupal.org
"Rabbit Hole is a module that adds the ability to control what should happen when an entity is being viewed at its own page.

Perhaps you have a content type that never should be displayed on its own page, like an image content type that's displayed in a carousel. Rabbit Hole can prevent this node from being accessible on its own page, through node/xxx."
d7  7  drupal  node  content  computing  web  dev  contrib  module  visible  access  display  8  drupal8  seo 
january 2016 by therobyouknow
Custom Formatters | Drupal.org
great module for formatting output of fields, e.g. title link for downloadable file:

admin/structure/formatters/list/formatter_file_link_title/edit
$preMime = $variables['#object']->filemime;
$postMime = str_replace( "/", "-", $preMime );

$filePath = "/sites/default/files/".$variables['#object']->filename;
$fieldTitle = $variables['#object']->field_title['und'][0]['value'];

$output = "<img class=\"file-icon\" alt title=\"";
$output .= $postMime;
$output .= "\" ";
$output .= "src=\"/modules/file/icons/";
$output .= $postMime;
$output .= ".png\"/>";
$output .= "<a href=\"";
$output .= $filePath;
$output .= "\">".$fieldTitle."</a>";

echo $output;

use this here: file-types/manage/document/file-display
custom_formatters  module  contrib  computing  web  dev  drupal  cms  field  output  display  format  formatter  token  php  config  entity  node  content 
january 2014 by therobyouknow
WMI and VBScript for Microsoft Operating Systems - Guy's Secrets
Read from "Example 1b: To Discover the ComputerName" for how to get the Windows machine name/hostname/Computer name for the machine on which the script is running. Set objNetwork = CreateObject("WScript.Network")
machineid = objNetwork.ComputerName
script  scripting  vbscript  vbs  wmi  machine  name  machinename  machineid  computer  computername  host  hostname  client  identifier  id  node  computing  work  howto  visualbasic  basic  visual  microsoft  vb  windows  programming 
june 2010 by therobyouknow
Processing All Files in a Directory Recursively - Perl Tutorial Course for Windows
The most well explaned recursive file search solution yet

use File::Find;
$dir = "c:/web";
find(\&edits;, $dir);
sub edits() {
print "File name is $_\n\t\tFull path is $File::Find::name\n";
}
perl  tutorial  directory  read  recursion  traversal  search  library  programming  language  computing  processing  all  files  file  folder  recursively  path  node  leaf  branch  howto  filesystem  recursive  work 
october 2009 by therobyouknow
Content Access | drupal.org
This works! Another solution - Simple Access - does not work with the node content produced by the Tasks module. WARNING - will overide forum_access
drupal  content  access  node  permission  privacy  restrict  module  security  tool  role  group 
june 2008 by therobyouknow

Copy this bookmark:





to read