Manipulating view with php
I've come up against something that has me stuck.
I've found that in working for a news organization, certain things (most things) need to be precise. For example, the bylines for the stories. When there are multiple authors or multiple publishers, they syntax must be exact. It cannot be writen
By Laurie Snyder, Joanne Hamilton, Courntey Hunter | PublicSource | July 11, 2012
It must be written
By Laurie Snyder, Joanne Hamilton and Courntey Hunter | PublicSource | July 11, 2012
I have accomplished this using the following equation:
How to get a custom group field with Views?
Hi,
I was looking for a way to retrieve a custom field from a group in a view?
For example, I have my Group content type in which I added a custom field (say the «Group Color» field).
Then, I wanted to build a view in which I could show the current node's group «Group Color» field. I was able to retrieve the current node's group ID, but not the custom field.
I built the view showing any type of node and used the OG Groups relationships to ge the current node's group ID.
Anybody has an Idea on how to do this?
Thank you,
Jean-Louis
Read moreProblem with formatting fields
Two questions that I guess are both a part of one bigger idea. When creating a content type, I've been trying to figure out how to both indent a field and create a line break after a field both by default. For indenting I have tried adding spaces before the field name, but because it's empty space they are disregarded and displayed as normal. For the line break, I've tried adding a custom code field with br or p, and simply adding a blank field, but in both situations as there is no text to display, the field is not displayed at all. Any suggestions?
Read moreSelect nodes by complex taxonomy expressions
For a client I'm working on module that allows to display a taxonomy based selection of nodes (as a view) in another node's content. This is accomplished in three steps:
- a field that can be attached to a node. For now it allows to store a taxonomy selection like: (tid1 AND tid2 AND …) OR (tid3 AND …) OR …
- a views argument handler for nodes that filters nodes by a tid expression like: (IN(t1,t2,…) AND IN(t3,t4,…) AND …) OR (IN(t5,…) AND …) OR …
- a field formatter that uses the selection of 1. to feed it into a views argument from 2.
Send mail when field has new item
Hi there,
I think what I'm trying to accomplish is pretty straight forward, but I just can't seem to get it to work properly.
The setup is as follow:
- I am using Drupal 7
- I have a field on my user accounts where I can add files my users can download when they have logged in
- There is no limit to the amount of files that can be added
What I am trying to accomplish:
<
ul>
Besoin d'aide avec Views Relationships et Taxonomy
Cela fait quelques jours que je cherche comment accomplir quelque chose qui me semble facile mais je n'y arrive pas...
En bref, avec Drupal 7, j'essaie de créer une Vue qui contient des champs de deux types de contenus différents et dont la relation se fait avec les taxons et l'utilisateur courant. Voici les détails:
- Vocabulaire de taxonomie: Type d'exercice - avec termes (ex: prévention, respiration, étirement)
- Type de Contenu: Exercice - contient des termes de la taxonomie Type d'exercice
modificar php para cambiar de posicion lo fields
Os dejo este fragemento de codigo por si me podeis ayudar:
<?php
print theme('grid_row', $header, 'header', 'full-width', $grid_width);
?>
<?php
if ($title):
?>
<h1 class="title"><?php
print $title;
?></h1>
<div class="hr"></div>
Esta es la cabecera a sido muy facil cambiar que el titulo aparezca en vez de en el cuerpo sea en la cabecera .
lo que yo pretendo es que se vean algunos fields en la cabecera y otros en el cuerpo,
actualmente todos los field se ven en el cuerpo.
Resumen en los fields
Hola a todos, en este caso lo que me ocurre es que quiero poner un teaser en un field del texto en mi contenido , este me lo hace automáticamente en el body pero hay no lo quiero ¿como lo puedo situar en un field ? tengo varios field_reparto ect.. con contenido de texto y en uno de ellos quiero ponerle que sea teaser para poder darle una vista de resumen.
Gracias por adelantado
Como conseguir algo como esto con CCK ??
Hola , lo que necesito hacer es una fila de campos (ver imagen) y que se puedan generar varias filas (no solo una).
Esta es la idea:
http://imageshack.us/photo/my-images/692/capturafdfv.png/
Sería crear un tipo de contenido , por ejemplo nueva vivienda , y que se puedan insertar tantas filas como se quieran , y cada una de estas filas tendría los mismos campos (como en la foto). Por mucho que he buscado no encuentro como hacerlo con CCK.
Gracias y un saludo
Read moreExpose CiviCRM address fields to Drupal Node?
I've been looking and everything i'm seeing is old. and believe it or not I've gotten NO replies on the CiviCRM Forums. So please help if you can. I'll try to return the favor.
Read more



