Skip to main content
deleted 1848 characters in body
Source Link
Matt
  • 51
  • 6

As of now, when using process="end" tag, it doesn't appear to have playa parsing the vars in the proper order.

{preload_replace:my_channel="rehab"} 
{preload_replace:my_playa_channel="rehab_updates"} 
{preload_replace:my_single_entry_template="view"}

{exp:stash:parse process="end"}
    {exp:channel:entries channel="{my_channel}"}
      {exp:playa:parents channel="{my_playa_channel}" status="open" entry_id="{stash:update_ids}"}
  <slider window call>
      {/exp:playa:parents}
    {/exp:channel:entries}
{/exp:stash:parse}


 {exp:channel:entries channel="{my_channel}" url_title="{segment_3}" limit="1" require_entry="yes"}
    {exp:stash:set name="update_ids" parse_tags="yes" trim="yes"}
        0{exp:playa:parents channel="{my_playa_channel}" status="open" limit="10"}|{entry_id}{/exp:playa:parents}
    {/exp:stash:set}
{/exp:channel:entries}



{exp:channel:entries channel="{my_channel}" url_title="{segment_3}" limit="1" dynamic="on"}
<content>
{exp:stash:parse process="end" parse_depth="2"}  {exp:playa:parents channel="{my_playa_channel}" status="open" limit="10" entry_id="{stash:update_ids}"}
{/exp:stash:parse}
<content that gets playa prefixes>
{/exp:playa:parents}
    {/exp:channel:entries}

i'm now trying to stash everything that i will use within entry and playa entries. I've been checking the template output and so far it's only parsing and storing the rehab_list that is within the channel loop, but the rehab_update_list is not being parsed that's within the playa rehab_update loop. After this is resolved, i will attempt to store this in a parsing order in which i will be able to have it efficient and problem free for page lay out.


As of now, when using process="end" tag, it doesn't appear to have playa parsing the vars in the proper order.

{preload_replace:my_channel="rehab"} 
{preload_replace:my_playa_channel="rehab_updates"} 
{preload_replace:my_single_entry_template="view"}

{exp:stash:parse process="end"}
    {exp:channel:entries channel="{my_channel}"}
      {exp:playa:parents channel="{my_playa_channel}" status="open" entry_id="{stash:update_ids}"}
  <slider window call>
      {/exp:playa:parents}
    {/exp:channel:entries}
{/exp:stash:parse}


 {exp:channel:entries channel="{my_channel}" url_title="{segment_3}" limit="1" require_entry="yes"}
    {exp:stash:set name="update_ids" parse_tags="yes" trim="yes"}
        0{exp:playa:parents channel="{my_playa_channel}" status="open" limit="10"}|{entry_id}{/exp:playa:parents}
    {/exp:stash:set}
{/exp:channel:entries}



{exp:channel:entries channel="{my_channel}" url_title="{segment_3}" limit="1" dynamic="on"}
<content>
{exp:stash:parse process="end" parse_depth="2"}  {exp:playa:parents channel="{my_playa_channel}" status="open" limit="10" entry_id="{stash:update_ids}"}
{/exp:stash:parse}
<content that gets playa prefixes>
{/exp:playa:parents}
    {/exp:channel:entries}

i'm now trying to stash everything that i will use within entry and playa entries. I've been checking the template output and so far it's only parsing and storing the rehab_list that is within the channel loop, but the rehab_update_list is not being parsed that's within the playa rehab_update loop. After this is resolved, i will attempt to store this in a parsing order in which i will be able to have it efficient and problem free for page lay out.


added 123 characters in body
Source Link
Matt
  • 51
  • 6
{exp:stash:set_list 
name="rehab_list" 
parse_tags="yes" 
trim="yes" 
parse_depth="5"parse_depth="4"
}

   {exp:channel:entries 
   channel="rehab" 
   url_title="{segment_3}" 
   limit="1"
   require_entry="yes"
    }

    {stash:rehab_entry_id}{entry_id}{/stash:rehab_entry_id}
    {stash:rehab_url_title}{url_title}{/stash:rehab_url_title}
    {stash:rehab_title}{title}{/stash:rehab_title}

