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

I've been done this sometimes. Since this code is used just on some pages, I suggest you to not use a CSS file, but the <style> tag on the head of the HTML. This situation doesn't even worth the download of the CSS: it's one single rule to be used just on one single page. This can be an snippet: {exp:channel:entries channel="{pr_channel}"} <style&...


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

Try using {site_url} which will return the site's homepage url such as http://www.mysite.com


4

Instead of modifying CK Editor files which would likely get nuked if you update the add on you are best to make a customConfig in the Editor Configurations. Change this and save this out to where you keep your front-end templates. var typkitID = 'XXXXXX'; CKEDITOR.on( 'instanceReady', function(ev) { var $script = document.createElement('script'...


4

While use cases for it are rare, CSS templates can parse tags if you need them to, but you must link to them with {path='template_group/css_template'} instead of {stylesheet='template_group/css_template}.


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

There is a version of Minimee that will run in EE3 - you need to get it from Github rather than Devotee, and I'm not sure it is an official release, but I can confirm it works fine. https://github.com/johndwells/Minimee/tree/version3 FWIW, it also appears to work OK in EE4 HTH


3

I spent some time trying to understand what happens on your code, until I notice the variable "{child_category_end}". This variable shows that the addon Laisvunas' Child Categories doesn't use the template class of EECMS, otherwise the variables would be something like "{child_category}(...){/child_category}". I can't say for sure without to read the code ...


2

Nothing to do with Freeform or ExpressionEngine, just your CSS. 2 solutions... change <ul class="six columns"> to <ul class="twelve columns"> Or add a new CSS style: form#freeform .columns { float:none; }


2

It doesn't work because if you omit the initial slash then the path is relative to the current page. The first slash basically says, "start from the site root". So no matter where you are within the filesystem the link "/assets/css/style.css" will always resolve to the correct place. If you are at "/mypage/something" and you call "assets/css/style.css" ...


2

Try this in your .htaccess: RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC] RewriteCond %{QUERY_STRING} !^(ACT=.*)$ [NC] RewriteRule ^(.*)$ /index.php?/%1 [L] Before your main index rewrite. Also if it's a physical file, ensure you have this in your htaccess: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Before the index rewrite ...


2

EE's CSS and JS templates do not parse variables or tags. They're just static templates. Best to avoid EE altogether and just create CSS and JS files on the server. To still be somewhat dynamic, you can always hard-code rules in the <head> (for CSS) or above </body> (for JS). For example: <style> .style { width: {snippet_width}px;...


2

Most often the cause for this is that one of the JS files you're trying to use does not exist (at least from Minimee's point of view). As Alex suggested, if you turn on EE's template debugging, Minimee will add errors to the log. Search for the string "Minimee [ERROR]" to jump right to where it's encountering a problem. If you install the EE Debug Toolbar, ...


2

I haven't ever seen that myself. Is the exp:minimee:js tag closed properly? The first thing to do is turn on EE's template debugging feature because Minimee will provide debugging info there with any errors. http://johndwells.github.io/Minimee/#faq


2

This isn't a Wyvern thing at all, its CKeditor's behavior. Wyvern just wraps CKeditor and provides a few EE specific features. Any and all behavior inside of the editing region is all CKeditor's behavior. You'll have better luck at the CKeditor forums for something like this.


2

you can use {switch} or {if} condition with % Operator "Remainder of one number divided by another" like this: 1- {switch} variable : {switch="<div>||"} ....Your code.... {switch="||</div>"} 2- {if} with % : {if count=="1" || count%4==0}<div>{/if} ....Your code.... {if count%3==0}</div>{/if}


2

I have found (and apparently you have too!) that using one css file that 'imports' multiple is the way to go. I point WYGWAM to my wygwam-style.css file which includes: @import url("/css/reset.css"); @import url("/css/dynamic-content.css"); Reset.css is just a basic css reset that I use on the front-end of my site, so I figured it'd be best if it was ...


2

This looks like an issue with the library used to minify the CSS. Try to change it. Take a look at the configurations. The default library to is minify. Change it to cssmin. In case you're configuring Minimee using config.php: /** * Specify which minification library to use for your CSS. * Values: 'minify' or 'cssmin' * Default: minify */ 'css_library'...


2

You aren't able to edit an iframe's content, true. But the iframe's itself still belongs to your page, and you can edit the attributes. I just tested and was able to do something similar to: var i = $('div.item iframe'); // Did the selector work? console.log(i.length); i.removeAttr('width'); i.removeAttr('height'); That being said, using !important in this ...


2

Found a solution using Low Seg2Cat plugin to get category_id from segment url: {if segment_4_category_id == category_id}active{/if}


2

Just remove the protocol from the Default base URL in system settings > URL and Path Settings, so you have: //yourdomain.com/ instead of http://yourdomain.com/


2

If you don't found any plugin for EE3, Why don't you just convert EE2 version minimee to EE3? Do as given below: Download EE2 version of minimee v2.1.13. Create addon.setup.php in plugin folder and put this data inside it. <?php return array( 'author' => 'John D Wells', 'author_url' => 'http://johndwells.com/software/versions/minimee', ...


1

Yes, you are. And your question is almost off topic. EECMS variables are put between { and }. You should put variables there, not only paths. Path variables are a little different. You can study all about it on Template Language Overview; public_html is usually the folder where the website is. Everything accessible from web is inside this folder, so you ...


1

There is no highlight function with the native EE search module. You may want to invest in Low Search which is infinitely better http://gotolow.com/addons/low-search


1

Wyvern has a similar config file, you can add this line to it: config.disallowedContent = 'img{width,height}';


1

Hrmm. I wouldn't recommend changing core files. :p I feel like being awful today. Here's a PHP solution (turn template on PHP output): <?php echo preg_replace("/height\=\\"(\d*)\\" width=\"(\d*)\\"/", 'style="height:$1px; width:$2px;"', '{wyvern_image_field}'); ?> This regex will turn <img src="blat.gif" height="200" width="200"> to <img ...


1

Your url adress is not correct, to display your css file, you have to set the related path: Mydomain/path/file.css An example: Domain.com/main/color.css No need to put ?css=, it will give you a 404 error. But why do you want to display a css file? If you use a css template you have to insert the template path inside the page header. href="{...


1

Every time I've seen this behavior it's due to 1 or 2 reasons: Issue#1: The URL and server path to the 'themes' (or renamed themes folder) is incorrect one too many or too less "/" can do it. The fact it works from the server and not any other computer tells me that your paths may be absolute rather then relative. To check : inspect the CP page in whichever ...


1

I recommend posting on Director-EE, then tweeting about it using the #eecms hashtag. That'll get you the most exposure. (Shameless plug: I'm available for EE work, get in touch)


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