tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Weblog”

Add rel=“nofollow” to all auto generated links in a weblog entry

Posted on February 17, 2011 by Brad Morse

File: core.typography.php, for version 1.6.x

This will add rel=“nofollow” to all of your auto generated links in weblog entries.

Line 902:

change:

$str str_replace($matches['0'][$i]'<a href="'.$bounce.trim($url).'"'.$extra.'>'.$matches['2'][$i]."</a>"$str); 

to:

$str str_replace(

Read this tip

Flexible weblog entry searching by passing URL segments.

Posted on October 07, 2009 by moogaloo

Inspired by Justin’s tip passing variables via the URL, something similar I’ve used is for an album review site to give additional search options:

a weblog for the album review may also include other info, eg label, artist, year, city, country whic you may then want to be links that take you to a

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

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

Don’t Forget the Docs!

Posted on May 12, 2009 by Erik Reagan

When creating client projects it’s very simple to overlook something like documentation. It’s important to include docs for your clients because in the long run it not only saves everyone time - but also shows an extra level of commitment and professionalism on your behalf.

Take the time to create

Read this tip

When in Doubt

Posted on May 12, 2009 by Erik Reagan

It seems a number of newbies run into the same problem when jumping into EE head first…so when in doubt:

{exp:weblog:entries weblog="my_weblog" dynamic="off"}
...
{/exp:weblog:entries} 

Search EE Insider Tips
Sponsored By