page.tpl.php

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
antoniomanco's picture

Insertar campo (field) en page.tpl.php

Buenos días

Quiero redistribuir un poco los campos en los nodos de mi web pero no quiero usar Display Suite ni otros módulos que sólo saturan más mi base de datos.

Puntualmente necesito que sobre el titular aparezca la sección linkeada de mi sitio (field_categoría), los Tags (Field_tags) y el inicio de mi sitio (Tipo breadcrumb). No quiero un breadcrumb sino los elementos que menciono arriba.

Read more
arnemaine's picture

Correct template file naming

I need to add script from Typekit to enable their webfont service.

When I was using 6x Fusion, I copied the page.tpl.php file into my sub-theme and added to the head in the copy. I was going to do the same with my Omega 7x sub-theme. But it appears that the html.tpl.php is the correct template copy over.

With Omega do I need to do anything different as far as renaming this copy? From what I can tell Omega seems to use a more exact naming conventions.

Read more
quangvinhtae's picture

Query dữ liệu bên ngoài Drupal và hiển thị trong trang page.tpl.php ?

Hiện tại mình đang muốn trang chủ mình tích hợp 1 số tin tức từ diễn đàn bên ngoài Drupal (ví dụ VBB) nên cần query trực tiếp VBB database rồi hiển thị tại trang chủ Drupal

Tuy vậy, nếu query database và sử dụng print() ra ngay tại page.tpl.php thì sẽ bị lỗi font tiếng Việt

Ví dụ

$result = mysql_query ("SELECT id, title FROM VBB data");
$row = mysql_fetch_array($result);
.......
print ($row["title"]); ---> sẽ bị lỗi với tiếng Việt

Read more
Subscribe with RSS Syndicate content