preprocess

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

process y preprocess functions

Buen dia comunidad, tengo ya casi 1 años dedicado a Drupal, y anteriormente habia leido la documentación en el sitio oficial, pero no la comprendía muy bien, ahora despues de tener un poco mas de experiencia en el tema la encuentro fantástica.

Read more
rgchi's picture

Aria Landmarks placement in page.tpl.php

In our page.tpl.php theme override, there exists the following line.

<!-- footer row: width = grid_width -->
<?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>

In order to correctly insert Aira Landmarks, am I correct in assuming the following:

<!-- footer row: width = grid_width -->
<span role="contentinfo">
<?php print theme('grid_row', $footer . $footer_message, 'footer', 'full-width', $grid_width); ?>
</span>
Read more
TikaL13's picture

How can I customize the way tags are displayed

Guys,

I need some help with this. I am looking to customize the way tags are being displayed on my site. Currently they look like such:

Tags: tag1tag2tag3

I would like for them to display like so:

Tag1 - Tag2 - Tag3

I have written a preprocess function in template.php but I am not seeing anything change. Is there something that I am not doing right?

In my template.php file:

function thebridge_process_taxonomy_term(&$variables) {
$variables['term'] .= '-';
}

Please any help would be much appreciated.

Read more
ssquirrel's picture

Ta bort värden för vidd och bredd i bilder för responsive design

Jag vill göra en responsive design på en webbplats och allt funkar bra med Drupal förutom det där med att få bilderna att skala om sig beroende på bredden på fönstret. (http://www.alistapart.com/articles/responsive-web-design/)
En bild skall (för att den skall vara skalbar) inte ha en bestämd vidd och höjd utan visas i 100% storlek eller så stor som fönstret tillåter. Problemet är då att alla bilder ifrån tex. Imagecache visas med vidd och höjd utskrivet img-taggen. Hur får man bort det?

Read more
matsjacobsson's picture

Preprocess hitta display namnet

Hejsan!

Kör en preprocess funktion för multipla filer som funkar bra. Problemet är att jag vill begränsa den till en display i vyn men vet inte hur jag kan hitta namnet för displayen eller något som kan vara användbart. Provat med dsm("node") men det ger ingenting.. finns det något annat man kan hämta från? tex $view?

Vänliga hälsningar /Mats


function mytheme_content_view_multiple_field($items, $field, $values) {
//dsm($field);
//kollar om rätt field namn
if ($field['field_name'] == 'field_about_images' ) {
$output = '';
foreach ($items as $item) {

Read more
crotown's picture

OP sub-theming difficulty: adding variable for use in node-article.tpl.php

Dear fellow OpenPublish folks,

I am using OP 2.2 and am having difficulty providing my own preprocessor variable to be used in a custom version of node-article.tpl.php that is in a sub-theme of openpublish_theme.

Read more
DrupalCuckoo's picture

Problems with custom preprocessing function and template file from the views module

hi,

I know the title doesn't say clearly what this discussion is all about but it's not easy to explain what I'm trying now for more than 5 hours (!!!) without any useful result :-(

Ok, let me explain:

I'm building a community-page. On each user-profile people will see - among other things - a view called "list_groups" (created with the views module) which lists all groups a user has joined. It's a normal HTML list which contains the node titles as links.

Read more
Subscribe with RSS Syndicate content