ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Assigning one article to different weblogs

September 18, 2010 11:25am

Subscribe [2]
  • #1 / Sep 18, 2010 11:25am

    Ramya108

    123 posts

    I would like to assign one article to 2 different weblogs. At the same time, I would like it to have 1 url (not two different urls).

    To explain it further:

    I am rearranging my Products section. It will be totally different. But I have already added some product in the past, using a particular weblog. I would like to keep the old url, but create a new weblog for adding new (and old) products to my website.

  • #2 / Sep 18, 2010 12:27pm

    Rob Allen

    3114 posts

    You can call the content from 2 or more weblogs into one tag…

    {exp:weblog:entries weblog="oldproducts|newproducts"}

    That will allow you to combine old and new on a listing page or single entry page and keep the same URL’s.

    You might need to use some conditionals to pull in the correct custom fields…

    {exp:weblog:entries weblog="oldproducts|newproducts"}
    {title}
      {if weblog == 'oldproducts'}
      {oldprice}
      {if:else}
      {newprice}
      {/if}
    {/exp:weblog:entries}
  • #3 / Sep 19, 2010 3:12pm

    Ramya108

    123 posts

    Aha. I see.
    Thank you!!!

  • #4 / Sep 20, 2010 3:19am

    John Henry Donovan

    12339 posts

    Glad Rob was able to help. Feel free as always to start a new thread if you have nay more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases