Skip to main content

Drupal Answers Weekly Newsletter - Wednesday, April 29, 2015

Drupal Answers Weekly Newsletter

Top new questions this week:

Policy Question: Can I Use a Submodule that Does Not Follow Drupal Code Guidelines?

I have a fairly extensive plugin system that I wrote. It uses an MVVM pattern, where the lions' share of the code is in a cross-CMS class. I haven't submitted the Drupal plugin to the Drupal repo, ...

community-drupal-org coding-standards  
asked by MAGNAWS 6 votes
answered by Free Radical 8 votes

Where to render? Preprocess or template?

We are constantly improving our coding performance and we are monitoring every page load to optimize loading en rendering times in our websites. Above statement in mind, I stumbled upon the question ...

theme-templates performance preprocess optimization  
asked by Michiel 6 votes
answered by Clive 5 votes

Best practices for copying data (only) back from production site to testing site after exporting views as features to prod?

After building/testing a Drupal 7 site, I deployed it to prod server, exporting all views as features. Now the views are all 'in database' on test site, but 'in code' on live site - on the theory that ...

views database version-control  
asked by Annie G 5 votes
answered by Alexar 0 votes

How to install an existing Drupal profile with drush?

Seems like searching for the answer on Google just leads me to how to create make files and profiles. I know how to do that. I also know how to install Drupal with drush. But I want to install one ...

drush installation-profile  
asked by Quentin Campbell 5 votes
answered by greg_1_anderson 5 votes

How to make an external database available to Views?

There's a lot of discussion here and in other places about using external databases in Drupal. What I've figured out from that is: The best way to work with data in a database table is to use the ...

external-database  
asked by NewSites 4 votes
answered by Pierre.Vriens 1 vote

I need to add rel="nofollow" to the button provided by "views load more" module

I need to add rel="nofollow" to the button "Load More" provided by Views Load More, but the problem is that the anchor is created in views_load_more.module (line 91) this way: $li_next = ...

views links hook-theme  
asked by PolleX 4 votes
answered by PolleX 4 votes

Avoid sql-drop or sql-sync drush commands in a particular environment

I'm syncronizing databases form stage to local environments with drush commands like: drush @dev sql-drop drush @stage @dev sql-sync How can I protected that the @stage server reject to drop or ...

7 drush  
asked by jorgetutor 3 votes
answered by greg_1_anderson 3 votes

Greatest hits from previous weeks:

Any way to add CSS for a single page/node?

I'm cleaning up my big crazy style sheets (possibly pertinent to a future question) and I'm wondering the best way to add custom CSS to a specific node or page. In particular, my work site's home ...

7 theming css panels  
asked by epersonae 53 votes
answered by Decipher 49 votes

Count of nodes by type

I am looking for a snippet that lets me display the total count for a specific node type, e.g. "Pages = 167" or "Products = 10630." What code should I use to achieve this?

7 nodes  
asked by Diane 20 votes
answered by Cyclone 24 votes

Can you answer these?

How to load taxonomy terms from user profile field using entityfieldquery()?

I want to write hook_node_form_alter() and limit taxonomy terms with only user checked terms on his profile in field_companies. I can't pass the 1st step - load array of user checked terms from ...

entity-field-query taxonomy-reference  
asked by tlito 1 vote

links__system_main_menu in drupal not gettign called

I created a theme and the theme name is abc. I am trying to override the default menu in drupal. I have the following filed in the theme folder (folder name is abc). abc.info file and page.tpl and ...

menu themes  
asked by Pramod Sivadas 1 vote

Common Exposed filter for each tab

I have different fields and showing in different blocks, and want to apply exposed filter to all but my problem is it shows different exposed filters for each different block. I want to make it common ...

views-filters  
asked by Rohan Kumar 1 vote
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3

Comments

Popular posts from this blog

Drupal Answers Weekly Newsletter - Wednesday, December 31, 2014

Top new questions this week: Can I delete old hook_update_N functions? Suppose you have a custom module, and you have hook_update_N() implementations in your .install file. If you have old update functions, and all updates have run in all sites that the module is ... node-update hook-update-n   asked by AyeshK ...

[New post] 8th Class Result 2014 PEC Hafizabad Board

Muhammad Waqas posted: "PEC Hafizabad Board 8th Class Result 2014 expected date is 28th March, 2014 by PEC. Punjab Examination Commission (PEC) will announce 8th class result for Hafizabad Board soon and all the students of Hafizabad Board who are extremely waiting for the resul" New post on Jobs in Pakistan 8th Class Result 2014 PEC Hafizabad Board by Muhammad Waqas ...

[New post] 1st Year (11th Class) Result 2014 BISE Rawalpindi Board

Xaib Aslam posted: "BISERWP board Inter part 1 result expected on 10th October 2014 according our source. students of Rawalpindi board desperately waiting for 11th class result. 1st they upload the 12th class result and after some time they ready for showing the 1st year fin" New post on Jobs in Pakistan 1st Year (11th Class) Result 2014 BISE Rawalpindi Board by Xaib Aslam ...