I am in the middle of a site rebuild due to a server crash, thanks to google I have about 90% of my content.
Of course this time I am trying to make it a little better, on the site, we sell birds and have a page listing the available birds. On that page I have a link for the species of listed birds. Clicking on that link took you to a profile page for the species.
This time around I want to pull up an iframe with just their personality details, here is what I have so far. I’m on the right track, but placeholders or something is getting lost in translation.
here is the code that calls the listing for the birds for sale.
[[Ditto?tpl=`show_baby` &tplAlt=`show_baby_alt` &display=`all` &summarize=`5` &paginate=`1` &paginateAlwaysShowLinks=`1`]]
all good there, moving on to the template.
<div class="bwrap">
<div class="blist">
<div class="bld">
<a href="{{img_path_baby}}[+babypic+]" rel="lightbox" title="[+baby_type+]"><img class="bpx" src="{{img_path_baby}}th_[+babypic+]" alt="[+babytype+]" width="96" height="96"/></a>
</div>
<br/>
Baby <a href="45" rel="lightbox[personality]" title="[+baby_type+]">[+baby_type+]</a>, [+baby_muta+]<br/>[+baby_sex+]
<br/>
<p>Price $ [+baby_price+] (USD) Ref: [+id+]</p>
<p>[+baby_story+]</p><br/>
</div>
</div>
Now I know you just don’t put in a document number, but for now it is working, 45 is the page with a minimal template for the iframe and holds another ditto call..
[[Ditto?tpl=`breeder_personality` &parents=`[+baby_link+]`&display=`1`]]
This is where things break down, FYI [+baby_link+] is a text field that holds the document number for the species profile. Now the template...
<h3>[+pagetitle+]</h3>
<p>[+personality+]</P>
Nice and simple, now this does load in the iframe, but it loads document 44. Regardless of the [+baby_link+] value.
Probably something simple, but this is a bit advanced for me.
Any ideas?
Thanks!