Loading ...
Sorry, an error occurred while loading the content.

Re: [ttlug] Drupal Question

Expand Messages
  • Hassan Voyeau
    that show and (,) and or (+) but how do I specify a range of terms in the URL? ... [Non-text portions of this message have been removed]
    Message 1 of 5 , Jan 12, 2009
    • 0 Attachment
      that show and (,) and or (+) but how do I specify a range of terms in the
      URL?


      On Tue, Jan 13, 2009 at 12:34 AM, Shivan Jaikaran <shivanj@...> wrote:

      > You can check out these two links:
      >
      > http://drupal.org/project/taxonomy_list
      > http://drupal.org/node/42620
      >
      > the first link seems to do what you want though.
      >
      > A correction to your post:
      >
      > its mysite.com/taxonomy/term/1 and not mysite.com/term/1
      >
      > Also if you post your question in drupal.org forums, you will get more
      > responses (at least you'll get a variety of answers as there is more
      > than one way to do this I believe).
      >
      > Regards,
      > Shivan Jaikaran
      > http://www.shivanjaikaran.com/blog
      >
      > 2009/1/12 Hassan Voyeau <hassan.voyeau@...<hassan.voyeau%40gmail.com>
      > >:
      >
      > > I am trying to get a better understanding of drupal taxonomy
      > >
      > > So far I have discovered that
      > >
      > > mysite.com/term/1 (will display items tagged with term 1)
      > > mysite.com/term/1+2 (will display items tagged with term 1 or 2)
      > > mysite.com/term/1,2 (will display items tagged with term 1 and 2)
      > >
      > > so the question is how do I gets terms 1 or 2 or 3....100 easily
      > >
      > > I have tried mysite.com/term/1-100 but that doesn't work
      > >
      > > I know there are some drupal people on these lists...your help would be
      > > greatly appreciated
      > >
      > > [Non-text portions of this message have been removed]
      > >
      > >
      >
      >


      [Non-text portions of this message have been removed]
    • Shivan Jaikaran
      You can probably create some custom php block/page to do this. I have not tested this code so I m not sure if it works (or might break your site), so try it
      Message 2 of 5 , Jan 12, 2009
      • 0 Attachment
        You can probably create some custom php block/page to do this.

        I have not tested this code so I'm not sure if it works (or might
        break your site), so try it out on a test site first:


        $tid_start = 1; /*start of taxonomy range*/
        $tid_end = 10; /*end of taxonomy range*/

        for ($i = $tid_start; $i <= $tid_end; $i++) {
        $terms = taxonomy_get_term($i);
        }

        print "<ul>";
        foreach ( $terms as $term) {
        print "<li>".l($term->name,'taxonomy/term/$term->tid')."</li>";
        }
        }
        print "</ul>";

        post this question in the drupal forums....there might be a better way
        that I am not aware of.


        Regards,
        Shivan Jaikaran
        http://www.shivanjaikaran.com/blog



        2009/1/13 Hassan Voyeau <hassan.voyeau@...>:
        > that show and (,) and or (+) but how do I specify a range of terms in the
        > URL?
        >
        > On Tue, Jan 13, 2009 at 12:34 AM, Shivan Jaikaran <shivanj@...> wrote:
        >
        >> You can check out these two links:
        >>
        >> http://drupal.org/project/taxonomy_list
        >> http://drupal.org/node/42620
        >>
        >> the first link seems to do what you want though.
        >>
        >> A correction to your post:
        >>
        >> its mysite.com/taxonomy/term/1 and not mysite.com/term/1
        >>
        >> Also if you post your question in drupal.org forums, you will get more
        >> responses (at least you'll get a variety of answers as there is more
        >> than one way to do this I believe).
        >>
        >> Regards,
        >> Shivan Jaikaran
        >> http://www.shivanjaikaran.com/blog
        >>
        >> 2009/1/12 Hassan Voyeau
        >> <hassan.voyeau@...<hassan.voyeau%40gmail.com>
        >> >:
        >>
        >> > I am trying to get a better understanding of drupal taxonomy
        >> >
        >> > So far I have discovered that
        >> >
        >> > mysite.com/term/1 (will display items tagged with term 1)
        >> > mysite.com/term/1+2 (will display items tagged with term 1 or 2)
        >> > mysite.com/term/1,2 (will display items tagged with term 1 and 2)
        >> >
        >> > so the question is how do I gets terms 1 or 2 or 3....100 easily
        >> >
        >> > I have tried mysite.com/term/1-100 but that doesn't work
        >> >
        >> > I know there are some drupal people on these lists...your help would be
        >> > greatly appreciated
        >> >
        >> > [Non-text portions of this message have been removed]
        >> >
        >> >
        >>
        >>
        >
        > [Non-text portions of this message have been removed]
        >
        >
      • Dave Smith
        I have found this a useful site ... http://learnbythedrop.com/category/taxonomy */Struggle - Solidarity - Socialism Lucha - Solidaridad - Socialismo/*/
        Message 3 of 5 , Jan 13, 2009
        • 0 Attachment
          I have found this a useful site ...

          http://learnbythedrop.com/category/taxonomy

          */Struggle - Solidarity - Socialism
          Lucha - Solidaridad - Socialismo/*/
          //E-mail: dave.smith@...
          <mailto:dave.smith@...>/



          Hassan Voyeau wrote:
          >
          > I am trying to get a better understanding of drupal taxonomy
          >
          > So far I have discovered that
          >
          > mysite.com/term/1 (will display items tagged with term 1)
          > mysite.com/term/1+2 (will display items tagged with term 1 or 2)
          > mysite.com/term/1,2 (will display items tagged with term 1 and 2)
          >
          > so the question is how do I gets terms 1 or 2 or 3....100 easily
          >
          > I have tried mysite.com/term/1-100 but that doesn't work
          >
          > I know there are some drupal people on these lists...your help would be
          > greatly appreciated
          >
          > [Non-text portions of this message have been removed]
          >
          >


          [Non-text portions of this message have been removed]
        Your message has been successfully submitted and would be delivered to recipients shortly.