Taxonomy path OG aware

View: New views
10 Messages — Rating Filter:   Alert me  

Taxonomy path OG aware

by Paolo Mainardi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear All,

I need your opinion and suggestions on a (for me) complicated task.

I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content types

Now, i need to achieve this task, when you are in a node (og context) taxonomy links must be have something relative to og, for example:

"/taxonomy/term/$tid/$og->nid" (for example passing last argument to views for fitering only og nodes with this taxonomy term) (consider that i'm using Pathauto, so taxonomy/term it's aliased for example on "category/$category_name").

I tried with custom_url_rewrite but it's not a so simple task and with hook_menu trying to create on the fly all this path (but it's a little bit strong in terms of cpu cycles...).

I'm using D5.

Please, someone could suggest me the right way  ? :) Thank you very much!!! :)

--
Paolo Mainardi

CTO Twinbit
Blog: http://www.paolomainardi.com

-- Please consider the environment before printing this email --

Re: Taxonomy path OG aware

by Earl Dunovant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try the OG Vocabulary module. It lets each group have it's own taxonomy.

On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi<paolomainardi@...> wrote:

> Dear All,
>
> I need your opinion and suggestions on a (for me) complicated task.
>
> I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content
> types
>
> Now, i need to achieve this task, when you are in a node (og context)
> taxonomy links must be have something relative to og, for example:
>
> "/taxonomy/term/$tid/$og->nid" (for example passing last argument to views
> for fitering only og nodes with this taxonomy term) (consider that i'm using
> Pathauto, so taxonomy/term it's aliased for example on
> "category/$category_name").
>
> I tried with custom_url_rewrite but it's not a so simple task and with
> hook_menu trying to create on the fly all this path (but it's a little bit
> strong in terms of cpu cycles...).
>
> I'm using D5.
>
> Please, someone could suggest me the right way  ? :) Thank you very much!!!
> :)
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>

Re: Taxonomy path OG aware

by Paolo Mainardi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

But with og_vocab after i need to create new vocabularies for every new group created, i'm right ?

On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant <prometheus6@...> wrote:
Try the OG Vocabulary module. It lets each group have it's own taxonomy.

On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi<paolomainardi@...> wrote:
> Dear All,
>
> I need your opinion and suggestions on a (for me) complicated task.
>
> I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content
> types
>
> Now, i need to achieve this task, when you are in a node (og context)
> taxonomy links must be have something relative to og, for example:
>
> "/taxonomy/term/$tid/$og->nid" (for example passing last argument to views
> for fitering only og nodes with this taxonomy term) (consider that i'm using
> Pathauto, so taxonomy/term it's aliased for example on
> "category/$category_name").
>
> I tried with custom_url_rewrite but it's not a so simple task and with
> hook_menu trying to create on the fly all this path (but it's a little bit
> strong in terms of cpu cycles...).
>
> I'm using D5.
>
> Please, someone could suggest me the right way  ? :) Thank you very much!!!
> :)
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>



--
Paolo Mainardi

CTO Twinbit
Blog: http://www.paolomainardi.com

-- Please consider the environment before printing this email --

Re: Taxonomy path OG aware

by Earl Dunovant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes you're right. Your question means you want to have a single
taxonomy and share it across groups...you would have to use Views for
that. You would clone the taxonomy_term view that ships with Views and
add an argument that filters nodes by group membership.

You should install the advanced_help module. That's how you get
detailed help on Views and a lot of other important modules as well.

On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi<paolomainardi@...> wrote:

