EllisLab Community Forums http://ellislab.com/forums/ EllisLab Community Forums en Copyright 2013 2013-05-23T11:42:29-05:00 Multiple layouts for same channel content? http://ellislab.com/forums/viewthread/235518/ http://ellislab.com/forums/viewthread/235518/#When:15:41:05Z <p>Hey, I was wondering if maybe someone had experience, or at least an answer, to something I was looking to do. Basically, I was looking to create multiple templates for content from the same channel. So for example in a news or blog channel that has regularly posted editorial entries a person can select from multiple layout options, ideally in such a way where fields are contextual to the layout selected. Then I assume on the front end templates you’d simply build out a logic statement to check the layout chosen and render the content as defined for that selection.</p> <p>I saw an addon by Booyant / The Outfit called Better Pages (<a href="http://fromtheoutfit.com/better-pages">http://fromtheoutfit.com/better-pages</a>) that seems to do this, but since I don’t have experience with either this or using the pages module, I wasn’t sure if I was misunderstanding.</p> <p>Anyone ever do something like this before?</p> <p>Thank you in advance for suggestions and help.</p> 2013-05-20T15:41:05-05:00 A silly CSS issue http://ellislab.com/forums/viewthread/235608/ http://ellislab.com/forums/viewthread/235608/#When:11:20:05Z <p>I’m running into a silly CSS issue with ExpressionEngine.&nbsp; I’ve got a clean install of EE 2.6.1, and I have a very basic page on which I’m attempting to include a CSS template I made called:</p> <p>includes/site_css</p> <p>I do that via:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">link&nbsp;rel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"stylesheet"&nbsp;</span><span style="color: #f5f8cc">type</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"text/css"&nbsp;</span><span style="color: #f5f8cc">href</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{stylesheet='includes/site_css'}"&nbsp;</span><span style="color: #91f291">/&gt;&nbsp;</span> </span> </code></div> <p>The code that ends up spitting out when viewing the page source is:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">link&nbsp;rel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"stylesheet"&nbsp;</span><span style="color: #f5f8cc">type</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"text/css"&nbsp;</span><span style="color: #f5f8cc">href</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"http://www.codewhore.com/index.php?css=includes/site_css.v.1369319982"&nbsp;</span><span style="color: #91f291">/&gt;&nbsp;</span> </span> </code></div> <p>Which is a valid URL to my CSS template.&nbsp; The only problem is, the CSS doesn’t seem to be included, none of the custom styles defined therein are available.</p> <p>If I take the contents of that CSS template, save it out to a file, and included it via:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">link&nbsp;rel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"stylesheet"&nbsp;</span><span style="color: #f5f8cc">type</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"text/css"&nbsp;</span><span style="color: #f5f8cc">href</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"/site/css/sop.css"&nbsp;</span><span style="color: #91f291">/&gt;&nbsp;</span> </span> </code></div> <p>...then it all works.&nbsp; However, I’d like to have the site CSS kept in EE if at all possible.&nbsp; This seems so basic, that I must be missing something simple.&nbsp; Help?</p> 2013-05-23T11:20:05-05:00 [Updated] Plugin: Custom Member data, forum usage, and category name translation http://ellislab.com/forums/viewthread/58197/ http://ellislab.com/forums/viewthread/58197/#When:21:03:17Z <p>I’ve updated my Va_custom_member plugin to version 2.0, with major new functionality.&nbsp; </p> <p>&nbsp; &nbsp; &nbsp; The Va_custom_member Plugin has three main functions.&nbsp; First, it outputs the contents of one custom member data field—useful for including inside a weblog:entries tag, for instance. Or a forum template….<br /> &nbsp; &nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; Second, It also allows for dynamically selecting categories based on the contents of member custom data.&nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; Third, it will translate a category name into a category id.&nbsp; Useful for weblog entry tags. </p> <p>To install:&nbsp; expand the download and drop the file in your system/plugin folder.&nbsp; It’s now available for use.&nbsp; You can read the instructions in your admin page/ utilities page and then the plugin manager.&nbsp; <br /> Full instructions are in the plugin page once installed.&nbsp; </p> <p>Here’s a summary of what this plugin does:</p> <p>1) First usage</p> <p>This plugin allows the contents of a member’s custom data field to be output.&nbsp; In a single tag, not a tag pair.&nbsp; This can be anywhere, in any template.&nbsp; That’s right, you can use this in a forum template, too.&nbsp; Ever wish you could output each poster’s custom field on their post?&nbsp; You can now.&nbsp; I’ve included explicit instructions on how to do that as well.&nbsp; </p> <p>2) <br /> This plugin allows you to dynamically select a category based on an equivalent custom member field.&nbsp; In other words, each member’s custom data can control what category your weblog entries field runs.&nbsp; </p> <p>Consider the value of a category.&nbsp; It’s useful, for sure… but how can you tie a category to each member dynamically?&nbsp; With this function, you can, say, get a list of teams as a category.&nbsp; For instance, lets say you have a weblog that has team news for every NFL team.&nbsp; You can create a category, with each NFL team as a separate category.&nbsp; You can ALSO create the exact same list for a drop-down in the member profile field, as a custom member data field.&nbsp; Members can then select the team they are a fan of.&nbsp; With this function, you can then in your weblog entries tag dynamically assign the category you want displayed based on what team the member chose in their custom member field.&nbsp; <br /> &nbsp; &nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; Example: Your site has news about professional American football.&nbsp; You’ve set up a category group with the names of each professional football team as it’s own category.&nbsp; You also set up a custom member field that is a drop down list; each line of the list is the same name as the category you’ve chosen.&nbsp; One member of your site is a fan of the football team Chicago Bears.&nbsp; They have selected the Bears in their member custom profile data.&nbsp; In your weblog, you have a category for each team name.&nbsp; You have a story for the Bears.&nbsp; With this function, when your member that’s a Bears fan visits this template with this weblog entries, this plugin will generate the category that corresponds to the Bears, based on the members custom data.&nbsp; The category is only the Bears, and the weblog tag only shows the Bears category.&nbsp; The next member is a New York Giants fan, and THEY have a category that corresponds to the New York Giants.<br /> &nbsp; &nbsp; &nbsp; <br /> &nbsp; &nbsp; &nbsp; This opens up lots of possibilities, clearly.<br /> &nbsp; &nbsp; &nbsp; <br /> 3)</p> <p>Third usage: Category name to category ID translation (thanks, Lisa, for the suggestion!)</p> <p>Your weblog entries tags have to have a category ID to govern category displays, right?&nbsp; Which sucks if you are using category URL names, but on one page you want this to be different.&nbsp; This plugin also will translate your category name into a category ID for the weblog entries tag.&nbsp; It also means you can use any segment of your URL as the category name… or even if the category name feature is turned off, you can still use it sporadically with this plugin.&nbsp; Can be useful sometimes.&nbsp; </p> <p>I hope this plugin is useful—I think it opens up a powerful set of possibilities for category and member data synchronization, plus forum customization.&nbsp; It’s my first plugin, so I hope I’ve done things right… and let me know, please, of the no doubt numerous errors there are in here.&nbsp; Thanks!</p> <p>Edit: Added a EE 2 version.&nbsp; Completely untested for the moment, it will no doubt be updated.</p> 2007-08-08T21:03:17-05:00 Channel Calendar | Spanning across multiple dates http://ellislab.com/forums/viewthread/235558/ http://ellislab.com/forums/viewthread/235558/#When:04:38:58Z <p>I’m looking to use the <a href="http://ellislab.com/expressionengine/user-guide/modules/channel/calendar.html">Channel Calendar tag </a> for displaying activities.<br /> These activities have a start date and end date, which are automatically copied to <em>Entry Date</em> and <em>Expiration Date</em> respectively (by <a href="http://devot-ee.com/add-ons/eevent-helper">EEvent Helper</a>).</p> <p>There is only one problem is that these activities can span across multiple dates and the Channel Calendar tag only shows the entry on the date of its <em>Entry Date</em>, while I want them to appear on all the days between the <em>Entry Date</em> and <em>Expiration Date</em>. Is there a way to accomplish this?</p> <p>I already tried using an invalid channel in the calendar tag and retrieving the activities with a <a href="http://ellislab.com/expressionengine/user-guide/modules/channel/channel_entries.html">Channel Entries</a> (and a bit of help from <a href="http://devot-ee.com/add-ons/stash">Stash</a>), but here I encountered the same problem. (Activities are only shown on the first date)</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">calendar&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"none"</span><span style="color: #f5f8cc">}<br />&nbsp;&nbsp;{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">stash</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">calendar_date}{date&nbsp;format</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"%Y-%m"</span><span style="color: #f5f8cc">}{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">stash</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">calendar_date}<br />&nbsp;&nbsp;{calendar_rows}<br />&nbsp;&nbsp;&nbsp;&nbsp;{if&nbsp;not_entries}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{day_number}&nbsp;</span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">br</span><span style="color: #91f291">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"activity"&nbsp;</span><span style="color: #f5f8cc">dynamic</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"no"&nbsp;</span><span style="color: #f5f8cc">parse</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"inward"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">start_on</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{exp:stash:calendar_date}-{day_number}&nbsp;0:00"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">stop_before</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{exp:stash:calendar_date}-{day_number}&nbsp;23:59"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">show_expired</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"yes"&nbsp;</span><span style="color: #f5f8cc">show_future_entries</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"yes"</span><span style="color: #f5f8cc">}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{title}&nbsp;</span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">br</span><span style="color: #91f291">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">hr</span><span style="color: #91f291">/&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">if}<br />&nbsp;&nbsp;{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">calendar_rows}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">calendar}&nbsp;</span> </span> </code></div><p><span style="font-size:9px;">I left out most of the code that wasn’t necessary for this example and used very simple mark-up instead</span></p> <p><strong>TDLR: How to make a calendar which displays all active entries on each date</strong></p> 2013-05-22T04:38:58-05:00 Relationship List with headers http://ellislab.com/forums/viewthread/235552/ http://ellislab.com/forums/viewthread/235552/#When:22:45:06Z <p>Hey Everyone,</p> <p>I’m struggling a bit trying to create a list of entries with relationships.</p> <p>My client is a home developer and they would like a list of their communities that are separated by the quadrant they exist in. For example:</p> <p><strong>North West<br /> Community Name<br /> Community Name</p> <p>South<br /> Community Name</p> <p>West<br /> Community Name</strong></p> <p>I’m not having any issues creating list. The problem I’m having is: when there isn’t a community related to a quadrant I don’t want the Quadrant title to show and I’m finding it difficult to find a solution. </p> <p>Here is a sample of my code:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"quadrants"&nbsp;</span><span style="color: #f5f8cc">site</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"home"</span><span style="color: #f5f8cc">}<br />&nbsp;&nbsp;{if&nbsp;parents</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">no_results}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">h2</span><span style="color: #91f291">&gt;</span><span style="color: #f5f8cc">{quadrant_title}</span><span style="color: #91f291">&lt;/</span><span style="color: #f5f8cc">h2</span><span style="color: #91f291">&gt;<br />&nbsp;&nbsp;</span><span style="color: #f5f8cc">{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">if}<br />&nbsp;&nbsp;{parents&nbsp;field</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"quadrant"</span><span style="color: #f5f8cc">}<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">a&nbsp;href</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{path=communities/details/{parents:url_title}}"</span><span style="color: #91f291">&gt;</span><span style="color: #f5f8cc">{parents</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">community_title}</span><span style="color: #91f291">&lt;/</span><span style="color: #f5f8cc">a</span><span style="color: #91f291">&gt;&lt;</span><span style="color: #f5f8cc">br</span><span style="color: #91f291">&gt;<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #f5f8cc">{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">parents}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries}&nbsp;</span> </span> </code></div> <p>Right now the conditional is showing all Quadrant titles that currently <em>don’t</em> have a community attached and I would like it to do the opposite.</p> <p>I realize this is probably pretty simple but I’ve been banging my head against it for too long now. Any help would be greatly appreciated.</p> <p>Thanks All!</p> 2013-05-21T22:45:06-05:00 Bug: custom_profile_data and file fieldtype in relationships http://ellislab.com/forums/viewthread/235571/ http://ellislab.com/forums/viewthread/235571/#When:09:02:35Z <p>Just been trying to setup a system where the user inputs a code on registration and then the information in the system is tailored to this code. Because of this I needed to do something like:</p> <p>{if {member_code} == {company_code}}</p> <p>Member code being the code entered on registration, the company code is the company they get assigned to if the codes match.</p> <p>My idea was to do the following:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"company"&nbsp;</span><span style="color: #f5f8cc">dynamic</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"no"</span><span style="color: #f5f8cc">}<br />{if&nbsp;{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}{member_code}{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}&nbsp;</span><span style="color: #91f291">==&nbsp;</span><span style="color: #f5f8cc">{company_code}}<br />{title}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">if}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries}&nbsp;</span> </span> </code></div> <p>This didn’t work however putting the custom_profile_data tag around entries does:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}<br />{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"company"&nbsp;</span><span style="color: #f5f8cc">dynamic</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"no"</span><span style="color: #f5f8cc">}<br />{if&nbsp;{member_code}&nbsp;</span><span style="color: #91f291">==&nbsp;</span><span style="color: #f5f8cc">{company_code}}<br />{title}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">if}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}&nbsp;</span> </span> </code></div> <p>However then for some strange reason file urls won’t work for relationships, the title is output as the filename and the url won’t work at all:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}<br />{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"company"&nbsp;</span><span style="color: #f5f8cc">dynamic</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"no"</span><span style="color: #f5f8cc">}<br />{if&nbsp;{member_code}&nbsp;</span><span style="color: #91f291">==&nbsp;</span><span style="color: #f5f8cc">{company_code}}<br />{title}<br />{company_prizes}<br />{company_prizes</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">prize_image}<br /></span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">img&nbsp;src</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{url}"&nbsp;</span><span style="color: #f5f8cc">alt</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{title}"&nbsp;</span><span style="color: #91f291">class=</span><span style="color: #FFFFFF">"prize-image"&nbsp;</span><span style="color: #f5f8cc">height</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"140"&nbsp;</span><span style="color: #f5f8cc">width</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"140"&nbsp;</span><span style="color: #91f291">/&gt;<br /></span><span style="color: #f5f8cc">{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">company_prizes</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">prize_image}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">company_prizes}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">if}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}&nbsp;</span> </span> </code></div> <p>I’ve had to resort to something along the lines of:</p> <div class="codeblock"><code><span style="color: #000000"> <span style="color: #f5f8cc">{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}<br />{exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries&nbsp;channel</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"company"&nbsp;</span><span style="color: #f5f8cc">dynamic</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"no"</span><span style="color: #f5f8cc">}<br />{if&nbsp;{member_code}&nbsp;</span><span style="color: #91f291">==&nbsp;</span><span style="color: #f5f8cc">{company_code}}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">member</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">custom_profile_data}<br />{title}<br />{company_prizes}<br />{company_prizes</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">prize_image}<br /></span><span style="color: #91f291">&lt;</span><span style="color: #f5f8cc">img&nbsp;src</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{url}"&nbsp;</span><span style="color: #f5f8cc">alt</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"{title}"&nbsp;</span><span style="color: #91f291">class=</span><span style="color: #FFFFFF">"prize-image"&nbsp;</span><span style="color: #f5f8cc">height</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"140"&nbsp;</span><span style="color: #f5f8cc">width</span><span style="color: #91f291">=</span><span style="color: #FFFFFF">"140"&nbsp;</span><span style="color: #91f291">/&gt;<br /></span><span style="color: #f5f8cc">{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">company_prizes</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">prize_image}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">company_prizes}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">if}<br />{</span><span style="color: #91f291">/</span><span style="color: #f5f8cc">exp</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">channel</span><span style="color: #91f291">:</span><span style="color: #f5f8cc">entries}&nbsp;</span> </span> </code></div> <p>Which is pretty nasty looking code!<br /> </code></p> <p>&nbsp;</p> 2013-05-22T09:02:35-05:00 Safecracker Set Session Variable Upon Submit http://ellislab.com/forums/viewthread/233248/ http://ellislab.com/forums/viewthread/233248/#When:10:31:31Z <p>I am using SafeCracker to allow guests to post an entry, and upon submitting said entry are forwarded to another page allowing them to watch a video. I have the <a href="http://www.putyourlightson.net/session-variables-plugin/docs">Session Variables Plugin</a>, but need to somehow set a Session Variable upon the SafeCracker form being submitted. This would then expire after a specific amount of time so the user cannot come back and view the video again without filling out the form once more.</p> <p>Is there a way to set this session variable (unique to each submission) when the form is submitted?</p> 2013-02-11T10:31:31-05:00 MSM tag for list of the sites http://ellislab.com/forums/viewthread/235526/ http://ellislab.com/forums/viewthread/235526/#When:05:38:32Z <p>Hi,<br /> is there a tag to fetch all the sites installed on msm module?</p> <p>Thanks<br /> R</p> 2013-05-21T05:38:32-05:00 Importing content directly to EE channels http://ellislab.com/forums/viewthread/235520/ http://ellislab.com/forums/viewthread/235520/#When:19:31:45Z <p>I’m doing a port of a Drupal 7 to EE and have successfully created views in a clone of the Drupal DB and all the data fields. I’ve already created my new channels and added the fields to the fresh EE install. So it is ready to receive new entires for each channel.</p> <p>Can anyone explain to which tables in the ee schema correspond my channels and channels fields so I can just insert the drupal data accordingly under scripted control? In the abstract of course, I realize you don’t know the names of my tables nor in theory shoudl you have to. I presume EE generates tables, columns, etc following some pattern like Drupal did. e.g. drupal had a content_type_pressrelease table for their analog to a channel, and then had columns in that table that corresponded to the custom fields I added.</p> <p>Thanks.</p> 2013-05-20T19:31:45-05:00 Deprecated tags? http://ellislab.com/forums/viewthread/235514/ http://ellislab.com/forums/viewthread/235514/#When:13:25:31Z <p>I’m refining a syntax highlighting package for proper highlighting of EE code, and am in need of a definitive list of EE tags that are now deprecated or eliminated. Does such a thing exist?</p> <p>For example, these appear to be deprecated:</p> <p> {exp:channel:entry_form}<br /> {/exp:channel:entry_form}<br /> {display_custom_fields}</p> <p>But what about:</p> <p> {if allow_localization}<br /> {if edited}<br /> {if pulldown}<br /> {if message}<br /> {if ignore}<br /> {if attachments}</p> <p>Im sure there are many others but I can’t find a round-up of them all.</p> 2013-05-20T13:25:31-05:00