There's a some pages on a site where the content (and title etc) of the node are identical, although the url (and it's place in the menu system) are different. So for example Ideally I don't want to have to copy and paste everytime the content is updated.
The main issue is having it in a second place on the menu tree: creating an alias so that foo/item is an alias of bar/item, for example, means that the bar menu is triggered at foo/item
One way I can think of doing it is creating a "master" node, along with 'blank' secondary nodes, and using hook_nodeapi to use the content from the master node when a secondary node is called. This seems slightly hacky. Is there a module that already does this?
Alternatively, rather than creating the secondary nodes, can I use hook_menu_alter or something to add a second menu item that references the original?
One way I can think of doing it is creating a "master" node, along with 'blank' secondary nodes, and using hook_nodeapi to use the content from the master node when a secondary node is called. This seems slightly hacky. Is there a module that already does this?
I did something similar on a site, it worked, wasn't too hacky. I created a content type called cloned page, it had no body and a nodereference field to point to the page it's cloning. Then by setting the display of the reference you can get very close to the effect you want automatically. I think I might've needed to do a small bit of custom theming, not sure. It's important btw to set the canonical URL to avoid duplicate content penalties.
can I use hook_menu_alter or something to add a second menu item that References the original?
For my use case my clients wanted to be able to add different banners to the different pages, and my banner system worked on nids so just playing with the menu wasn't an option (for me!). Also it would've meant that when you clicked on the 'cloned' menu item, the active menu trail would jump to be that of the 'master' menu item.
Cheers,
Andy
. . . . . . . Andy Fowlston +44 (0)20 8747 5068 andy@pedalo.co.uk Skype: andy.pedalo www.pedalo.co.uk
This email is intended only for the above named addressee/s. This email may be confidential or legally privileged. If you have received this email and you are not a named addressee, you must not use, copy, distribute or disclose the email or any part of its contents or take any action in reliance on it. If you have received this email in error, please email the sender by replying to this message and delete it from your system. All reasonable precautions have been taken to ensure no viruses are present in this email.
pedalo limited cannot accept responsibility for loss or damage arising from the use of this email or attachments and recommends that you subject these to your virus checking procedures prior to use. Any views or opinions presented are solely those of the author and not necessarily those of Pedalo Limited
Please consider the environment before printing this email -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of DTH Sent: 10 March 2011 15:02 To: support@drupal.org Subject: [support] Creating duplicate content (on purpose)
There's a some pages on a site where the content (and title etc) of the node are identical, although the url (and it's place in the menu system) are different. So for example Ideally I don't want to have to copy and paste everytime the content is updated.
The main issue is having it in a second place on the menu tree: creating an alias so that foo/item is an alias of bar/item, for example, means that the bar menu is triggered at foo/item
One way I can think of doing it is creating a "master" node, along with 'blank' secondary nodes, and using hook_nodeapi to use the content from the master node when a secondary node is called. This seems slightly hacky. Is there a module that already does this?
Alternatively, rather than creating the secondary nodes, can I use hook_menu_alter or something to add a second menu item that references the original?
My apologies in advance. I'm probably missing something vital here because I think it seems too simple to me:
Tag+tag
?
I do that all the time & have duplicate content all over the place!
(Please forgive me, and do let me know what I'm missing.)
On 10 Mar 2011, at 7:16 PM, Andy Fowlston wrote:
One way I can think of doing it is creating a "master" node, along with 'blank' secondary nodes, and using hook_nodeapi to use the content from the master node when a secondary node is called. This seems slightly hacky. Is there a module that already does this?
I did something similar on a site, it worked, wasn't too hacky. I created a content type called cloned page, it had no body and a nodereference field to point to the page it's cloning. Then by setting the display of the reference you can get very close to the effect you want automatically. I think I might've needed to do a small bit of custom theming, not sure. It's important btw to set the canonical URL to avoid duplicate content penalties.
can I use hook_menu_alter or something to add a second menu item that References the original?
For my use case my clients wanted to be able to add different banners to the different pages, and my banner system worked on nids so just playing with the menu wasn't an option (for me!). Also it would've meant that when you clicked on the 'cloned' menu item, the active menu trail would jump to be that of the 'master' menu item.
Cheers,
Andy
. . . . . . . Andy Fowlston +44 (0)20 8747 5068 andy@pedalo.co.uk Skype: andy.pedalo www.pedalo.co.uk
This email is intended only for the above named addressee/s. This email may be confidential or legally privileged. If you have received this email and you are not a named addressee, you must not use, copy, distribute or disclose the email or any part of its contents or take any action in reliance on it. If you have received this email in error, please email the sender by replying to this message and delete it from your system. All reasonable precautions have been taken to ensure no viruses are present in this email.
pedalo limited cannot accept responsibility for loss or damage arising from the use of this email or attachments and recommends that you subject these to your virus checking procedures prior to use. Any views or opinions presented are solely those of the author and not necessarily those of Pedalo Limited
Please consider the environment before printing this email -----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of DTH Sent: 10 March 2011 15:02 To: support@drupal.org Subject: [support] Creating duplicate content (on purpose)
There's a some pages on a site where the content (and title etc) of the node are identical, although the url (and it's place in the menu system) are different. So for example Ideally I don't want to have to copy and paste everytime the content is updated.
The main issue is having it in a second place on the menu tree: creating an alias so that foo/item is an alias of bar/item, for example, means that the bar menu is triggered at foo/item
One way I can think of doing it is creating a "master" node, along with 'blank' secondary nodes, and using hook_nodeapi to use the content from the master node when a secondary node is called. This seems slightly hacky. Is there a module that already does this?
Alternatively, rather than creating the secondary nodes, can I use hook_menu_alter or something to add a second menu item that references the original? -- [ Drupal support list | http://lists.drupal.org/ ] -- [ Drupal support list | http://lists.drupal.org/ ]
Jeff wrote:
Tag+tag
Erm, sorry, dunno what you mean!
A.
. . . . . . . Andy Fowlston +44 (0)20 8747 5068 andy@pedalo.co.uk Skype: andy.pedalo www.pedalo.co.uk
This email is intended only for the above named addressee/s. This email may be confidential or legally privileged. If you have received this email and you are not a named addressee, you must not use, copy, distribute or disclose the email or any part of its contents or take any action in reliance on it. If you have received this email in error, please email the sender by replying to this message and delete it from your system. All reasonable precautions have been taken to ensure no viruses are present in this email.
pedalo limited cannot accept responsibility for loss or damage arising from the use of this email or attachments and recommends that you subject these to your virus checking procedures prior to use. Any views or opinions presented are solely those of the author and not necessarily those of Pedalo Limited
Please consider the environment before printing this email
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Jeff Sent: 10 March 2011 20:32 To: support@drupal.org Subject: Re: [support] Creating duplicate content (on purpose)
My apologies in advance. I'm probably missing something vital here because I think it seems too simple to me:
Tag+tag
?
I do that all the time & have duplicate content all over the place!
(Please forgive me, and do let me know what I'm missing.)
On 11 Mar 2011, at 12:53 PM, Andy Fowlston wrote:
Jeff wrote:
Tag+tag
Erm, sorry, dunno what you mean!
I mean Taxonomy.
I'm not sure I understood your original question, but it seemed to me that you were asking how to duplicate/multiplicate content on your website:
Assign a node to a taxonomy term (tag)
Apply that term (or various terms) to a menu item or path... Or menu items and paths...
There you go...
(You were talking about duplicating node content on various menu items on your site, weren't you?)
Sorry if I'm misunderstanding your query here...
Hi Jeff,
it seemed to me that you were asking how to duplicate/multiplicate content on your website:
That was the OP's question, yeah (I just gave a solution I'd used in the past).
Apply that term (or various terms) to a menu item or path... Or menu items and paths...
Still not really with you, but as I say, this isn't something I'm currently interested in implementing myself anyway :)
Cheers,
A.
. . . . . . . Andy Fowlston +44 (0)20 8747 5068 andy@pedalo.co.uk Skype: andy.pedalo www.pedalo.co.uk
This email is intended only for the above named addressee/s. This email may be confidential or legally privileged. If you have received this email and you are not a named addressee, you must not use, copy, distribute or disclose the email or any part of its contents or take any action in reliance on it. If you have received this email in error, please email the sender by replying to this message and delete it from your system. All reasonable precautions have been taken to ensure no viruses are present in this email.
pedalo limited cannot accept responsibility for loss or damage arising from the use of this email or attachments and recommends that you subject these to your virus checking procedures prior to use. Any views or opinions presented are solely those of the author and not necessarily those of Pedalo Limited
Please consider the environment before printing this email
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Jeff Sent: 11 March 2011 12:39 To: support@drupal.org Subject: Re: [support] Creating duplicate content (on purpose)
On 11 Mar 2011, at 12:53 PM, Andy Fowlston wrote:
Jeff wrote:
Tag+tag
Erm, sorry, dunno what you mean!
I mean Taxonomy.
I'm not sure I understood your original question, but it seemed to me that you were asking how to duplicate/multiplicate content on your website:
Assign a node to a taxonomy term (tag)
Apply that term (or various terms) to a menu item or path... Or menu items and paths...
There you go...
(You were talking about duplicating node content on various menu items on your site, weren't you?)
Sorry if I'm misunderstanding your query here...
On 11 Mar 2011, at 2:48 PM, Andy Fowlston wrote:
Hi Jeff,
it seemed to me that you were asking how to duplicate/multiplicate content on your website:
That was the OP's question, yeah (I just gave a solution I'd used in the past).
Sorry. I've recently taken to deleting threads on the fly. :)
Apply that term (or various terms) to a menu item or path... Or menu items and paths...
Still not really with you, but as I say, this isn't something I'm currently interested in implementing myself anyway :)
For example, I run a tourism website. Almost all of my entries are listed under accommodation, and are duplicated variously under B&B, Camping, Backpackers, Hotel, Cottages, etc.
I must be misunderstanding the OP's query, because that's basically what relational database CMS's do! :)
Jeff wrote:
Almost all of my entries are listed under accommodation, and are duplicated variously under B&B, Camping, Backpackers, Hotel, Cottages, etc.
I think the OP wanted a way to clone (or more accurately reference) an existing node, and to put it in a specific place in the menu hierarchy. I don't think there's a convenient/sensible way to achieve that with taxonomy.
Cheers,
A.
. . . . . . . Andy Fowlston +44 (0)20 8747 5068 andy@pedalo.co.uk Skype: andy.pedalo www.pedalo.co.uk
This email is intended only for the above named addressee/s. This email may be confidential or legally privileged. If you have received this email and you are not a named addressee, you must not use, copy, distribute or disclose the email or any part of its contents or take any action in reliance on it. If you have received this email in error, please email the sender by replying to this message and delete it from your system. All reasonable precautions have been taken to ensure no viruses are present in this email.
pedalo limited cannot accept responsibility for loss or damage arising from the use of this email or attachments and recommends that you subject these to your virus checking procedures prior to use. Any views or opinions presented are solely those of the author and not necessarily those of Pedalo Limited
Please consider the environment before printing this email
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Jeff Sent: 11 March 2011 13:12 To: support@drupal.org Subject: Re: [support] Creating duplicate content (on purpose)
On 11 Mar 2011, at 2:48 PM, Andy Fowlston wrote:
Hi Jeff,
it seemed to me that you were asking how to duplicate/multiplicate content on your website:
That was the OP's question, yeah (I just gave a solution I'd used in the past).
Sorry. I've recently taken to deleting threads on the fly. :)
Apply that term (or various terms) to a menu item or path... Or menu items and paths...
Still not really with you, but as I say, this isn't something I'm currently interested in implementing myself anyway :)
For example, I run a tourism website. Almost all of my entries are listed under accommodation, and are duplicated variously under B&B, Camping, Backpackers, Hotel, Cottages, etc.
I must be misunderstanding the OP's query, because that's basically what relational database CMS's do! :)