1

I created a display suite layout "tow column stacked" in manage user section, then I want to override that template, and make a new one in my theme templates folder, the ds module suggest for me :

  • ds-2col-stacked--user.tpl.php
  • ds-2col-stacked--user-user.tpl.php

so I created ds-2col-stacked--user-user.tpl.php in my templates folder, but this template is overriding as well the registration page!

how can override with the correct name, to apply this new template only for user edit account page ("/user/%/edit") ?

Thanks in advance.

2

You can use hook theme suggestion in your template file. It gives you the right way of naming you tpl file.

function THEME_preprocess_node(&$variables) {
  print_r($variables['theme_hook_suggestions']);

}

function THEME_preprocess_page(&$variables, $hook) {
  print_r($variables['theme_hook_suggestions']);

}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.