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.

EE2.x: Passed variables and auto login not working in MSM

January 16, 2011 9:17pm

Subscribe [5]
  • #1 / Jan 16, 2011 9:17pm

    Dr. Seuss

    58 posts

    Not working for me either.

    ExpressionEngine v2.1.3 - Build:  20101220

    Just upgraded from 2.1.1, I think. 

    Trying to pass a test value from a page:

    {embed="common/header" page_title="testing"}

    to an embed with this code:

    <title>
    {site_name} | {embed:page_title}
    </title>

    Generates the following HTML code:

    <title>
    Get There | {embed:page_title}
    </title>

    For the record, I have also tried:

    <title>
    {site_name} | {embed=page_title}
    </title>

    ...because I found some sample code on the ‘Net that used this syntax in an earlier version of Expression Engine.

    Naturally, I would like to ultimately be able to do able to actually pass the entry title to my header embed, but in the course of trying to debug the code that would set that value I discovered that I was not able to read the embed value when set simply to the string “testing”.  So either I am doing something wrong or there is a bug.

  • #2 / Jan 17, 2011 10:05am

    Sue Crocker

    26054 posts

    Hi, Dr. Seuss. Is this on a site using the MSM?

  • #3 / Jan 17, 2011 10:17am

    Dr. Seuss

    58 posts

    Yes.  And Forums.

    Had not tried to pass an embed variable prior to performing the upgrade (I’m still learning EE….) but it seemed odd that it would not work as indicated here:

    http://ellislab.com/expressionengine/user-guide/templates/embedding_templates.html

    ...so soon as after my update last Friday (which is why I appended to the other guys’ thread last night).

    Let me know what I can do to assist trouble-shooting.

  • #4 / Jan 17, 2011 4:32pm

    Ingmar

    29245 posts

    It definitely should work that way, yes. Can you try with a much simplified template? The embed without the page_title works, I understand? Are you using any extensions?

  • #5 / Jan 17, 2011 4:55pm

    Dr. Seuss

    58 posts

    yes, the embed works without passing without passing the variable.  Still works, in fct—the variable’s value is just not being parsed and displayed.

    Here are my installed extensions:

    Blacklist/Whitelist   3
    Blogger API   2
    Channel   2.0.1
    Comment   2.1
    Email   2
    Emoticon   2
    IP to Nation   2.3
    jQuery   1
    Mailing List   3
    Member   2
    Metaweblog API   2
    Moblog   3
    Pages   —
    Query   2
    Referrer   2
    RSS   2
    Search   2
    Shoutbox   1
    Simple Commerce   2
    Statistics   2
    Structure   02/02/05
    Updated Sites   2
    Wiki   2.2
    Wygwam   02/01/07

  • #6 / Jan 18, 2011 8:00am

    Sue Crocker

    26054 posts

    Did this work previously?

  • #7 / Jan 18, 2011 10:20am

    Dr. Seuss

    58 posts

    I don’t know if it would have or not; this is the first time that I have tried passing a value to an embed.

  • #8 / Jan 18, 2011 11:04pm

    Sue Crocker

    26054 posts

    I can’t replicate the problem you’re having on a vanilla install. I created two templates, and put in just the code you mentioned, except I added a

    <title>
    {site_name} | {embed:page_title}
    </title>  
    
    {embed:page_title}

    How does what I did differ from you?

  • #9 / Jan 19, 2011 12:35am

    Dr. Seuss

    58 posts

    It looks the same.

    My project is on engine Hosting; is there a channel where I can send you the log-in information so that you can see the code in its installed context?

  • #10 / Jan 19, 2011 4:02pm

    Ingmar

    29245 posts

    Are you trying this with minimized templates? Can you try to disable extensions globally for testing?

  • #11 / Jan 22, 2011 1:57pm

    Dr. Seuss

    58 posts

    What is a minimized template?

    I disabled extensions—only the Structure extension was present to be disabled—and rand the test by browsing to this page and viewing the value placed within the page title tag:

    http://www.gettherebrand.com/index.php/AboutGetThere/GetThereOverview/

  • #12 / Jan 23, 2011 6:20pm

    Greg Salt

    3988 posts

    Hi Dr. Seuss,

    If http://www.gettherebrand.com/index.php/AboutGetThere/GetThereOverview/ is a template in the AboutGetThere template group can you please post the top part of it that has your title code?

    Cheers

    Greg

  • #13 / Jan 25, 2011 1:48pm

    Dr. Seuss

    58 posts

    Greg,

    I was never able to get this to work on Engine Hosting.

    Oddly enough, I had another client who was using Dreamhost and my code was working fine there.  So I just moved the problem client to DH.  All appears to be working.

    Don’t know precisely what the problem is / was.  Guess we close this ticket.

    Seuss

  • #14 / Jan 26, 2011 3:46am

    John Henry Donovan

    12339 posts

    Closing as requested. Feel free to start a new thread if you have any more questions

  • #15 / Jan 26, 2011 3:47am

    John Henry Donovan

    12339 posts

    This time

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

ExpressionEngine News!

#eecms, #events, #releases