12

Sounds like the field's settings have gotten mixed up at some point. I'd try switching the field to "XHTML" formatting, and select the option to "Update all existing channel entries with your new formatting choice?". Once that's done, then switch back to "None" formatting and update all existing again. Hopefully that will resolve for you.


7

Looks like you were missing the relationship tag pair for your person field. Try this: <Videos> {exp:channel:entries channel="videos"} {person} <Video> <Subject>{person:title}</Subject> <Facts> {person:facts} <Fact>{person:facts:fact}</Fact> {/person:facts} ...


6

It looks like you found a bug, Sean, sorry you got bitten by it. I've reported it and posted a fix here: https://support.ellislab.com/bugs/detail/19871


6

Conditionals based on URL Segments is how I would handle this. For your example, I would have in my books/chapters a conditional like {if segment_2 == "summary"} {embed="embeds/summary_code"} {/if} I'd use an embed just to keep the template cleaner — instances where I do this do tend to be on more complex site where I like keeping things as clean as ...


5

This is as a result of the Strict URLs feature being enabled by default in EE2.6+ (previously it was opt-in, now it's opt-out). If you want the old behaviour back you can change it in Global Template Preferences


5

Are you looking for something as straightforward as this? <html id="template-{segment_1}-{if segment_2 != ''}{segment_2}{if:else}index{/if}"> Ah, I see you are wanting embeds as well. Here is a very simple plugin that will output some metadata for the template that is currently being processed. <?php if ( ! defined('BASEPATH')) exit('No direct ...


5

The reason you do not have access to that variable outside the loop is because your stash tags (getters and setters) are not parsed at the same time. EE module tags are parsed recursively from the outwards inwards, peeling them one after another like a oignon. In your code above, your stash set tags are inside an entry loop (level 2), while your get tag is ...


5

Documentation is a good place to start: http://ellislab.com/expressionengine/user-guide/templates/globals/single_variables.html http://ellislab.com/expressionengine/user-guide/modules/member/index.html#custom-profile-data-tag {member_group} or {group_id} {member_id} also (if in channel:entries tag pair and don't want conflict): {logged_in_member_id} {...


5

To extend Robson's answer, I've just been implementing this myself in the past few hours!: MX Mobile Detect and on Devotee I could simply detect which device it is (e.g. ipad, iPhone, blackberry, etc), but that's too specific for my needs. I just want to detect the different sizes of device so I can drop smaller images... So, in addition to my JS ...


5

From what I saw in a comment from Mark Croxton here: http://devot-ee.com/add-ons/support/stash/viewthread/8717 EE tries to cache tags that are used multiple times within the same template. To get around this, there's a "random" keyword that EE looks for that will cause it to use a separate marker for this tag (causing the tag to parse twice) The problem ...


5

I'm guessing it's just the way your templates are set up. Is your template group called feed.group? And the template itself called feed.xml? If that's the case it will need to be accessed at http://example.com/feed/feed. Or you can change your RSS template to be feed.group/index.xml so you can access it at http://example.com/feed as desired. If this misses ...


5

Under Members -> Preferences in the control panel, you can set the Profile Triggering Word (see docs) to % which will make them completely inaccessible from the frontend. Another technique is to configure it randomly in the config.php like this: $config['profile_trigger'] = rand(0,time());


5

For times where the Channel module is overkill, or the random bits of editable content don't really fit the Channel mould, Low Variables is really great. It has a lot of added features beyond just making global variables easily (and safely) editable by end users. Some of the big benefits are text formatting options, custom content types for the global ...


5

Can you get the templates to render if you leave index.php in your URL? eg localhost:8040/index.php/cursos If so then it is your .htaccess. Max is right about the order of your .htaccess file. Also, you could try adding a '?' in your RewriteRule directly after index.php eg RewriteRule ^(.*)$ /index.php?/$1 [L] A fairly reliable method of removing ...


5

You can't delete index templates, so you'll have to include {redirect='404'} on those templates to force them to 404.


5

Or set a $env_global['myjs'] in the config.prod.php with the analytics code ID number and leave that var blank in the config.dev.php then just {myjs} in the template and it only outputs the ID in production.


5

You can not use Template Routes to remove index.php from your URLs. To remove index.php from you URLs you need to set up a redirect in an htaccess file, there are instructions here. Getting rid of the group name is where Template Routes comes in. Navigate to the Template Route Manager under Design ‣ Templates ‣ Template Route Manager. Locate the Route field ...


5

It looks like you moved your templates folder to outside the system folder. Since you already did it, why not move it to above the web root? Just remember to update the related settings. (see "Server path to site’s templates" at the bottom of the page) To keep all system files above the web root is good practice. Alternatively... If for some reason you ...


5

I don't think it's left that many short to be honest. Most developers I'm aware of save their templates as files. Whilst I'd always recommend having version control in place, you don't need it, you can still save templates as files without Git. As for tutorials, the Ellislab docs are pretty explicit about how it's done. The learning curve for Git isn't ...


4

Robert! First of all, let's fix your conditionals. Conditionals using numbers don't need quotation marks. From docs: If you are testing against a word, you should enclose the word in single or double-quotes. If you are testing against a number, then you do not need to use quotes. So: {if category_id == 100} Even so, this code doesn't work because {...


4

The offline template is served from the DB, which can be edited in the control panel: Design > Message Pages > Offline Template However, Custom System Messages allows you to use custom templates as system message which can parse other template tags.


4

I wouldn't say that there is a right or wrong way to go about this (as long as you keep an eye on performance bottlenecks in the template debugger, which you should be doing all the time anyway)... Whilst EE does have some built-in ways of interpreting your URLs (http://www.jamessmith.co.uk/articles/expressionengine_url_schematic) there's no reason you have ...


4

You need to add a forward slash to your assets. Change this <link rel="stylesheet" href="assets/css/style.css"> to this <link rel="stylesheet" href="/assets/css/style.css">


4

The loading of the template needs to be done as follows: $this->EE->load->library('template',null,'TMPL'); Now it works.


4

I ended up getting what I need using the jquery ajax form example shown in the docs here and using a jquery dialog box to open up an edit field if they were logged in and authorized. If all were met, an edit button shows and opens a dialog with this: // EDIT MODAL $(".editPage > a").click(function(e){ // Prevent default click ...


4

I’ve found the solution: {switch='odd|even'} needs to be namespaced so that it switches within the context of the relationship field, like so: {staff_member_groups:staff_group_members:switch='odd|even'} Otherwise, {switch='odd|even'} is going by the larger context of the entries tag that surrounds this template. For clarity, my final block of code looks ...


4

Couldn't you just use a Snippet for this? It would contain the markup and code used inside a tag, which you could re-use with multiple tags. For example: {exp:low_search:results ... } {sn_entry_list} {/exp:low_search:results} {exp:channel:entries ... } {sn_entry_list} {/exp:channel:entries} An so on.


4

When you use if else statements EE executes all the code in every statement before deciding what to output. This makes it very slow indeed. What you need is devot-ee.com/add-ons/switchee Now gimme some credits ;-)


4

By default EE looks for the category indicator in the URL, eg www.site/recipes/category/meat, then output content based on that category url title (/meat). If you don't want to use the category indicator you'll need to use the LowSeg2Cat addon http://gotolow.com/addons/low-seg2cat - you can then use one entries tag and one template for any category, simply ...


4

Yes, ExpressionEngine comments stop at the next --} that they find. It's quite irritating. The rule of thumb I use is to use HTML comments for notes about the frontend code, and ExpressionEngine comments about the EE code. That tends to eliminate the problem most of the time. Sometimes I just cut + paste blocks of code into other documents while I'm ...


Only top voted, non community-wiki answers of a minimum length are eligible