{stash:playa_stash_test}test{/stash:playa_stash_test}

  
  {exp:stash:set_list:nested   
name="rehab_update_list"      
trim="yes"
parse_tags="yes" 
parse_depth="3"   
parse_depth="3"
} 

    {exp:playa:parents 
    channel="rehab_update" 
    
  status="open"  limit="10"}
    limit="10"
          {stash:playa_test}test22{/stash:playa_test}
               0{stash:playa_entry}|{entry_id}{/stash:playa_entry}
                {stash:playa_title|{title}{/stash:playa_title}
   
                {image_uploads sort="asc"}{photo_images size="thumbnail"}     
                {stash:playa_entry_img}{photo:url}{/stash:playa_entry_img}
                {stash:playa_entry_img_label}photo_label}   {/stash:playa_entry_img_label}
        {/photo_images} {/image_uploads}

   {stash:playa_summary_update}{summary_update}{/stash:playa_summary_update}
   {stash:playa_materials_needed}{materials_needed}{/stash:playa_materials_needed}
   {stash:playa_steps_taken}{steps_taken}{/stash:playa_steps_taken}

    {/exp:playa:parents}
     {/exp:stash:set_list:nested}
  {/exp:channel:entries}
  {/exp:stash:set_list}
{exp:stash:set_list 
name="rehab_list" 
parse_tags="yes" 
trim="yes" 
parse_depth="5"
}

   {exp:channel:entries 
   channel="rehab" 
   url_title="{segment_3}" 
   limit="1"
   require_entry="yes"
    }

    {stash:rehab_entry_id}{entry_id}{/stash:rehab_entry_id}
    {stash:rehab_url_title}{url_title}{/stash:rehab_url_title}
    {stash:rehab_title}{title}{/stash:rehab_title}

  
 {exp:stash:set_list:nested   
name="rehab_update_list"      
parse_tags="yes"    
parse_depth="3"
} 

    {exp:playa:parents 
    channel="rehab_update" 
    status="open" 
    limit="10"
          }
               0{stash:playa_entry}|{entry_id}{/stash:playa_entry}
                {stash:playa_title|{title}{/stash:playa_title}
   
                {image_uploads sort="asc"}{photo_images size="thumbnail"}     
                {stash:playa_entry_img}{photo:url}{/stash:playa_entry_img}
                {stash:playa_entry_img_label}photo_label}   {/stash:playa_entry_img_label}
        {/photo_images} {/image_uploads}

   {stash:playa_summary_update}{summary_update}{/stash:playa_summary_update}
   {stash:playa_materials_needed}{materials_needed}{/stash:playa_materials_needed}
   {stash:playa_steps_taken}{steps_taken}{/stash:playa_steps_taken}

    {/exp:playa:parents}
   {/exp:stash:set_list:nested}
  {/exp:channel:entries}
  {/exp:stash:set_list}
{exp:stash:set_list 
name="rehab_list" 
parse_tags="yes" 
trim="yes" 
parse_depth="4"
}

   {exp:channel:entries 
   channel="rehab" 
   url_title="{segment_3}" 
   limit="1"
   require_entry="yes"
    }

    {stash:rehab_entry_id}{entry_id}{/stash:rehab_entry_id}
    {stash:rehab_url_title}{url_title}{/stash:rehab_url_title}
    {stash:rehab_title}{title}{/stash:rehab_title}

{stash:playa_stash_test}test{/stash:playa_stash_test}

   {exp:stash:set_list:nested   
name="rehab_update_list"      
trim="yes"
parse_tags="yes" 
parse_depth="3"   
} 

    {exp:playa:parents 
    channel="rehab_update" 
    
    limit="10"}
    
          {stash:playa_test}test22{/stash:playa_test}
               0{stash:playa_entry}|{entry_id}{/stash:playa_entry}
                {stash:playa_title|{title}{/stash:playa_title}
   
                {image_uploads sort="asc"}{photo_images size="thumbnail"}     
                {stash:playa_entry_img}{photo:url}{/stash:playa_entry_img}
                {stash:playa_entry_img_label}photo_label}   {/stash:playa_entry_img_label}
        {/photo_images} {/image_uploads}

   {stash:playa_summary_update}{summary_update}{/stash:playa_summary_update}
   {stash:playa_materials_needed}{materials_needed}{/stash:playa_materials_needed}
   {stash:playa_steps_taken}{steps_taken}{/stash:playa_steps_taken}

    {/exp:playa:parents}
     {/exp:stash:set_list:nested}
  {/exp:channel:entries}
  {/exp:stash:set_list}
added 18 characters in body
Source Link
Matt
  • 51
  • 6
{exp:stash:set_list 
name="rehab_list" 
parse_tags="yes" 
trim="yes" 
parse_depth="5"
}

   {exp:channel:entries 
   channel="rehab" 
   url_title="{segment_3}" 
   limit="1"
   require_entry="yes"
    }

    {stash:rehab_entry_id}{entry_id}{/stash:rehab_entry_id}
    {stash:rehab_url_title}{url_title}{/stash:rehab_url_title}
    {stash:rehab_title}{title}{/stash:rehab_title}

  
      {exp:stash:set_list:nested 
      name="rehab_update_list" 
 name="rehab_update_list"     parse_tags="yes" 
   parse_tags="yes"     
parse_depth="3"
          }    

         {exp:playa:parents 
         channel="rehab_update" 
     status="open"  
   status="open" limit="10"
         limit="10" }
          }
     0{stash:playa_entry}|{entry_id}{/stash:playa_entry}
                {stash:playa_title|{title}{/stash:playa_title}
   
                {image_uploads sort="asc"}{photo_images size="thumbnail"}     
                {stash:playa_entry_img}{photo:url}{/stash:playa_entry_img}
                {stash:playa_entry_img_label}photo_label}   {/stash:playa_entry_img_label}
        {/photo_images} {/image_uploads}

   {stash:playa_summary_update}{summary_update}{/stash:playa_summary_update}
   {stash:playa_materials_needed}{materials_needed}{/stash:playa_materials_needed}
   {stash:playa_steps_taken}{steps_taken}{/stash:playa_steps_taken}

    {/exp:playa:parents}
   {/exp:stash:set_list:nested}
  {/exp:channel:entries}
  {/exp:stash:set_list}
{exp:stash:set_list 
name="rehab_list" 
parse_tags="yes" 
trim="yes" 
parse_depth="5"
}

   {exp:channel:entries 
   channel="rehab" 
   url_title="{segment_3}" 
   limit="1"
   require_entry="yes"
    }

    {stash:rehab_entry_id}{entry_id}{/stash:rehab_entry_id}
    {stash:rehab_url_title}{url_title}{/stash:rehab_url_title}
    {stash:rehab_title}{title}{/stash:rehab_title}

  
      {exp:stash:set_list:nested 
      name="rehab_update_list" 
      parse_tags="yes" 
       parse_depth="3"
          }    

         {exp:playa:parents 
         channel="rehab_update" 
         status="open" 
         limit="10"
          }
    0{stash:playa_entry}|{entry_id}{/stash:playa_entry}
    {stash:playa_title|{title}{/stash:playa_title}
   
    {image_uploads sort="asc"}{photo_images size="thumbnail"}     
   {stash:playa_entry_img}{photo:url}{/stash:playa_entry_img}
   {stash:playa_entry_img_label}photo_label}{stash:playa_entry_img_label}
        {/photo_images} {/image_uploads}

   {stash:playa_summary_update}{summary_update}{/stash:playa_summary_update}
   {stash:playa_materials_needed}{materials_needed}{/stash:playa_materials_needed}
   {stash:playa_steps_taken}{steps_taken}{/stash:playa_steps_taken}

    {/exp:playa:parents}
   {/exp:stash:set_list:nested}
  {/exp:channel:entries}
  {/exp:stash:set_list}
{exp:stash:set_list 
name="rehab_list" 
parse_tags="yes" 
trim="yes" 
parse_depth="5"
}

   {exp:channel:entries 
   channel="rehab" 
   url_title="{segment_3}" 
   limit="1"
   require_entry="yes"
    }

    {stash:rehab_entry_id}{entry_id}{/stash:rehab_entry_id}
    {stash:rehab_url_title}{url_title}{/stash:rehab_url_title}
    {stash:rehab_title}{title}{/stash:rehab_title}

  
{exp:stash:set_list:nested   
name="rehab_update_list"      
parse_tags="yes"     
parse_depth="3"
} 

    {exp:playa:parents 
    channel="rehab_update" 
    status="open"  
    limit="10"
          }
               0{stash:playa_entry}|{entry_id}{/stash:playa_entry}
                {stash:playa_title|{title}{/stash:playa_title}
   
                {image_uploads sort="asc"}{photo_images size="thumbnail"}     
                {stash:playa_entry_img}{photo:url}{/stash:playa_entry_img}
                {stash:playa_entry_img_label}photo_label}   {/stash:playa_entry_img_label}
        {/photo_images} {/image_uploads}

   {stash:playa_summary_update}{summary_update}{/stash:playa_summary_update}
   {stash:playa_materials_needed}{materials_needed}{/stash:playa_materials_needed}
   {stash:playa_steps_taken}{steps_taken}{/stash:playa_steps_taken}

    {/exp:playa:parents}
   {/exp:stash:set_list:nested}
  {/exp:channel:entries}
  {/exp:stash:set_list}
added 1851 characters in body
Source Link
Matt
  • 51
  • 6
Loading
Tidied up code items
Source Link
stuartmcd69
  • 3.2k
  • 2
  • 15
  • 17
Loading
[Edit removed during grace period]
Source Link
Matt
  • 51
  • 6
Loading
deleted 8 characters in body
Source Link
Matt
  • 51
  • 6
Loading
added 256 characters in body
Source Link
Matt
  • 51
  • 6
Loading
deleted 15 characters in body
Source Link
Matt
  • 51
  • 6
Loading
added 618 characters in body
Source Link
Matt
  • 51
  • 6
Loading
Tweeted twitter.com/#!/StackExpression/status/466390498362802177
added 71 characters in body; edited tags
Source Link
Stephen Callender
  • 3.9k
  • 2
  • 19
  • 44
Loading
added 678 characters in body
Source Link
Matt
  • 51
  • 6
Loading
added 515 characters in body
Source Link
Stephen Callender
  • 3.9k
  • 2
  • 19
  • 44
Loading
Source Link
Matt
  • 51
  • 6
Loading