Questions tagged [string]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
121 views

If condition for phpstringfun or streng?

I want to find if a string contains a word ot not? It is a pretty simple thing if i want to do it in php.But When it comes to EE you need some plugins to do the job of strpos. I have two plugins ...
0
votes
2answers
271 views

Truncate string with EE 3

There used to be all kinds of plugins for EE 2 that let you shorten a variable (or any string, really), some from EllisLab as well as a number of third-party ones. Some let you specify the number of ...
0
votes
1answer
67 views

How get the particular part for a string?

How to get a particular part of a string? e.g after some special characters or some words.
0
votes
1answer
29 views

How to take out comma to the penultimate word in a list of 5 words?

{exp:query sql="SELECT states FROM states"} {if count == total_results} and {states} {if:else} {states},<span> </span> {/if} {/exp:query} Result: ...
0
votes
1answer
244 views

Connection string

I have a form (freeform) in my EE site working just fine. My client ask me for a connection string because he wants to get the information fill up in the form directly in his own system database. I'...
0
votes
2answers
76 views

Some add-ons don't work after EE1 upgrade

I've upgraded a site from EE1 to EE2 and a few of the add-ons don't seem to be working inside the templates. They are working fine inside the Admin area and all the content is showing up in the ...
0
votes
1answer
82 views

If statement when layout variable contains whitespace

I'm using an if statement in a layout to check if a layout variable contains any content. {if layout:sidebar} <div class="sidebar"> {layout:sidebar} </div> {/if} This works well ...