> But with og_vocab after i need to create new vocabularies for every new
> group created, i'm right ?
>
> On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant <prometheus6@...>
> wrote:
>>
>> Try the OG Vocabulary module. It lets each group have it's own taxonomy.
>>
>> On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi<paolomainardi@...>
>> wrote:
>> > Dear All,
>> >
>> > I need your opinion and suggestions on a (for me) complicated task.
>> >
>> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content
>> > types
>> >
>> > Now, i need to achieve this task, when you are in a node (og context)
>> > taxonomy links must be have something relative to og, for example:
>> >
>> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to
>> > views
>> > for fitering only og nodes with this taxonomy term) (consider that i'm
>> > using
>> > Pathauto, so taxonomy/term it's aliased for example on
>> > "category/$category_name").
>> >
>> > I tried with custom_url_rewrite but it's not a so simple task and with
>> > hook_menu trying to create on the fly all this path (but it's a little
>> > bit
>> > strong in terms of cpu cycles...).
>> >
>> > I'm using D5.
>> >
>> > Please, someone could suggest me the right way  ? :) Thank you very
>> > much!!!
>> > :)
>> >
>> > --
>> > Paolo Mainardi
>> >
>> > CTO Twinbit
>> > Blog: http://www.paolomainardi.com
>> >
>> > -- Please consider the environment before printing this email --
>> >
>
>
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>

Re: Taxonomy path OG aware

by Paolo Mainardi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant <prometheus6@...> wrote:
Yes you're right. Your question means you want to have a single
taxonomy and share it across groups...you would have to use Views for
that. You would clone the taxonomy_term view that ships with Views and
add an argument that filters nodes by group membership.

Yes it was i did and it's ok, but the point it's another, how to create custom path for this taxonomy/term/$og->title with Pathauto ?

Where "taxonomy/term" is "category/term-title", i need to create "og-title/taxonomy/term" --> "og-title/category/term-title".

It's a little bit more clear ?

Thanks :)
 


You should install the advanced_help module. That's how you get
detailed help on Views and a lot of other important modules as well.

On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi<paolomainardi@...> wrote:
> But with og_vocab after i need to create new vocabularies for every new
> group created, i'm right ?
>
> On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant <prometheus6@...>
> wrote:
>>
>> Try the OG Vocabulary module. It lets each group have it's own taxonomy.
>>
>> On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi<paolomainardi@...>
>> wrote:
>> > Dear All,
>> >
>> > I need your opinion and suggestions on a (for me) complicated task.
>> >
>> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content
>> > types
>> >
>> > Now, i need to achieve this task, when you are in a node (og context)
>> > taxonomy links must be have something relative to og, for example:
>> >
>> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to
>> > views
>> > for fitering only og nodes with this taxonomy term) (consider that i'm
>> > using
>> > Pathauto, so taxonomy/term it's aliased for example on
>> > "category/$category_name").
>> >
>> > I tried with custom_url_rewrite but it's not a so simple task and with
>> > hook_menu trying to create on the fly all this path (but it's a little
>> > bit
>> > strong in terms of cpu cycles...).
>> >
>> > I'm using D5.
>> >
>> > Please, someone could suggest me the right way  ? :) Thank you very
>> > much!!!
>> > :)
>> >
>> > --
>> > Paolo Mainardi
>> >
>> > CTO Twinbit
>> > Blog: http://www.paolomainardi.com
>> >
>> > -- Please consider the environment before printing this email --
>> >
>
>
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>



--
Paolo Mainardi

CTO Twinbit
Blog: http://www.paolomainardi.com

-- Please consider the environment before printing this email --

Re: Taxonomy path OG aware

by Paolo Mainardi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Someone have other ideas ? 

Thanks :)

On Thu, Jun 25, 2009 at 4:33 PM, Paolo Mainardi <paolomainardi@...> wrote:


On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant <prometheus6@...> wrote:
Yes you're right. Your question means you want to have a single
taxonomy and share it across groups...you would have to use Views for
that. You would clone the taxonomy_term view that ships with Views and
add an argument that filters nodes by group membership.

Yes it was i did and it's ok, but the point it's another, how to create custom path for this taxonomy/term/$og->title with Pathauto ?

Where "taxonomy/term" is "category/term-title", i need to create "og-title/taxonomy/term" --> "og-title/category/term-title".

It's a little bit more clear ?

Thanks :)
 


You should install the advanced_help module. That's how you get
detailed help on Views and a lot of other important modules as well.

