Hi, I am currently developing a module that displays a block with the last article in each category. Is what someone has already sought to retrieve the last article from a tid? With a function like taxonomy_get_last_node($tid) ?? Cheers, Da Costa Alcindo
use views for this select block, return 1 node filter by taxonomy sort by created date DESC Da Costa Alcindo wrote:
Hi,
I am currently developing a module that displays a block with the last article in each category. Is what someone has already sought to retrieve the last article from a tid?
With a function like taxonomy_get_last_node($tid) ??
Cheers,
Da Costa Alcindo
-- Doug Green douggreen@douggreenconsulting.com 904-583-3342 Bringing Ideas to Life with Software Artistry and Invention...
I already use a view to retrieve all term id, and now I would like to just doing research to find the first Nest good category. -----Message d'origine----- De : development-bounces@drupal.org [mailto:development-bounces@drupal.org] De la part de Doug Green Envoyé : mercredi, 4. juin 2008 13:11 À : development@drupal.org Objet : Re: [development] With the Tid get last node use views for this select block, return 1 node filter by taxonomy sort by created date DESC Da Costa Alcindo wrote:
Hi,
I am currently developing a module that displays a block with the last article in each category. Is what someone has already sought to retrieve the last article from a tid?
With a function like taxonomy_get_last_node($tid) ??
Cheers,
Da Costa Alcindo
-- Doug Green douggreen@douggreenconsulting.com 904-583-3342 Bringing Ideas to Life with Software Artistry and Invention...
Hi, I found a solution, I make a complaint directly into the database, if it can help someone;) $query = "SELECT vqh_node.nid, vqh_node.title, vqh_node.created AS vqh_node_created_created FROM vqh_node vqh_node LEFT JOIN vqh_term_node vqh_term_node ON vqh_node.nid = vqh_term_node.nid LEFT JOIN vqh_term_data vqh_term_data ON vqh_term_node.tid = vqh_term_data.tid WHERE (vqh_term_node.tid = '$term->tid') ORDER BY vqh_node_created_created DESC LIMIT 0,1"; Da Costa Alcindo -----Message d'origine----- De : development-bounces@drupal.org [mailto:development-bounces@drupal.org] De la part de Da Costa Alcindo Envoyé : mercredi, 4. juin 2008 14:18 À : development@drupal.org Objet : Re: [development] With the Tid get last node I already use a view to retrieve all term id, and now I would like to just doing research to find the first Nest good category. -----Message d'origine----- De : development-bounces@drupal.org [mailto:development-bounces@drupal.org] De la part de Doug Green Envoyé : mercredi, 4. juin 2008 13:11 À : development@drupal.org Objet : Re: [development] With the Tid get last node use views for this select block, return 1 node filter by taxonomy sort by created date DESC Da Costa Alcindo wrote:
Hi,
I am currently developing a module that displays a block with the last article in each category. Is what someone has already sought to retrieve the last article from a tid?
With a function like taxonomy_get_last_node($tid) ??
Cheers,
Da Costa Alcindo
-- Doug Green douggreen@douggreenconsulting.com 904-583-3342 Bringing Ideas to Life with Software Artistry and Invention...
Hello. I was having a discussion with some Drupal-adicts friends about the arquitectural structure of it. The point is somebody said the architectural pattern that describe the behavior of Drupal is the refelction pattern. Since you met Drupal, the first you hear is the architecture of Drupal is a modular architecture, but, if you are going to point this definition into the principal architectural styles or patterns, like: layered organized systems, MVC, .... etc, it doesn't match exactly with the definitions and characteristics of any of those.
From my view, i think Drupal is an Independient Components System, in this group you can find Client/server Systems and Events Systems, Drupal Characteristics match whith both of them so or. I would like to know your opinion about.
PD: sorry if the objetives of this group are not related whith this topic, i'm new over here. Thanks.
The traditional answer is that Drupal follows the PAC model. http://www.garfieldtech.com/blog/mvc-vs-pac ----- Original Message ----- From: "Ariel Enrique Novo Rijo" <aenovo@estudiantes.uci.cu> To: <development@drupal.org> Sent: Wednesday, June 04, 2008 3:23 PM Subject: [development] Drupal architecture Hello. I was having a discussion with some Drupal-adicts friends about the arquitectural structure of it. The point is somebody said the architectural pattern that describe the behavior of Drupal is the refelction pattern. Since you met Drupal, the first you hear is the architecture of Drupal is a modular architecture, but, if you are going to point this definition into the principal architectural styles or patterns, like: layered organized systems, MVC, .... etc, it doesn't match exactly with the definitions and characteristics of any of those.
From my view, i think Drupal is an Independient Components System, in this group you can find Client/server Systems and Events Systems, Drupal Characteristics match whith both of them so or. I would like to know your opinion about.
PD: sorry if the objetives of this group are not related whith this topic, i'm new over here. Thanks.
Thanks, very good article. ________________________________ De: development-bounces@drupal.org en nombre de FGM Enviado el: mié 4/6/08 9:25 Para: development@drupal.org Asunto: Re: [development] Drupal architecture The traditional answer is that Drupal follows the PAC model. http://www.garfieldtech.com/blog/mvc-vs-pac ----- Original Message ----- From: "Ariel Enrique Novo Rijo" <aenovo@estudiantes.uci.cu> To: <development@drupal.org> Sent: Wednesday, June 04, 2008 3:23 PM Subject: [development] Drupal architecture Hello. I was having a discussion with some Drupal-adicts friends about the arquitectural structure of it. The point is somebody said the architectural pattern that describe the behavior of Drupal is the refelction pattern. Since you met Drupal, the first you hear is the architecture of Drupal is a modular architecture, but, if you are going to point this definition into the principal architectural styles or patterns, like: layered organized systems, MVC, .... etc, it doesn't match exactly with the definitions and characteristics of any of those.
From my view, i think Drupal is an Independient Components System, in this group you can find Client/server Systems and Events Systems, Drupal Characteristics match whith both of them so or. I would like to know your opinion about.
PD: sorry if the objetives of this group are not related whith this topic, i'm new over here. Thanks.
participants (4)
-
Ariel Enrique Novo Rijo -
Da Costa Alcindo -
Doug Green -
FGM