Pathauto and sub-homepage's content type
Hi all. I have my content type called "articoli" and I have create a category for this content type. Via pathauto, I have created this alias for the articoli's term: "manuali/[catpath]". Now my necessity is to create a sub-homepage for the "articoli" content type and the url must be "/articoli". At the moment if I go into /articoli page I get a list of all articoli cotent type's node. How can I create my subhome page ? I have tried to create a module for this problem: $items[] = array( 'title' => '', 'path' => 'articoli', 'access' => true, 'callback' => 'mw_articoli_main', 'type' => MENU_CALLBACK ); But without success. Is my only solutions use a my module that call views and simulate /articoli/path ? Please help me. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
Quoting Davide Michel 'ZioBudda' Morelli <michel@ziobudda.net>:
Hi all. I have my content type called "articoli" and I have create a category for this content type. Via pathauto, I have created this alias for the articoli's term: "manuali/[catpath]".
Now my necessity is to create a sub-homepage for the "articoli" content type and the url must be "/articoli". At the moment if I go into /articoli page I get a list of all articoli cotent type's node. How can I create my subhome page ?
Let me see if I understand correctly, you have an alias for the taxonomy/term/<tid> named articoli is that correct? If you remove or rename the alias then /articoli should take care of the issue as I understand it. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Earnie Boyd ha scritto:
Quoting Davide Michel 'ZioBudda' Morelli <michel@ziobudda.net>:
Hi all. I have my content type called "articoli" and I have create a category for this content type. Via pathauto, I have created this alias for the articoli's term: "manuali/[catpath]".
Now my necessity is to create a sub-homepage for the "articoli" content type and the url must be "/articoli". At the moment if I go into /articoli page I get a list of all articoli cotent type's node. How can I create my subhome page ?
Let me see if I understand correctly, you have an alias for the taxonomy/term/<tid> named articoli is that correct?
Nope, via pathauto I have that all /taxonomy/term/<tid> are translated in /articoli/<term name> where <term name> is the term name of a term of a vocabulary linked to a content type called "articoli". But when I go to http://www.mydomain.com/articoli/ I receive all nodes of "articoli" content type. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
Davide Michel 'ZioBudda' Morelli ha scritto:
Nope, via pathauto I have that all /taxonomy/term/<tid> are translated in /articoli/<term name> where <term name> is the term name of a term of a vocabulary linked to a content type called "articoli".
But when I go to http://www.mydomain.com/articoli/ I receive all nodes of "articoli" content type.
I have delete the "aticoli" content type, but now I have another problem: I see a themed blank page when I go to /articoli and /articoli (If you do not rember) is managed by one of my module. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
Confused as to why you created a module in the first place. Are you trying to write php that generates content? Or are you just trying to make anode that lives at /articoli? Or are you trying to achieve something else? The reason you're likely getting a blanked themed page is that that's what the function in your module generates. Couldn't say without seeing the code. If you'd give us a better idea as to what you're desired outcome is, we might be able to help better. ________________________________ From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Davide Michel 'ZioBudda' Morelli Sent: Wednesday, February 20, 2008 6:00 AM To: support@drupal.org Subject: Re: [support] Pathauto and sub-homepage's content type Davide Michel 'ZioBudda' Morelli ha scritto: Nope, via pathauto I have that all /taxonomy/term/<tid> are translated in /articoli/<term name> where <term name> is the term name of a term of a vocabulary linked to a content type called "articoli". But when I go to http://www.mydomain.com/articoli/ I receive all nodes of "articoli" content type. I have delete the "aticoli" content type, but now I have another problem: I see a themed blank page when I go to /articoli and /articoli (If you do not rember) is managed by one of my module. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
Davide Michel 'ZioBudda' Morelli ha scritto:
I have delete the "aticoli" content type, but now I have another problem: I see a themed blank page when I go to /articoli and /articoli (If you do not rember) is managed by one of my module
Ok, I don't know if it's correct or not but I have found this: 1) get a category (say "articoli categoria") and via pathauto set the associated path to "articoli/[catpath]" 2) create a module that want to manage "articoli/" (say to create a sub homepage) $items[] = array( 'title' => '', 'path' => 'articoli', 'access' => true, 'callback' => 'mw_articoli_main', 'type' => MENU_CALLBACK ); Now if you try to go to "articoli/" url you get a "page not found" page. This because pathauto create in automatic an alias where src = "pathauto/node/articoli" and dst = "articoli" Delete it and all works. Now you can have a module that manage "articoli" url and taxonomy that manage "articoli/{tern mane}" url. Hope that this help. M. -- Michel 'ZioBudda' Morelli michel@ziobudda.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ajaxblog.it MSN: michel@ziobuddalabs.it JABBER: michel@gmail.com
participants (3)
-
Davide Michel 'ZioBudda' Morelli -
Earnie Boyd -
Metzler, David