Questions tagged [concatenation]

The tag has no usage guidance.

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

Accessing and Manipulating a Variable

Hopefully simple variable / concatenation question: What is the best way to retrieve the url of a specific asset the name of which should be concatenated from an asset field variable and a text string?...
user avatar
  • 33
1 vote
2 answers
235 views

How to add a conditional elements into the title of a page?

I need to set the page title like this: {% if entry.artistFirstName | length %} {{ entry.artistFirstName | capitalize }} {% endif %} {{ entry.title | capitalize }} So if a first name is set I ...
user avatar
6 votes
2 answers
4k views

Calling variables, dynamically

I've got a parent template which contains the following code: {% include '_layout' with {'countryCode': 'au'} %} I have a global set with the handle au_Variables, and within that a field with the ...
user avatar
6 votes
2 answers
13k views

How can I incorporate a variable into a string?

How can I incorporate a variable into a string, so that the result is a longer string that includes the contents of a given variable? For example, I have a variable called apple and its value is "...
user avatar
  • 2,332