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.

Search: across MSM sites

March 30, 2011 10:44pm

Subscribe [3]
  • #1 / Mar 30, 2011 10:44pm

    contactizm

    15 posts

    This question may be related to a resolved thread.

    I’ve just installed MSM and am using weblog entries perfectly across the 2 sites.  However, I’ve just run into the disappointing wall that I can’t search entries in the default_site weblog and have them shown on a results page on site B.  This functionality is imperative with what I’m trying to achieve.  Am I correct to believe that the only way to resolve this would be to entirely delete this new site and re-create a second site, duplicating the weblog/entries instead of the way I originally did it which is not duplicating at all, but simply viewing across sites?

    I have read that I can use the query module, however it doesn’t seem that would allow me to use links to other templates via entry_id_path etc. 

    Can someone please give me a little guidance?  Thanks so much.

  • #2 / Mar 31, 2011 8:50am

    Sue Crocker

    26054 posts

    Hi, contactizm. You might want to check with the folks over on Solspace for Super Search - see: http://devot-ee.com/add-ons/super-search/

    It’s not a free add-on, but they do have a 30 day money back guarantee.

  • #3 / Mar 31, 2011 11:54am

    contactizm

    15 posts

    i appreciate the reply.  i deleted and re-installed the new site duplicating the entries of the weblog i needed.  i thought this would at least resolve the fact that entry_id_path wasn’t working for me. 

    when i’m in siteB, for which i duplicated the weblog and entries, and i pull an entry out on siteB, i run into a snag when trying to use entry_id_path.  it’s still taking me back to view that entry on my default site ... even though i have site=“siteB” set as a parameter when calling the entries.  i even have site=“siteB” set on the template page for viewing the entry id.

    basically, does entry_id_path not work for individual sites with MSM?

  • #4 / Apr 04, 2011 3:18am

    John Henry Donovan

    12339 posts

    contactizm,

    basically, does entry_id_path not work for individual sites with MSM?

    It should do.

    What version and build of both EE and MSM are you using?

    Can you share your template code where entry_id_path is not working for you please?

  • #5 / Apr 04, 2011 12:14pm

    contactizm

    15 posts

    mmm, I’m on EE 1.6.9 and just downloaded MSM last week.  I was just doing something like this:

    {exp:weblog:entries site="siteb" category="22"}
      <a href="http://{entry_id_path=products/info}">{title}</a>
      {image} 
      ...
    {/exp:weblog:entries}

    that would take me to the requested entry, except displayed in a template in my default site.  totally weird.  however, when i made the anchor tag like so ...

    <a href="/products/info/{entry_id}">{title}</a>
     ...

    things work fine.  so i was actually able to work around the problem but didn’t understand what was going on. 

    another issue that i’m having, and i understand that this is more likely a 3rd party issue and not in your domain, but when i try to link to related entries for these duplicated entries, it again takes me back to the default site where the entries were originally made and given relations.  i’m guessing this is because of some connection to the original entry id when creating these relationships. 

    lastly, i thought that i’d be able to search a weblog once i’ve duplicated all of the entries upon creating siteb.  but that seems to not be the case, i still get sent back to the default site template when i search ... even if i specify site=“siteb” in both the search parameters and the results_page.

    any thoughts??  😊

  • #6 / Apr 04, 2011 3:28pm

    Lisa Wess

    20502 posts

    entry_id_path (and similar variables) will call from the General Config URL on the currently viewed site.  You have a few other options:

    * {comment_entry_id_auto_path}
    * Creating your own user defined global variable and using that
    * Or coding it the way that you have there. =)

    Does that help?

  • #7 / Apr 04, 2011 3:35pm

    contactizm

    15 posts

    that does indeed help.  i’m sure the {related_entries} question i had is better off finding an answer elsewhere, but aside from using solspace super search, do you have any ideas for my search woes? 

    super search doesn’t seem to work for me because as far as i can see, i can’t link to an individual entry using something like entry_id_path (or the way i’ve done it above) given the results that super search produces. ??

  • #8 / Apr 04, 2011 10:55pm

    Sue Crocker

    26054 posts

    Hi, contactizm. What do the folks over in the Solspace forums have to say for how to display their search results so they give you the pathing you want?

  • #9 / Apr 06, 2011 11:04am

    contactizm

    15 posts

    😊 i’m still awaiting a response from someone.

  • #10 / Apr 06, 2011 12:22pm

    contactizm

    15 posts

    another good update!

    so now i feel like an idiot.  i was able to work out the simple_search_form on siteB simply by setting the url to my homepage in the admin settings on siteB to it’s actual homepage url.  i guess when you originally create the site, it leaves the url to your homepage the same as your default site.

    so, by duplicating the weblog/entries from siteA, and configuring the url to homepage properly, the search module provided with EE works fine with MSM.

    now, for those pesky related entries ...

  • #11 / Apr 06, 2011 2:08pm

    Sue Crocker

    26054 posts

    Yeah! Great news. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases