Hot answers tagged

6 votes
Accepted

Output html conditional based on comments in blog post

Before closing the Channel Entries tag, you can use the comment_total variable. Or if that does not work with your markup, you can use count conditionals in the Comment Entries tag (not nested inside ...
user avatar
  • 2,255
4 votes

How to minify HTML, CSS & JS in ExpressionEngine 3?

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....
user avatar
  • 3,562
2 votes

Expression Engine and Anchor tags

Your issue is nothing to do with ExpressionEngine. The template you are uses javascript to smooth-scroll within the page. It appears to be configured properly for in-page scrolling, but not for ...
user avatar
  • 3,562
2 votes

How to minify HTML, CSS & JS in ExpressionEngine 3?

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 ...
user avatar
2 votes
Accepted

Querying for a relationship field

https://docs.expressionengine.com/latest/fieldtypes/relationships.html#accessing-children To access the child entry to your Servers channel, just loop over the field like so: {exp:channel:entries ...
user avatar
  • 5,900
2 votes
Accepted

Channel Entries rows -wrapping

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&...
user avatar
1 vote

Meta Title Breaking After Apostrophe

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 ...
user avatar
  • 1,577
1 vote
Accepted

ExpressionEngine + Slider, how do I get it to display correctly?

I suggest that you do not use separate entry for each slider, but have one entry with 2 custom fields: slider caption (text field) slide images (Matrix or Grid field) This way, you will simply loop ...
user avatar
  • 2,831
1 vote

Using an IF ELSE statement to find user option & redirect appropriately

Not positive the following will work on 2.4, but try it: With a url mysite.com/news/latest?option=abcd and Mo Variables you should be able to get query string variables within an if/else conditional ...
user avatar
1 vote

EE cuts the content of a big field

you may want to check your field settings for any character limits. Specifically check that the field Maxlength, Default Text Formatting, and Field Content settings are appropriate to what you need. I'...
user avatar
  • 589
1 vote

Where can I find the HTML, CSS, and JavaScript files in my dashboard?

The HTML should be under "Templates/Template Manager" in a tab called "Design" which is normally next to "Content". If you can't see that tab then yes, it most likely is your account doesn't have the ...
user avatar
1 vote
Accepted

Avoid <p> in output of channel fields

It sounds like you would do best to make use of a WYSIWYG Field Type addon. There are several. I think the ones that get the most use are Wygwam, Expresso, and Wyvern. https://devot-ee.com/add-ons/...
user avatar
  • 5,900
1 vote

loading country code selection javascript file once per site visit

Use this Session add-on. Add to your head (on every page): {if "{exp:session_variables:get name="js_deployed"}" != "yes"} <script src="{cdn_url}{exp:setversion path='/js/geo.js'}"></...
user avatar
  • 5,353
1 vote
Accepted

Force a newline in rendered html markup (source formatting)?

TBH, your code output is a result of your code format. Turn this: <ul> {exp:channel:entries channel="duh"} <li><a href="{site_url}{url_title}/">{title}</a></li> {/...
user avatar
  • 5,900
1 vote
Accepted

post PHP multiple checkbox array and send values in email

Please post your <form> tags. First thing, no square brackets belong on this line: $checkList = $this->EE->input->post(['check_list']); It should be $checkList = $this->EE->...
user avatar
  • 5,900
1 vote
Accepted

Is there a way to configure a custom separator for channel field checkboxes?

YOu could simply strip the commas, as there's spaces in there already... You can use a 3rd party plugin like String Replace Exp which is free : <div class="{exp:strrexp pattern="," replace="" ...
user avatar
  • 2,418
1 vote

How do I change <b> to <strong> in default richtext editor field

Mate, you've got your work curt out! I just spend a half hour of my time trawling through the compressed JS to find a solution, it's not coming easy! The problem is the formatting seems to be ...
user avatar
  • 2,418
1 vote

Strip line breaks, quotes, HTML out of SQL query result for CKEditor field contents (for CSV output)

Would a plugin like Streeng work out for you? https://github.com/caddis/streeng It allows you to find/replace text. It can encode/decode HTML character codes, selectively strip HTML, etc. As ...
user avatar
  • 267
1 vote
Accepted

Strip line breaks, quotes, HTML out of SQL query result for CKEditor field contents (for CSV output)

I see that you can't use add-ons. I also realized that my previous answer would not work because of parse order issues between EE tags and PHP. Here is an updated, purely PHP answer for you. I've ...
user avatar
  • 5,900
1 vote

Low Yearly Archives - Select year from a drop-down menu

Try outputting a regular list with LYA and use JavaScript to generate the drop-down based on that list. That is behaviour that falls outside of the scope of LYA, to be honest. But with the output it ...
user avatar
  • 11.3k
1 vote
Accepted

tabs not working

This is actually a HTML/CSS issue. You're forgetting that just the first tab content should have the class active. The tabs have a conditional, {if count == '1'}class="active"{/if}, but the contents ...
user avatar
  • 6,108
1 vote

What is the best place to post job listings for EE devs?

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)
user avatar
  • 2,724

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