tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Entries”

How to embed weblog:entries tags

Posted on June 10, 2009 by Andy Harris

In ExpressionEngine, you cannot embed exp:weblog:entries tags. For example, this will not work:

{exp:weblog:entries weblog="parent"}
    
<h1>Title</h2>
    
{exp:weblog:entries weblog="children"}
        {details}
    {
/exp:weblog:entries}
{
/exp:weblog:entries} 

In order to make it work, you have to

Read this tip

Display entries from one weblog based on the results of another

Posted on June 09, 2009 by JonnyUK

How do you display entries from one weblog based on the results of another?

The ideal situation would be to be able to nest our weblog entry tags, similar to the following:

{exp:weblog:entries weblog="first_weblog"}
{title}
{body}

{if count 
== 1}

{exp
:weblog:entries weblog="second_weblog"}
{title}

Read this tip

Always use the disable parameter

Posted on June 02, 2009 by Trevor Davis

Take advantage of the disable parameter to improve performance. I always forget which aspects can be disabled, so I keep this snippet handy and just remove the items from the parameter as I need them.

{exp:weblog:entries weblog=””

Read this tip

Custom counter for loops that don’t support {count}

Posted on June 01, 2009 by JonnyUK

Every now and then you might come across a situation where you want to count within a loop but unfortunately the {count} variable is not available.

This is a common problem when dealing with related entries because they are cached internally causing various dynamic statistical variables such as

Read this tip

Show Entries from Logged-in User

Posted on May 28, 2009 by Ryan Irelan

If you ever need to show the entries from the currently logged-in user, it’s easiest to use the CURRENT_USER global variable than any other method.

{exp:weblog:entries weblog="foo" username="CURRENT_USER" limit="10"}
...
{/exp:weblog:entries} 

Alternately, if you don’t want to show entries from

Read this tip

Search EE Insider Tips
Sponsored By