Amplify Amplify your take on things.  Join Jason Loftis on Amplify

Jason Loftis | My Amplog

Things I Amplify from the web

EE Docs - Date Variable Formatting

Amplifyd from expressionengine.com
ExpressionEngine User Guide

Date Variable Formatting

NOTE: Please note that these examples are to show how the date formatting codes are used in the format parameter that is used in a number of different ExpressionEngine variables.

Many of the tags you’ll use in your templates contain variables designed to display dates and times.  These variables can be formatted so that the date appears in a manner you wish. Here is an example of a typical “date type” tag:

{date format=”%F %d %Y”}

The “format” parameter enables you to format the date using the Date Formatting Codes listed below. Each code letter is always preceded by a percent sign.  The example above would be rendered like this:

January 15 2006

You are allowed to use any character you want within the format parameter, except a percent sign. For example, this:

{current_time format=”%D, %F %d, %Y - %g:%i:%s”}

Would be rendered like this:

Mon, January 15, 2006 - 10:23:45Read more at expressionengine.com
 

EE Tutorial - Dynamic CSS Highlighting

Amplifyd from www.31three.com

Dynamic CSS Navigation Highlighting with Expression Engine

Here’s a little trick I’ve been using with Expression Engine to get my category menus to auto highlight.

<html>
<head>
<style type=”text/css”>
          
   #Nav #NavList{segment_3} {
       background-color: #eee;
       color: #3F7E86;
    }
</style>
</head>

<body>

<ul id=”Nav”>
{exp:weblog:categories weblog=”play” style=”linear”}
<li>
   <a href=”http://www.31three.com/” id=”NavListC{category_id}”>{category_name}</a>
</li>
{/exp:weblog:categories}
</ul> 
       
</body>
</html>

I’ve stripped it down to the minimum to make it easier to dissect. The two main things that you need to be looking at are the {segment_3} variable in the css and {category_id} in the id selector. The {segment_3} variable will get replaced with whatever is in the third segment of your url. So if we were to use the example url of…

http://www.31three.com/go/demo/category_highlight/C10

Read more at www.31three.com
 

EE Tutorial - Dynamic Titles

Amplifyd from veerle.duoh.com
 

EE Docs - URL Segment Variables

Amplifyd from expressionengine.com
ExpressionEngine User Guide

URL Segment Variables

ExpressionEngine provides an easy way for you to access the information in your URL segments.  By “segments”, we mean the segments of the URL that appear after your index.php page.  For example, this URL has two segments:

http://www.example.com/index.php/products/shirts/

products is Segment 1 and shirts is segment 2

If needed, you could access the values of either of those segments using these variables in your templates:

{segment_1} or {segment_2}.

Up to 9 URL segments can be accessed using the following variables:

{segment_1}
{segment_2}
{segment_3}
{segment_4}
{segment_5}
{segment_6}
{segment_7}
{segment_8}
{segment_9}

Segment variables let you dynamically change aspects of your templates based on what appears in the URL.

Read more at expressionengine.com
 

EE Tutorial - FieldFrame

Amplifyd from trevordavis.net

Create a Newsletter with ExpressionEngine & FieldFrame

I guess it is time to come back from my little hiatus to actually write a blog post. I recently moved, so I have been busy with getting settled and working on freelance projects as well. If you follow me on Twitter, you may have noticed that I have recently become obsessed with ExpressionEngine. I completed a project at work using it, and I realized that I could have done something much more efficiently.

View Demo

I had to create an “online newsletter” that had issues that were made up of multiple articles. I ended up creating two separate weblogs: one for each issue, and one for individual articles. In the issues weblog, there was a Playa custom field which could be used to pick the individual articles to be published in that issue. But, another one of Brandon Kelly’s fabulous extensions, FieldFrame, seems to be a much better choice for creating this functionality.

Read more at trevordavis.net
 

EE Tutorial - Playa

Amplifyd from ee-developer.com
EE Developer
Playa

In this ten-minute video tutorial, you’ll learn how to create a flexible system for arranging a variety of sidebars on any or every page in your site.

Watch the tutorial now

Note: Playa 1.3.x has since been replaced by Playa 2.x.  If you’re running 1.3.x, this tutorial will work fine.  If you’re using 2.x, you will have to modify your template code slightly, but the general principle of selecting and ordering sidebars is exactly the same.Read more at ee-developer.com
 

EE Tutorial - Custom Fields 2

Amplifyd from www.bkdesign.ca

Custom Fields Related Entries

In the previous tutorial I covered using the field type related entries for the gallery. Here we relate to a weblog, and introduce two extensions: Multi Related.

Related entries is a very powerful method to include content from other weblogs or galleries in your post. It gives a drop down list of all the articles in the entry it is related to.
Below is the code for a field named “fieldname” where I am pulling in information from a separate weblog which I want to include in my article.
The id parameter is the name of your custom field.

{related_entries id=“fieldname”}
<a href=”{title_permalink=“templategroup/template}”> {title} </a> <br / >
{summary}
{/related_entries}

Once one is inside the related entries tag, any or all fields in that weblog entry can be displayed. Above I used the title, linked to the article, and included the summary field. EE docs-related entries

Read more at www.bkdesign.ca
 

EE Tutorial - Custom Fields 1

Amplifyd from www.bkdesign.ca

Custom Fields

ExpressionEngine has custom fields built right in to the system, no plugins needed. Also one can create as many custom field groups and fields as wanted for different areas of their site to customize the data entered. The data in the fields are also given their own field in the database making custom database queries simple and easy, and making searches by fieldname possible.

Few realize how powerful this is. One can create new field groups and associate each to a different weblog, and we have the makings of a custom CMS that will outperform anything on the market. The combination of field data having their own rows in the database, unlimited field capability, use of the query module or php in the templates, and the use of conditionals allows for unlimited customizations of content and puts EE over the top as CMS

Read more at www.bkdesign.ca
 

EE Tutorial - Custom Fields 3

Amplifyd from www.bkdesign.ca

Custom Fields in EE - File

image There is an extension for EE by Mark Huot (one of many he has done, all excellent!) that adds an extra custom field option to the standard ones. File. Simple name - multiple purpose - all to make your life easier. When one sets file as a custom field type you also set the directory to upload to. A custom field to upload files, resize images automatically, (size can be set), and have uploaded files organized by folder. It also has multiple files upload capability. (File_ext field in below images, click for larger view).

image One can use the built in file upload settings to use this as a custom field. Here I made a separate upload directory just for mp3’s and can upload right from here before saving the entry. (It works after as well.)
image Notice that as soon as a file is picked, another window opens! One can upload a series of files all at once, good for a series of files or images included into an article using the field name as a tag in your template.
Read more at www.bkdesign.ca
 

EE Tutorial - Relationships

Amplifyd from www.train-ee.com

Relationships in ExpressionEngine

Relationships are hard, aren’t they?  I mean - not only do you have to figure them out in your offline face to face world, then you sit down to learn them in ExpressionEngine and they’re still difficult.

This 49 minute screencast can’t help you earn stripes from a manager running your workteam like an Army platoon nor can it help you deal with that coworker who keeps stealing your lunch from the shared fridge. 

What this screencast can do is give you a complete education around ExpressionEngine relationships - from defining what they are, to looking at specific types, to comparing relationships to categories, to working with EE’s native relationship capabilities, and then working with two of the leading 3rd party relationship extensions (Playa from Brandon Kelly and Related Entries from Solspace). 

Read more at www.train-ee.com