On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi<paolomainardi@...> wrote:
> But with og_vocab after i need to create new vocabularies for every new
> group created, i'm right ?
>
> On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant <prometheus6@...>
> wrote:
>>
>> Try the OG Vocabulary module. It lets each group have it's own taxonomy.
>>
>> On Wed, Jun 24, 2009 at 9:14 AM, Paolo Mainardi<paolomainardi@...>
>> wrote:
>> > Dear All,
>> >
>> > I need your opinion and suggestions on a (for me) complicated task.
>> >
>> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some content
>> > types
>> >
>> > Now, i need to achieve this task, when you are in a node (og context)
>> > taxonomy links must be have something relative to og, for example:
>> >
>> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to
>> > views
>> > for fitering only og nodes with this taxonomy term) (consider that i'm
>> > using
>> > Pathauto, so taxonomy/term it's aliased for example on
>> > "category/$category_name").
>> >
>> > I tried with custom_url_rewrite but it's not a so simple task and with
>> > hook_menu trying to create on the fly all this path (but it's a little
>> > bit
>> > strong in terms of cpu cycles...).
>> >
>> > I'm using D5.
>> >
>> > Please, someone could suggest me the right way  ? :) Thank you very
>> > much!!!
>> > :)
>> >
>> > --
>> > Paolo Mainardi
>> >
>> > CTO Twinbit
>> > Blog: http://www.paolomainardi.com
>> >
>> > -- Please consider the environment before printing this email --
>> >
>
>
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>



--
Paolo Mainardi

CTO Twinbit
Blog: http://www.paolomainardi.com

-- Please consider the environment before printing this email --



--
Paolo Mainardi

CTO Twinbit
Blog: http://www.paolomainardi.com

-- Please consider the environment before printing this email --

Re: Taxonomy path OG aware

by Earl Dunovant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, been busy.

I suggest you use a view instead of an alias. Given arguments (nid of
the group, termid of teh term) creating a page display of posts in the
group with that term is pretty straightforward.

On Thu, Jun 25, 2009 at 5:22 PM, Paolo Mainardi<paolomainardi@...> wrote:

> Someone have other ideas ?
> Thanks :)
>
> On Thu, Jun 25, 2009 at 4:33 PM, Paolo Mainardi <paolomainardi@...>
> wrote:
>>
>>
>> On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant <prometheus6@...>
>> wrote:
>>>
>>> Yes you're right. Your question means you want to have a single
>>> taxonomy and share it across groups...you would have to use Views for
>>> that. You would clone the taxonomy_term view that ships with Views and
>>> add an argument that filters nodes by group membership.
>>
>> Yes it was i did and it's ok, but the point it's another, how to create
>> custom path for this taxonomy/term/$og->title with Pathauto ?
>>
>> Where "taxonomy/term" is "category/term-title", i need to create
>> "og-title/taxonomy/term" --> "og-title/category/term-title".
>>
>> It's a little bit more clear ?
>>
>> Thanks :)
>>
>>>
>>> You should install the advanced_help module. That's how you get
>>> detailed help on Views and a lot of other important modules as well.
>>>
>>> On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi<paolomainardi@...>
>>> wrote:
>>> > But with og_vocab after i need to create new vocabularies for every new
>>> > group created, i'm right ?
>>> >
>>> > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant <prometheus6@...>
>>> > wrote:
>>> >>
>>> >> Try the OG Vocabulary module. It lets each group have it's own
>>> >> taxonomy.
>>> >>
>>> >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo
>>> >> Mainardi<paolomainardi@...>
>>> >> wrote:
>>> >> > Dear All,
>>> >> >
>>> >> > I need your opinion and suggestions on a (for me) complicated task.
>>> >> >
>>> >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some
>>> >> > content
>>> >> > types
>>> >> >
>>> >> > Now, i need to achieve this task, when you are in a node (og
>>> >> > context)
>>> >> > taxonomy links must be have something relative to og, for example:
>>> >> >
>>> >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to
>>> >> > views
>>> >> > for fitering only og nodes with this taxonomy term) (consider that
>>> >> > i'm
>>> >> > using
>>> >> > Pathauto, so taxonomy/term it's aliased for example on
>>> >> > "category/$category_name").
>>> >> >
>>> >> > I tried with custom_url_rewrite but it's not a so simple task and
>>> >> > with
>>> >> > hook_menu trying to create on the fly all this path (but it's a
>>> >> > little
>>> >> > bit
>>> >> > strong in terms of cpu cycles...).
>>> >> >
>>> >> > I'm using D5.
>>> >> >
>>> >> > Please, someone could suggest me the right way  ? :) Thank you very
>>> >> > much!!!
>>> >> > :)
>>> >> >
>>> >> > --
>>> >> > Paolo Mainardi
>>> >> >
>>> >> > CTO Twinbit
>>> >> > Blog: http://www.paolomainardi.com
>>> >> >
>>> >> > -- Please consider the environment before printing this email --
>>> >> >
>>> >
>>> >
>>> >
>>> > --
>>> > Paolo Mainardi
>>> >
>>> > CTO Twinbit
>>> > Blog: http://www.paolomainardi.com
>>> >
>>> > -- Please consider the environment before printing this email --
>>> >
>>
>>
>>
>> --
>> Paolo Mainardi
>>
>> CTO Twinbit
>> Blog: http://www.paolomainardi.com
>>
>> -- Please consider the environment before printing this email --
>
>
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>

Re: Taxonomy path OG aware

by Paolo Mainardi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I agree.

But, i'm concerned about pathauto alias, for example, "taxonomy/term" has been aliased to "category/$term->name" and when i create this links thay are automatically aliased to that one.

How i can manage that ?

For example in my node.tpl i'm using:

<?php l('term name', 'taxonomy/term/'.$term->name) ?>

With other configuration i will lost the pathauto things:

<?php if ($og) : ?>
    <?php l('term name', '$og->name/taxonomy/term/'.$term->name) ?>
<?php endif; ?>

I think that the only solution is to avoi totally pathauto and changing url path of term views in according to old pathauto alias...

What do you think ?

Thank you very much!
P.



On Mon, Jun 29, 2009 at 3:36 AM, Earl Dunovant <prometheus6@...> wrote:
Sorry, been busy.

I suggest you use a view instead of an alias. Given arguments (nid of
the group, termid of teh term) creating a page display of posts in the
group with that term is pretty straightforward.

On Thu, Jun 25, 2009 at 5:22 PM, Paolo Mainardi<paolomainardi@...> wrote:
> Someone have other ideas ?
> Thanks :)
>
> On Thu, Jun 25, 2009 at 4:33 PM, Paolo Mainardi <paolomainardi@...>
> wrote:
>>
>>
>> On Thu, Jun 25, 2009 at 11:55 AM, Earl Dunovant <prometheus6@...>
>> wrote:
>>>
>>> Yes you're right. Your question means you want to have a single
>>> taxonomy and share it across groups...you would have to use Views for
>>> that. You would clone the taxonomy_term view that ships with Views and
>>> add an argument that filters nodes by group membership.
>>
>> Yes it was i did and it's ok, but the point it's another, how to create
>> custom path for this taxonomy/term/$og->title with Pathauto ?
>>
>> Where "taxonomy/term" is "category/term-title", i need to create
>> "og-title/taxonomy/term" --> "og-title/category/term-title".
>>
>> It's a little bit more clear ?
>>
>> Thanks :)
>>
>>>
>>> You should install the advanced_help module. That's how you get
>>> detailed help on Views and a lot of other important modules as well.
>>>
>>> On Wed, Jun 24, 2009 at 3:02 PM, Paolo Mainardi<paolomainardi@...>
>>> wrote:
>>> > But with og_vocab after i need to create new vocabularies for every new
>>> > group created, i'm right ?
>>> >
>>> > On Wed, Jun 24, 2009 at 6:08 PM, Earl Dunovant <prometheus6@...>
>>> > wrote:
>>> >>
>>> >> Try the OG Vocabulary module. It lets each group have it's own
>>> >> taxonomy.
>>> >>
>>> >> On Wed, Jun 24, 2009 at 9:14 AM, Paolo
>>> >> Mainardi<paolomainardi@...>
>>> >> wrote:
>>> >> > Dear All,
>>> >> >
>>> >> > I need your opinion and suggestions on a (for me) complicated task.
>>> >> >
>>> >> > I have OG + Taxonomy (views on taxonomy/term) + Pathauto + Some
>>> >> > content
>>> >> > types
>>> >> >
>>> >> > Now, i need to achieve this task, when you are in a node (og
>>> >> > context)
>>> >> > taxonomy links must be have something relative to og, for example:
>>> >> >
>>> >> > "/taxonomy/term/$tid/$og->nid" (for example passing last argument to
>>> >> > views
>>> >> > for fitering only og nodes with this taxonomy term) (consider that
>>> >> > i'm
>>> >> > using
>>> >> > Pathauto, so taxonomy/term it's aliased for example on
>>> >> > "category/$category_name").
>>> >> >
>>> >> > I tried with custom_url_rewrite but it's not a so simple task and
>>> >> > with
>>> >> > hook_menu trying to create on the fly all this path (but it's a
>>> >> > little
>>> >> > bit
>>> >> > strong in terms of cpu cycles...).
>>> >> >
>>> >> > I'm using D5.
>>> >> >
>>> >> > Please, someone could suggest me the right way  ? :) Thank you very
>>> >> > much!!!
>>> >> > :)
>>> >> >
>>> >> > --
>>> >> > Paolo Mainardi
>>> >> >
>>> >> > CTO Twinbit
>>> >> > Blog: http://www.paolomainardi.com
>>> >> >
>>> >> > -- Please consider the environment before printing this email --
>>> >> >
>>> >
>>> >
>>> >
>>> > --
>>> > Paolo Mainardi
>>> >
>>> > CTO Twinbit
>>> > Blog: http://www.paolomainardi.com
>>> >
>>> > -- Please consider the environment before printing this email --
>>> >
>>
>>
>>
>> --
>> Paolo Mainardi
>>
>> CTO Twinbit
>> Blog: http://www.paolomainardi.com
>>
>> -- Please consider the environment before printing this email --
>
>
>
> --
> Paolo Mainardi
>
> CTO Twinbit
> Blog: http://www.paolomainardi.com
>
> -- Please consider the environment before printing this email --
>



