<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">ExpressionEngine User Guide &#45; User Contributed Notes</title>
    <link rel="alternate" type="text/html" href="http://expressionengine.com/user_guide/" />
    <link rel="self" type="application/atom+xml" href="http://expressionengine.com/user_guide/feed" />
    <updated>2012-05-14T15:19:22Z</updated>
    <rights>Copyright (c) 2012, EE User Guide Bot</rights>
    <generator uri="http://expressionengine.com/" version="2.2.2">ExpressionEngine</generator>
    <id>tag:expressionengine.com,2012:02:14</id>


	
	<entry>
  	<title>/installation/best_practices.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/installation/best_practices.html#14775" />
	<published>2012-05-23T22:14:03Z</published>
	<id>tag:expressionengine.com,2012:/installation/best_practices.html/44.15964.14775</id>
	<updated>2012-05-23T22:14:03Z</updated>
    <author>
          <name>R.K.Foster</name>
    </author>
	<content type="html"><![CDATA[
        <p>You might also want to change the &#8220;member&#8221; keyword trigger that is used to access member accounts and profiles. &#8220;member&#8221; is the default. Some spam attacks use that triggering word in trying to access an Expression Engine site.</p>

<p>You can change the triggering word here:<br />
Control Panel &gt; Members &gt; Preferences &gt; Profile Triggering Word</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/development/api/api_channel_fields.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/development/api/api_channel_fields.html#14750" />
	<published>2012-05-21T19:08:24Z</published>
	<id>tag:expressionengine.com,2012:/development/api/api_channel_fields.html/44.13104.14750</id>
	<updated>2012-05-21T19:08:24Z</updated>
    <author>
          <name>VIM Interactive</name>
    </author>
	<content type="html"><![CDATA[
        <p>When updating or creating channel fields the site_id is required. This is not mentioned above but is commented in Api_channel_fields.php on line 1080.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/templates/globals/stylesheet.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/templates/globals/stylesheet.html#14741" />
	<published>2012-05-21T08:59:40Z</published>
	<id>tag:expressionengine.com,2012:/templates/globals/stylesheet.html/44.9845.14741</id>
	<updated>2012-05-21T08:59:40Z</updated>
    <author>
          <name>oxford</name>
    </author>
	<content type="html"><![CDATA[
        <p>Keeping your stylesheet in EE adds the bonus of automatic css cache busting, for example: style.v.1337589627</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/channel/pagination_page.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/channel/pagination_page.html#14730" />
	<published>2012-05-20T00:26:42Z</published>
	<id>tag:expressionengine.com,2012:/modules/channel/pagination_page.html/44.10138.14730</id>
	<updated>2012-05-20T00:26:42Z</updated>
    <author>
          <name>vosSavant</name>
    </author>
	<content type="html"><![CDATA[
        <p>To clarify my previous comment&#8212;this only seems to be an issue when working with 3rd party addons such as AB Entry IDs.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/channel/pagination_page.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/channel/pagination_page.html#14729" />
	<published>2012-05-19T23:30:52Z</published>
	<id>tag:expressionengine.com,2012:/modules/channel/pagination_page.html/44.10138.14729</id>
	<updated>2012-05-19T23:30:52Z</updated>
    <author>
          <name>vosSavant</name>
    </author>
	<content type="html"><![CDATA[
        <p>If you find that pagination isn&#8217;t working, try adding the &#8220;paginate&#8221; parameter. The docs say it is optional and defaults to bottom, but I&#8217;ve found this is not necessarily the case.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/channel/entry_tracking.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/channel/entry_tracking.html#14708" />
	<published>2012-05-17T20:44:57Z</published>
	<id>tag:expressionengine.com,2012:/modules/channel/entry_tracking.html/44.10201.14708</id>
	<updated>2012-05-17T20:44:57Z</updated>
    <author>
          <name>Hop Studios</name>
    </author>
	<content type="html"><![CDATA[
        <p>You can <a href="http://expressionengine.com/user_guide/modules/channel/channel_entries.html#orderby" rel="nofollow">order by</a> these view track numbers, too:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">orderby</span><span style="color: #007700">=</span><span style="color: #DD0000">"view_count_one"&nbsp;</span>
</span>
</code></div>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/forum/other_features.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/forum/other_features.html#14681" />
	<published>2012-05-15T16:08:13Z</published>
	<id>tag:expressionengine.com,2012:/modules/forum/other_features.html/44.10303.14681</id>
	<updated>2012-05-15T16:08:13Z</updated>
    <author>
          <name>EpicVoyage</name>
    </author>
	<content type="html"><![CDATA[
        <p>As noted below, the forum template parser does have certain limitations on what it can show. We skirted the documentation and placed a forum header above the &#123;exp:forum&#125; tag in order to keep the site&#8217;s appearance consistent. Note that you should watch for certain special pages, such as the emoticons pop-up URL, if you do the same.</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;if&nbsp;segment_2&nbsp;</span><span style="color: #007700">!=&nbsp;</span><span style="color: #DD0000">'smileys'</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;</span><span style="color: #007700">!--&nbsp;</span><span style="color: #0000BB">header&nbsp;content&nbsp;here&nbsp;</span><span style="color: #007700">--</span><span style="color: #0000BB">&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;&nbsp;</span>
</span>
</code></div>

<p>Make certain that you do not display any user or channel content on that URL. If needed, move such references to embedded templates (despite the heavier performance hit) and stash the reference within an &#123;if&#125; conditional. The forums&#8217;s &#8220;Smileys&#8221; pop-up window will fail to display your smileys if you should use a tag that references them&#8212;even indirectly. For instance, the &#123;exp:user:stats&#125; tag will mess them up and give you PHP errors.</p>

<p>There is some room to play, but be warned that the consequences will be bizarre if you disregard the warnings in the docs.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/safecracker/index.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/safecracker/index.html#14667" />
	<published>2012-05-12T02:54:32Z</published>
	<id>tag:expressionengine.com,2012:/modules/safecracker/index.html/44.15956.14667</id>
	<updated>2012-05-12T02:54:32Z</updated>
    <author>
          <name>Simon Job</name>
    </author>
	<content type="html"><![CDATA[
        <p>If using the Rich Text Editor, the conditional between &#123;custom_fields&#125; is &#8220;rte&#8221;. i.e.</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;if&nbsp;rte&#125;<br />&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">textarea&nbsp;id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;field_name&#125;"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;field_name&#125;"&nbsp;</span><span style="color: #0000BB">dir</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;text_direction&#125;"&nbsp;</span><span style="color: #0000BB">rows</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;rows&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;field_data&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">textarea</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;&nbsp;</span>
</span>
</code></div>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/safecracker/examples.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/safecracker/examples.html#14657" />
	<published>2012-05-10T22:00:11Z</published>
	<id>tag:expressionengine.com,2012:/modules/safecracker/examples.html/44.16834.14657</id>
	<updated>2012-05-10T22:00:11Z</updated>
    <author>
          <name>ChiefAlchemist</name>
    </author>
	<content type="html"><![CDATA[
        <p>If you&#8217;re having problems with the AJAX example, try moving the script (doc).ready script close stuff BELOW the closing tag for safecracker.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/installation/moving.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/installation/moving.html#14604" />
	<published>2012-05-07T09:58:56Z</published>
	<id>tag:expressionengine.com,2012:/installation/moving.html/44.15965.14604</id>
	<updated>2012-05-07T09:58:56Z</updated>
    <author>
          <name>Ben @PutYourLightsOn</name>
    </author>
	<content type="html"><![CDATA[
        <p>the paths and urls can conveniently be set in the config.php file:</p>

<p>$config[&#8216;site_url&#8217;] = &#8220;http://www.mydomain.com/&#8221;;<br />
$config[&#8216;theme_folder_url&#8217;] = &#8220;http://www.mydomain.com/themes/&#8221;;<br />
$config[&#8216;theme_folder_path&#8217;] = &#8220;/path/to/themes/&#8221;;</p>

<p>upload destinations can also be set in the config.php file, see <a href="http://expressionengine.com/user_guide/general/hidden_configuration_variables.html" rel="nofollow">http://expressionengine.com/user_guide/general/hidden_configuration_variables.html</a></p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/search/results.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/search/results.html#14601" />
	<published>2012-05-06T10:07:11Z</published>
	<id>tag:expressionengine.com,2012:/modules/search/results.html/44.9901.14601</id>
	<updated>2012-05-06T10:07:11Z</updated>
    <author>
          <name>stinhambo</name>
    </author>
	<content type="html"><![CDATA[
        <p>You can also use the &#123;paginate_links&#125; variable pair for better control over the pagination styling -</p>

<p>http://expressionengine.com/user_guide/modules/channel/pagination_page.html#pagination-links</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/safecracker/index.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/safecracker/index.html#14590" />
	<published>2012-05-03T16:27:55Z</published>
	<id>tag:expressionengine.com,2012:/modules/safecracker/index.html/44.15956.14590</id>
	<updated>2012-05-03T16:27:55Z</updated>
    <author>
          <name>EpicVoyage</name>
    </author>
	<content type="html"><![CDATA[
        <p>When you need to send an administrator to the Control Panel after a submission (ie. after a fully customized entry form), the <a href="http://expressionengine.com/user_guide/modules/safecracker/index.html#return" rel="nofollow">return</a> and <a href="http://expressionengine.com/user_guide/modules/safecracker/index.html#return-x" rel="nofollow">return_x</a> parameters will accept a GET query string as long as the name and value contain only alpha-numeric, - and _ characters.</p>

<p>Good:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">/</span><span style="color: #0000BB">admin</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?</span><span style="color: #0000BB">S</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">D</span><span style="color: #007700">=</span><span style="color: #0000BB">cp</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">C</span><span style="color: #007700">=</span><span style="color: #0000BB">addons_modules</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">M</span><span style="color: #007700">=</span><span style="color: #0000BB">some_module</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">page</span><span style="color: #007700">=</span><span style="color: #0000BB">finished&nbsp;</span>
</span>
</code></div>

<p>Bad (note the period):</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">/</span><span style="color: #0000BB">admin</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?</span><span style="color: #0000BB">S</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">D</span><span style="color: #007700">=</span><span style="color: #0000BB">cp</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">C</span><span style="color: #007700">=</span><span style="color: #0000BB">addons_modules</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">M</span><span style="color: #007700">=</span><span style="color: #0000BB">some_module</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">amount</span><span style="color: #007700">=</span><span style="color: #0000BB">50.35&nbsp;</span>
</span>
</code></div>

<p>The last example will be mangled by the security filtering code (note the semi-colon):</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//www.example.com/admin.php?S=0&amp;D=cp&amp;C=addons_modules&amp;M=some_module&amp;amount;=50.35&nbsp;</span>
</span>
</code></div>

<p>If you absolutely need that period in the value (or any other character not named above), you have two options. The first is to use only a single letter as the variable name. The second is to pick a non- alpha-numeric character as the first or second letter of your variable name. Both of these will solve our problem:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">/</span><span style="color: #0000BB">admin</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?</span><span style="color: #0000BB">S</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">D</span><span style="color: #007700">=</span><span style="color: #0000BB">cp</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">C</span><span style="color: #007700">=</span><span style="color: #0000BB">addons_modules</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">M</span><span style="color: #007700">=</span><span style="color: #0000BB">some_module</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">a</span><span style="color: #007700">=</span><span style="color: #0000BB">50.35&nbsp;</span>
</span>
</code></div>
<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">/</span><span style="color: #0000BB">admin</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">?</span><span style="color: #0000BB">S</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">D</span><span style="color: #007700">=</span><span style="color: #0000BB">cp</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">C</span><span style="color: #007700">=</span><span style="color: #0000BB">addons_modules</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">M</span><span style="color: #007700">=</span><span style="color: #0000BB">some_module</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">_amount</span><span style="color: #007700">=</span><span style="color: #0000BB">50.35&nbsp;</span>
</span>
</code></div>

<p>This applies to off-site query strings as well.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/safecracker/index.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/safecracker/index.html#14564" />
	<published>2012-04-29T04:04:46Z</published>
	<id>tag:expressionengine.com,2012:/modules/safecracker/index.html/44.15956.14564</id>
	<updated>2012-04-29T04:04:46Z</updated>
    <author>
          <name>JT Thompson</name>
    </author>
	<content type="html"><![CDATA[
        <p>If you want to make a duplicate of an existing entry you can use javascript to change the hidden entry_id field to 0 and it will create a duplicate.</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">/*&nbsp;example&nbsp;duplicate&nbsp;entry&nbsp;in&nbsp;same&nbsp;channel&nbsp;using&nbsp;jQuery&nbsp;*/<br /></span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;duplicate&nbsp;code<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=entry_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>If you want to make the copy to a different channel (with an identical channel field group) you can change the hidden channel_id field.</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">/*&nbsp;example&nbsp;duplicate&nbsp;entry&nbsp;in&nbsp;different&nbsp;channel&nbsp;using&nbsp;jQuery&nbsp;*/<br /></span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;duplicate&nbsp;code<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=entry_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br />&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=channel_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">14</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>You should also change the hidden author_id field to match the user creating the entry.</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">/*&nbsp;example&nbsp;duplicate&nbsp;entry&nbsp;with&nbsp;new&nbsp;author&nbsp;using&nbsp;jQuery&nbsp;*/<br /></span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;duplicate&nbsp;code<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=entry_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br />&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=author_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">2567</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>Going one step farther to create a duplicate entry on a different website (for those using MSM with duplicate channel setups) change the hidden site_id field.</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">/*&nbsp;example&nbsp;duplicate&nbsp;entry&nbsp;in&nbsp;different&nbsp;site&nbsp;using&nbsp;jQuery&nbsp;*/<br /></span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;duplicate&nbsp;code<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=entry_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br />&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=site_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">&#125;</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>Don&#8217;t forget you will want to give the duplicate entry a new title and url_title value (a unique url_title is mandatory in most cases).</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">/*&nbsp;example&nbsp;duplicate&nbsp;entry&nbsp;with&nbsp;new&nbsp;title&nbsp;and&nbsp;url_title&nbsp;using&nbsp;jQuery&nbsp;*/<br /></span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;duplicate&nbsp;code<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'copy-of-'&nbsp;</span><span style="color: #007700">+&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">()&nbsp;);<br />&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=url_title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'copy-of-'&nbsp;</span><span style="color: #007700">+&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=url_title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">()&nbsp;);<br /></span><span style="color: #0000BB">&#125;</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>Of course you can do these things with straight javascript (no jQuery) if you&#8217;d like. Just include the scrip tags after the safecracker end tag.</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">/*&nbsp;example&nbsp;javascript&nbsp;at&nbsp;end&nbsp;of&nbsp;safecracker&nbsp;end&nbsp;tag&nbsp;using&nbsp;jQuery&nbsp;*/<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">script&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"text/javascript"</span><span style="color: #007700">&gt;<br />&lt;!--</span><span style="color: #FF8000">//<br />&nbsp;</span><span style="color: #007700">$(</span><span style="color: #0000BB">document</span><span style="color: #007700">).</span><span style="color: #0000BB">ready</span><span style="color: #007700">(function()&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;</span><span style="color: #FF8000">//&nbsp;make&nbsp;duplicate&nbsp;code<br />&nbsp;&nbsp;</span><span style="color: #007700">$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=entry_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br />&nbsp;&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=channel_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">14</span><span style="color: #007700">);<br />&nbsp;&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=author_id&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(</span><span style="color: #0000BB">2567</span><span style="color: #007700">);<br />&nbsp;&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'copy-of-'&nbsp;</span><span style="color: #007700">+&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">()&nbsp;);<br />&nbsp;&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=url_title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">'copy-of-'&nbsp;</span><span style="color: #007700">+&nbsp;$(</span><span style="color: #DD0000">'#publishForm&nbsp;input&#91;name=url_title&#93;'</span><span style="color: #007700">).</span><span style="color: #0000BB">val</span><span style="color: #007700">()&nbsp;);<br />&nbsp;</span><span style="color: #0000BB">&#125;</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">//&nbsp;End&nbsp;--&gt;<br /></span><span style="color: #0000BB">&lt;/script&gt;&nbsp;</span>
</span>
</code></div>

<p>You can use EE tags to fill in the author_id and channel_id javascript values if you want (no need to hardcode them), hope you enjoy this trick, it saved me many hours of development time.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/modules/safecracker/index.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/modules/safecracker/index.html#14555" />
	<published>2012-04-25T14:03:32Z</published>
	<id>tag:expressionengine.com,2012:/modules/safecracker/index.html/44.15956.14555</id>
	<updated>2012-04-25T14:03:32Z</updated>
    <author>
          <name>jensa</name>
    </author>
	<content type="html"><![CDATA[
        <p> Using the code from the example above will fail if used outside the &#123;custom_fields&#125; tag. Here is a correct version of a Checkbox inside a variable pair:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;options</span><span style="color: #007700">:</span><span style="color: #0000BB">my_field_name&#125;<br />&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">label&nbsp;</span><span style="color: #007700">class=</span><span style="color: #DD0000">"checkbox"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;option_value&#125;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">input&nbsp;type</span><span style="color: #007700">=</span><span style="color: #DD0000">"checkbox"&nbsp;</span><span style="color: #0000BB">id</span><span style="color: #007700">=</span><span style="color: #DD0000">"my_field_name&#91;&#93;"&nbsp;</span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"my_field_name&#91;&#93;"&nbsp;</span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;option_value&#125;"</span><span style="color: #0000BB">&#123;checked&#125;</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&lt;/</span><span style="color: #0000BB">label</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">options</span><span style="color: #007700">:</span><span style="color: #0000BB">my_field_name&#125;&nbsp;</span>
</span>
</code></div>

<p>Note that I&#8217;m using the field name directly in the code for the input (id/name) with a following square bracket. If you try to use the code above, &#123;field_name&#125; will not be parsed and you will get a &#8220;Disallowed Key Characters&#8221; error.</p>
      ]]></content>
	</entry>
	
	<entry>
  	<title>/getting_started/index.html</title>
	<link rel="alternate" type="text/html" href="/user_guide/getting_started/index.html#14533" />
	<published>2012-04-21T03:30:28Z</published>
	<id>tag:expressionengine.com,2012:/getting_started/index.html/44.9951.14533</id>
	<updated>2012-04-21T03:30:28Z</updated>
    <author>
          <name>Peccavio</name>
    </author>
	<content type="html"><![CDATA[
        <p>It might be helpful to add a reference to <a href="http://expressionengine.com/user_guide/templates/globals/url_segments.html" rel="nofollow">URL Segment Variables</a><br />
An example that displays an article and a list of articles</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;!</span><span style="color: #0000BB">DOCTYPE&nbsp;html</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">What&nbsp;is&nbsp;</span><span style="color: #007700">New&lt;/</span><span style="color: #0000BB">title</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">meta&nbsp;charset</span><span style="color: #007700">=</span><span style="color: #DD0000">"utf-8"</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">head</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">h1</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Home</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Sweet&nbsp;Home</span><span style="color: #007700">.&lt;/</span><span style="color: #0000BB">h1</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;segment_2&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">""</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Kick&nbsp;back&nbsp;</span><span style="color: #007700">and&nbsp;</span><span style="color: #0000BB">relax</span><span style="color: #007700">...&nbsp;</span><span style="color: #0000BB">you&nbsp;have&nbsp;made&nbsp;it&nbsp;home</span><span style="color: #007700">.&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;if</span><span style="color: #007700">:</span><span style="color: #0000BB">else&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;channel</span><span style="color: #007700">=</span><span style="color: #DD0000">"news"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"1"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">By&nbsp;&#123;author&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;news_body&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">The&nbsp;Latest</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">h2</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Check&nbsp;out&nbsp;the&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;path='news'&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">latest&nbsp;news</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;:&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;</span><span style="color: #0000BB">ul</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;channel</span><span style="color: #007700">=</span><span style="color: #DD0000">"news"&nbsp;</span><span style="color: #0000BB">dynamic</span><span style="color: #007700">=</span><span style="color: #DD0000">"no"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"10"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">li</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;url_title_path='news'&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">li</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">channel</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">ul</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">body</span><span style="color: #007700">&gt;<br />&lt;/</span><span style="color: #0000BB">html</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>
      ]]></content>
	</entry>
	
</feed>
