Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从嵌入式视图 tpl 中获取当前页面标题。我试图获取 $nid 和 arg(1),但似乎没有任何效果。
使用 Drupal 7
您可以使用返回 View 对象的 views_get_page_view() 。然后您可以通过以下方式提取页面名称:$views_page->name