Embed Template Restrictions
Posted: 16 January 2006 03:21 PM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1192
Joined  01-05-2006

Hi,
I’m having a problem with embedded templates.  Is there any restriction on what can be included in an embedded template.

I’m embedding a template based on the third segment of the URL and then in that embedded template I’m displaying a list of weblog entries.  For example the index page looks like this:

{if segment_3}
{embed
="{my_weblog}/feature_detail"}
{if
:else}
{embed
="{my_weblog}/feature_home"}
{
/if}

and the embedded “feature_home” template looks like this

<h2>Title</h2>
{exp:weblog:entries weblog="{my_weblog}" category="83"}
{exp
:textile}
{body}
{
/exp:textile}
{
/exp:weblog:entries}

<dl>
{exp:weblog:entries weblog="{my_weblog}" category="84" orderby="title" sort="asc"}
<dt><a href="{title_permalink="{my_weblog}/features"}" title="{title}">{title}</a></dt>
{exp:textile}
<dd>{summary}</dd>
{/exp:textile}
{
/exp:weblog:entries}
</dl>

It’s very strange because in the embedded page the first entries call works great, but the second entries call doesn’t return anything.  I can’t understand it at all why one would work and one wouldn’t.  Is there a limit of one entries call when embedding templates?

Thanks
Mark

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 16 January 2006 03:26 PM   [ Ignore ]   [ # 1 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1192
Joined  01-05-2006

well i answered my own question:

dynamic="off"

I think the URL was confusing an entry title with the template, so setting this just ignores the URL entirely.  Pretty obvious now, I guess.

 Signature 

================================================
    Mark Huot
    http://markhuot.com
================================================

Profile
 
 
Posted: 05 September 2008 07:09 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  571
Joined  10-14-2005

Sometimes I think dynamic should default to off as in most scenarios that’s what I seem to use! smile

 Signature 

Nathan Pitman

Nine Four Ltd - a member of the EEPro Network

Profile
 
 
Posted: 05 September 2008 06:51 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  606
Joined  03-02-2008

Good work Mark! I bet that Mark fellow who asked the question is not even going to offer a modest “Thank you.”

That devil.

 Signature 

 
“If you love the truth, you’ll trust it - That is,
you will expect it to be good, beautiful, perfect, orderly, etc…
In the long run, not necessarily in the short run.”
- Abraham Mazlow
 
“Truth is a long-term proposition.
Honesty, day to day, is malleable.
We learn honesty by studying truth,
In all it’s nature, in all it’s hope.”
- Unknown

When posting template code or HTML, use code wrappers to highlight code in posts. Thank you!

Profile
 
 
Posted: 09 September 2008 05:34 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1485
Joined  08-28-2003
Jared Farrish - 05 September 2008 06:51 PM

Good work Mark! I bet that Mark fellow who asked the question is not even going to offer a modest “Thank you.”

That devil.

Funny. I think about half of my questions get answered by me within an hour or so of posting here. It’s probably a combination of a little extra work and all those EE brains who pour over the question and through some kind of psychic osmosis the answers are transferred back to me. The other half requires folks with bigger brains than mine.

 Signature 

RonnieMc

Honolulu, HI USA

HomeMac360

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65074 Total Logged-in Users: 34
Total Topics: 82206 Total Anonymous Users: 14
Total Replies: 441803 Total Guests: 198
Total Posts: 524009    
Members ( View Memberlist )
Newest Members:  mackskithbtggAdminempoleongwishPasha MahardikarmarkdurandomcatClutch BearingsAdil