Published by Mijingo

tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Variable”

Add a {last_segment} global variable

Posted on June 28, 2010 by Erik Reagan

IMPORTANT UPDATE:
EllisLab has added an official {last_segment} tag as of EE 2.1.1. See info here: http://expressionengine.com/blog/entry/2.1.1_release_what_will_be_there_what_will_not/

—-

Sometimes it is quite handy to pull in the last segment of a URI. EE makes it easy to grab the first segment

Read this tip

Add a dynamic page_uri global variable

Posted on April 14, 2010 by Erik Reagan

For some strange and odd reason, there is no full page_uri global variable built in to EE (that I’ve found at least). You can access each segment with segment variables but there’s not a way to get everything after your domain. We can easily add one by opening our path.php file and adding a global

Read this tip

Quickly test scalability

Posted on June 02, 2009 by jacobgraf

While building a site, I frequently need to add dummy text to test how my site will scale when a user enters a big chunk of text. Instead of constantly heading to http://www.lipsum.com/ to grab some text, copy and paste it into my site and test it out, whenever I create a site, I always create a

Read this tip

Embedding solves a lot of issues

Posted on May 29, 2009 by Kelsey Martens

If you ever have trouble parsing data, or if you’re dealing with variable collisions (usually encountered when using Addons within other module tags), consider using an embed. smile

For example, if I want to place some code from the Favorites module inside the {exp:weblog:entries} loop, certain

Read this tip

Search EE Insider Tips
Sponsored By