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.

A sudden Custom Fields & MSM conflict...??

January 26, 2011 10:53am

Subscribe [2]
  • #1 / Jan 26, 2011 10:53am

    Michael C. (KKCJ)

    100 posts

    EE 1.6.8 build 20090723 (I know, I know)
    MSM 1.1 build 20091201

    I know custom field names need to be unique across weblogs in the same site, but do they need to be unique across MSM sites as well? Would the custom fields being in weblogs that have the same short name, just on separate sites, determine whether they have to have unique names or not?

    Assuming this template code…

    {exp:weblog:entries site="A" weblog="news"}
        <h1>{title}</h1>
        {news-body}
    {/exp:weblog:entries}

    ...here’s how the scenarios seem to work out:

    Scenario 1:
    ——————
    Site A, weblog short name “news”, custom field “news-body”
    Site B, weblog short name “news”, custom field “news-body”
    = Doesn’t work; {news-body} doesn’t return anything


    Scenario 2:
    ——————
    Site A, weblog short name “news”, custom field “news-body”
    Site B, weblog short name “news-b”, custom field “news-body”
    = Works as expected


    Scenario 3:
    ——————
    Site A, weblog short name “news”, custom field “news-body”
    Site B, weblog short name “news”, custom field “news-b-body”
    = Works as expected

    Does this make sense? Is this how it is supposed to work, or would updating to 1.7 fix a bug of some sort related to this?

  • #2 / Jan 26, 2011 10:27pm

    Lisa Wess

    20502 posts

    Hi, Michael-

    Are you running any third-party extensions? there are some where duplicated field shortnames across Sites are problematic.  It shouldn’t be an issue in a plain EE/MSM install.

  • #3 / Jan 30, 2011 5:58pm

    I’ve got a number of 3rd party extensions; are there any particular ones you have in mind, or would you like the whole list?

    (EDIT: Gah, multi-account confusion again. How come we can’t delete our own posts even though the button shows up?)

  • #4 / Jan 31, 2011 3:46pm

    Ingmar

    29245 posts

    Lisa was just point out the issue as such. Does the same thing happen with disabled extensions? Personally I’d recommend to use unique field names, even across sites. You might also want to consider upgrading to EE 1.7. Quite a few improvements and bug fixes since then.

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

ExpressionEngine News!

#eecms, #events, #releases