How to used theme_hook_suggestions for layout ?

Created on 12 May 2016, over 8 years ago
Updated 11 December 2024, 8 days ago

Hi Iadd more theme_hook_suggestion for layout Boostrap to alter something HTML. Cause I want handler HTML by pane page ID . I used bootstrap_threecol_stacked for override tempalte. This my code

function mytheme_preprocess_bootstrap_threecol_stacked(&$variables){

  $page = page_manager_get_current_page();
  if(isset($page)) {
    $variables['theme_hook_suggestions'][] = 'bootstrap_threecol_stacked_' . str_replace('-', '_', $page['name']);
  }
}

But this can't load template suggestion !

So. How did i fix it ? Thanks

πŸ’¬ Support request
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡»πŸ‡³Vietnam kienan91

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    I'm closing it because the issue was created a long time ago without any further steps.

    if you still need it then raise a new one.
    thanks

Production build 0.71.5 2024