--
Paolo Mainardi

CTO Twinbit
Blog: http://www.paolomainardi.com

-- Please consider the environment before printing this email --

Re: Taxonomy path OG aware

by Earl Dunovant :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> I think that the only solution is to avoi totally pathauto and changing url
> path of term views in according to old pathauto alias...

You need to set up arguments for the group node and the term. If you
set them up in that order, your view's path setting would be

node/%/category/%

Interestingly enough, you can use node titles and term names as
arguments so in theory you can use them in the url. I haven't tried
using node titles.

Re: Taxonomy path OG aware

by Paolo Mainardi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Il giorno 30/giu/2009, alle ore 22.11, Earl Dunovant <prometheus6@...
 > ha scritto:

>> I think that the only solution is to avoi totally pathauto and  
>> changing url
>> path of term views in according to old pathauto alias...
>
> You need to set up arguments for the group node and the term. If you
> set them up in that order, your view's path setting would be
>
> node/%/category/%

Hi Earl,

I will try with this configuration, without node in front, only this:

$og->title/category/$term->title

Because old pathauto scheme.

My concern it's only on howto set og context on this views.

Thanks

Paolo Mainardi
CTO Twinbit
http://www.paolomainardi.com




>
> Interestingly enough, you can use node titles and term names as
> arguments so in theory you can use them in the url. I haven't tried
> using node titles.