I’m probably not doing this properly and I apologize if I’m missing something blantently posted documentation… maybe I’m tired.
I have a simple header template that has a basic weblog call grabbing some content from a specific record
{exp:weblog:entries weblog="{my_weblog}" url_title="recordtitle" disable="member_data|trackbacks"}. Header starts page within the ‘head’ tag and ends at a ‘div’ container start tag.
All templates that include this header seem to display it fine. However, I have one template that is a listing of several entries. If you click on any of them you link to a template with an added segment of the {title} of the clicked on entry.
<a href="http://{path={my_template_group}}labbio_listing/{title}">{my_images}/people/{title}-sm.jpg</a>The page called with the
{title}{exp:weblog:entries..}{/exp:weblog:entries}.
The Odd thing is I have another weblog call in the page with the embeded template, it occurs below the embed call. This weblog query works fine with/without the segment added to the URL. If I call this template w/o the added segment, the header template fully renders.
My guess is by adding the segment, I’m placing the whole page within a EE generated exp:weblog:entries call and thus end up with 2 nested calls… from what I can gather from other posts, it’s not ‘recommended’ to have nested calls, but most are getting away with it if they encapsulate the inner call within an embeded template. In this case, it’s my encapsulated weblog call that is failing to render, but the non-embeded one does.
Is this behavior expected and I’ll have to find a different way, am I missing something (I hope I’m not doing something stupid with syntax) or both and I’m miss-using the segment method?
As a layout…
Templates
header
page1
page2
both page1 and page2 embed header and both have weblog calls outside of the embed (i.e. the begin/close of the call does not contain the embed syntax). header has a weblog call as well.
On page1 list of entries are generated, header is fully rendered. If you click on an entry, you are sent to site/page2/title, where title is the title of entry clicked. The called page2 renders everything but header; the portion between the header‘s weblog query. Going to just site/page2, header and the rest of page2 is fully rendered.
TIA
EE 1.6.8