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

Displaying home page based on user profile (Drupal 8)

Hello,

I am looking for you suggestions for the following question?

Would like to display different home page depending on logged in user profile (Without multisite)?

Help with menu items

I am having trouble with a module I am writing. I have a hook_menu, which is below;

Simple_html_dom function find

Hello,

I'm using drupal 7.38

I have this error

Error : Call to a member function find() on null dans simple_html_dom->find()  (ligne 1113 dans /var/www/html/mydrupal/sites/all/libraries/simplehtmldom/simple_html_dom.php).

my function find is 

function hook_views_data

I believe I may have sorted this now

Drupal 7 - Change the output of a field in views based not the info in the filed

Hi,

Question about Drupal & views?

In a view i have a field that is a taxonomy term, I'd like to write an if statement that checks the value of the Taxonomy and replaces the output in the display to a different value.

EX:

Taxonomy terms says "rush", I'd like to change it to "fix now" 

How can i do this?

Thanks,

Stephen

Are there methods to generically access "bundle" info for entity types with no bundles?

Title likely sounds confusing. Let me explain.

I am putting together a module which has a custom field which can be assigned to any "content type" which is fieldable. As an example, this could include node, users, taxonomy terms, etc.

Within the module i need to do things like: get entities in specific bundle, get bundle display name, etc.

In my code i use a loop through entityManager()->getFieldMap() to get a list of entity_type.bundles that have my custom field attached, so for my example site i have:

"node.camera"

"node.room"

Pages

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