Hot answers tagged

7

Install the Streeng plugin. Perform common operations on strings. Change case, truncate, find/replace, repeat, encode/decode, generate slugs and more. One of the parameter options is capitalize="yes" which lets you capitalize the first character of the string.


6

CE String is another great option. CE String is a string manipulation tool for use in your ExpressionEngine templates. It is feature-packed, and allows you to manipulate strings (text) with very simple syntax. You would just do: {exp:ce_str:ing strtoupper}{segment_2}{/exp:ce_str:ing} CE String has tons of other useful methods. And the chaining feature ...


5

You should be able to use an available plugin to encode things for URLs. I haven't tried or used this plugin, but I think the syntax would be something like this: <a href="{mailto_email}?subject={exp:url_encoder method='rawurlencode'}{title}{/exp:url_encoder}" target="blank"> As a last resort, you could also use PHP and run rawurlencode() on it, like ...


3

There is no way within EE to italicise elements within a title string. If you are looking to change the style of a word according to some pattern - e.g. to italicise the first word of the title regardless of what it says, or to italicise any use of the word "something" when ever it appears you would need to modify your site's CSS (and possibly add ...


3

Finally resolved this. On a whim I decided to try the URL /en and that had the same effect too so that meant it had to be language related, with the original problem being with 'de'. In my htaccess, which is where I started in the first place, I found a reference to a multi-lingual snippet, which included en|fr|es and wouldn't you know it....de. Removing ...


3

As per your comments, you've already figured out the rather large annoyance of needing to pass all pre-existing fields with the save_entry function or else having them wiped out. I wanted to post an answer here though because there are a couple considerations I've come across when doing entry updates with my add-ons: 1) If you do not need the update to ...


2

One way to do this. You add a grid field for the heading value, then when you input data ensure that field is only present in the first row of a group. The template code would then go something like this: Lets say your grid name is sport_grid, and the grid has two field, grid_heading and grid_item {sport_grid} {if sport_grid:sport_heading}<h1>{...


2

Pop the following in your header: {exp:seo_lite entry_id="{structure:page:entry_id}"} If you do not add a title into the SEO Lite title field, the entry title will be used for the title meta tag. If you do add a title into the SEO Lite title field, that will be used.


2

Title Master will do the job. Among other benefits such as being able to pre-populate or hide the Title field altogether you also have the option to reduce the default 100 character limit.


2

I had the same issue and created an accessory to rewrite the title tag using JavaScript. its not the best solution but it did the job. Maybe you could build on it to make it better. Follow the instructions here for creating an accessory and add this code as the set_sections. function set_sections() { $meta_title = implode(" | ", array_filter(array($this-...


2

You can't have a exp:channel:entries tag inside itself, from your comment above it looks like you're using relationships. You should be using the appropriate tags to pull in the related entries. Replace relationship_field with your actual relationship field_name {exp:channel:entries channel="aop" disable="pagination|categories|member_data" dynamic="no"} <...


1

Try using the attr_safe modifier on your tag (where the value is generated, not the layout tag) - https://docs.expressionengine.com/latest/templates/variable-modifiers.html#attr_safe - that will convert special characters to HTML entities which should work.


1

According to the blurb for MX Title it can combine a combination of elements to achieve that: For patterns you can used any of exist EE2 tags (category, all custom fields, plug-ins etc.) successfully tested with EE 2.9.2 You will have to then require all your custom fields but it should work. What did you actually try?


1

EE will do this automatically if you publish an entry with a title already in that channel.


1

You would simply use {url_title} within your entries loop. {exp:channel:entries channel="videos" search:category="some_category"} <span>{title}<span> <a href="www.domain.com/videos/{url_title}"></a> {/exp:channel:entries} In light of new information... If the field is a relationship or Playa field you can access the URL title by ...


1

Only had a very very quick look at this one and admittedly being very very naughty haven't tried the code out but noticed that you have a cache set. Did you by any chance load the page when you only had the one entry and then tried again before the cache had refreshed perhaps? Just a quick thought though.


1

Try next code: {exp:channel:entries channel="filme" orderby="title" sort="asc" dynamic="off" limit="1000"} <?php mb_internal_encoding ("utf-8"); $letter = mb_strtoupper((mb_substr('{title}', 0, 1))); if (!in_array($letter, $temp)) { echo "<a href='$letter'>".$letter."</a>"; $temp[] = $letter; } ?> {/exp:channel:entries}


1

Here are a couple ways you can start to debug this: 1) Look at the rendered HTML source (view source after the page is loaded). What do you see for the title tag? Including this in your original question will probably help you get a better answer. 2) Run the HTML source through an HTML validator and see if there are any errors.


1

assign_variable has been replaced in EE with preload_replace in EE2! It's only assigning the var, it's not calling it. I would suggest reading how EE works http://ellislab.com/expressionengine/user-guide/how_to/building_a_simple_news_site.html


1

Looks like it should work at a quick glance. Since it seems that the Channel Search might not work with Title, I think your 2 options are create a new field for Product Name or you can write your own mysql query / plugin to do the search for you.


1

This plugin doesn't support Structure i don't think, but it still works for making titles longer. http://devot-ee.com/add-ons/mx-title-control. The Title Master plugin looks to be no longer supported. Just adding this info for future searchers.


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