This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Dynamically Disable Main Menu's Children

I wasn't sure if this should be in support or not. I'm working on a Drupal website that has a main menu.
In the main menu, each item has children links and each child link goes to a page that lists events.

I'm trying to figure out how to dynamically disable the children links for the pages that do not have any events tied to them.

t() function not working in template page

Using t() function I can not translate normal text like "sample text". I have added code t('sample text') & t('sample text', array(), array('langcode' => 'fr')) to page.tpl.php page. But both are not working.
Kindly help.

Template auto_reload/no-caching not working Drupal 8.3.0

Running Drupal 8.3.0 under Apache. I am currently working on tweaking an existing module (PHP code and TWIG templates).
auto_load is set to true and cache to false in both files as recommended however I do not see any impact. Changes to my templates are not being picked up automatically. I always have to "drush cr" for getting the updated version of my template

The services.yml is being picked up (an error in the Yaml file gives an error during cache-rebuild.

...anything else I am missing? Can it be that hard for getting a reasonable dev environment working?

D8 Update Nodes Body Html using PHP

Hi,

I have a small piece of php which uses the entity api to call all nodes of a type and then updates the

Disable Radio button if default value is "inactive"

Hi there, I need to disable other radio button(s) when [#default_value] => Inactive as in below code it is?

PHP CODE

foreach($form['field_complaint_status'] as $key=>$val)
{
	echo '<pre>'; print_r($val['field_complaint_status']); exit;
}

Output:

How to call Soap web service in drupal7

How to call Soap webservice in drupal and contrib module available ?
I have check webservice module and soap_server module but soap_server module is beta version.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions