recentpopularlog in

therobyouknow : disable   40

8 - How can we get Block Bundle Type for block in code? - Drupal Answers
use \Drupal\block_content\BlockContentInterface;


/**
* Implements HOOK_preprocess_block().
*
* @param $variables
*/
function mymodule_preprocess_block(&$variables) {
$content = $variables['elements']['content'];
if (isset($content['#block_content']) && $content['#block_content'] instanceof BlockContentInterface) {

if ($content['#block_content']->bundle() == 'xxx') {
// ...
}

}
}
8  drupal8  drupal  web  dev  cms  computing  module  theme  block  update  refresh  force  cache  disable  twig  specific  howto  question  answer  problem  solution  time  computed  generated  calculated 
march 2019 by therobyouknow
Upgrade from 1.3 to newer (1.4, 1.5, 3.x) with drush fails. [#2428371] | Drupal.org
drush sql-query "UPDATE system SET status = 1 WHERE name = 'workbench_moderation';"

(by pass dependency checks)
disable  module  contrib  drush  database  db  howto  manual  override  computing  web  dev  cms  drupal  bypass  dependency 
august 2017 by therobyouknow
form with readonly field | drupal.org
for example:
$variables['form']['subject']['#disabled'] = TRUE;
drupal  disable  field  readonly  read  input  form  prefilled  fixed  computing  web  dev  cms  howto 
october 2013 by therobyouknow
Disabling Comments on a Specific Content Type in Drupal 7 | InMotion Hosting
but only for future comments.
you would have to go in and edit the content and select 'close' commenting to turn off the link - this does work but is a lot of manual work if a lot of content - wonder if bulk turn off or drush command?
disable  comment  drupal  computing  web  dev  cms 
june 2013 by therobyouknow
How to turn off beep when wifi connected (off the blog: Intel ProSet Wireless Issues and Solutions)
In "Intel PROSet/Wireless", open main window. Ctrl-P for Intel PROSet/Wireless Application Settings. Uncheck the 'Show Information Notifications' box.
dell  sound  sysadmin  tip  beep  turnoff  disable  stop  silence  notification  wireless  wifi  driver  annoyance  howto  quiet  noise  discreet  solution  computing  laptop  notebook  inspirion8600  inspiron  8600 
august 2010 by therobyouknow
Revert back from scrolling desktop problem (Netbooks: Higher than 1024600 resolution?)
When windows XP complains about a the ASUS 701 eee pc resolution being too low when actually it looks fine, it says click to fix this problem, when you do, it sets it to 800x600 but with scrolling desktop. This forum post reverts back.
scrolling  desktop  problem  windows  xp  windowsxp  microsoft  display  settings  setting  setup  resolution  howto  revert  disable  optimal  computing  video  screen  graphics  control  panel  tip  eeepc  netbook  small 
december 2009 by therobyouknow
fstab - linux.unix file systems table - often in /etc/fstab
lists file system devices
floppies
affects what gets shown on the Computer window in the Linux GUI
fstab  file  system  filesystem  table  setting  setup  device  linux  unix  howto  hide  show  visible  enable  disable  textfile  edit  control 
august 2008 by therobyouknow
How do I keep the DTD from loading? Even when I turn off validation the parser tries to load the DTD file.
This shows how to stop the JDOM XML parser from attempting to connect to the internet to fetch a DTD from w3c.org to use to validate the XML as it is being input into the parser. In other words it makes the parser non-validating. A non-validating parser i
dtd  java  xml  non-validating  nonvalidating  non  validating  non-external  w3c  fetch  option  external  load  load-external-dtd  feature  disable  prevent  stop  configure  configuration  jdom  dom  parser  apache  set  setup  howto  idea  solution  standalone 
january 2008 by therobyouknow
How to turn off fetching a DTD from the internet/remote network (e.g. at the w3c) when parsing xml using sax
public org.xml.sax.InputSource resolveEntity(java.lang.String
p1,java.lang.String p2) throws org.xml.sax.SAXException, java.io.IOException
{
return new InputSource("/dtd/empty.dtd");
}
java  sax  xml  dtd  disable  off  override  class  defaulthandler  fetch  internet  parse  inherit  local  network  ignore  doctype  jdom 
december 2007 by therobyouknow

Copy this bookmark:





to read