Tag: templating

28 Test for empty field? 2014-07-08T15:06:01.100

22 How does template caching work? 2015-01-16T19:11:00.393

21 How can I route a specific entry in a structure section to its own template? 2014-06-12T19:07:56.340

19 How can I check on the value of a template variable? 2014-06-12T01:10:28.707

17 How do I output the locale’s name? 2014-07-10T00:30:11.727

15 Is it possible to use Twig in a Rich Text Field? 2014-07-19T06:21:07.070

14 Best method of text truncating 2014-07-01T18:49:23.330

14 How do you handle SEO on your site? 2014-10-08T03:11:11.717

13 How do you list categories in a category group? 2014-06-12T00:25:00.113

12 How to write a simple navigation? 2014-06-12T14:37:00.100

12 Can we use PHP in our templates instead of Twig? 2014-07-03T16:45:28.717

12 Create line breaks from text field 2014-09-30T12:41:54.337

11 How can I utilize existing UI for my plugin's control panel views? 2014-06-13T17:28:59.310

11 How can I determine if a user is logged in, and who that user is? 2014-06-20T17:58:17.497

11 Section entries - order by random 2014-09-23T11:17:23.840

11 How do I set up event listing & detail pages with entry post dates that are in the future? 2015-03-03T19:52:26.317

11 Twig syntax highlighting in PHPStorm? 2015-06-12T17:07:15.583

11 A/B testing - how to in Craft? 2015-10-15T04:09:45.077

11 Templates with .twig extension 2016-05-19T10:35:07.543

10 When to use " is same as" and when to use "==" 2014-06-15T14:47:31.733

10 How can I perform a RegEx match in Twig? 2014-06-16T12:47:27.173

10 What's the difference between using single and double quotes in strings? 2014-06-16T21:25:53.340

10 What is the best way to handle errors in plugins and templates? 2014-06-18T05:26:41.033

10 What's the difference between "is defined" and "is not null"? 2014-06-20T20:19:19.653

10 How to check variable type? 2014-07-11T10:13:28.233

10 Access environment information in template 2014-08-11T10:43:18.000

10 The Definitive Guide to Extending Twig in Craft CMS 2017-01-11T01:11:10.207

9 How to automatically redirect a url based on dynamic content 2014-06-15T16:04:59.517

9 Craft, CSS Frameworks, Bower & Grunt setup suggestions 2014-06-17T14:06:33.007

9 Why does my base template never reload? 2014-06-17T15:58:41.647

9 Display entries that belong to a category 2014-06-19T08:16:40.797

9 How can I add a RichText-Field to my plugin's CP-section? 2014-06-21T20:04:07.600

9 Is it possible to compose a DateTime object from a string? 2014-06-24T10:05:31.687

9 How can I output the Field Name in my template? 2014-06-25T21:25:52.270

9 How can I convert text into a URL-friendly string? 2014-07-14T22:35:05.907

9 Check to see if category is populated? 2014-07-23T15:45:55.260

9 How do you handle complex navigation in Craft? 2014-08-12T17:10:12.520

9 How to get one random entry from among multiple sections 2014-08-29T21:53:58.033

9 How to use plugin settings 2014-12-03T21:34:03.310

9 Use Vue.js with Craft 2016-09-14T21:24:30.080

8 How do I set mime-types for Craft templates? 2014-06-15T01:28:30.860

8 Can I disable template caching for local development? 2014-07-02T06:11:48.610

8 How do I add an HTML block from template extension to main layout template? (i.e. meta data) 2014-07-09T15:34:23.627

8 Is it possible to break out of a loop in twig? 2014-07-09T16:38:32.347

8 Sort merged array by array value in Twig? 2014-07-09T19:17:52.783

8 How do I output an entry author's data 2014-07-14T14:13:41.280

8 Check user is in User Group / Custom User Permissions 2014-07-14T21:34:44.200

8 Is there any way of specifying a default category for a category field? 2014-07-30T16:49:53.240

8 Two Plugins not showing in CP after pushing to staging server 2014-07-30T23:02:22.000

8 Method to grab URL hash in Twig or craft.request? 2014-08-04T18:39:22.387

8 How to output a field as raw HTML? 2014-08-05T16:56:50.137

8 How Do You Create A Navigation Of Entry Types? 2014-08-06T14:38:50.510

8 Get the current section handle 2014-08-07T10:18:16.720

8 Remove the last comma in an inline list of tags? 2014-08-15T08:19:08.110

8 Is there a way to override the template caching system? 2014-09-10T16:21:16.910

8 Use loop index number in a Twig variable 2014-12-17T13:07:38.583

8 How do I sort entries by two variables? 2015-03-19T16:08:45.370

8 Looping through images in a Asset field type 2015-11-21T19:16:10.817

8 Exclude multiple entries by their IDs 2015-12-08T22:36:45.497

8 Macros vs Includes 2016-07-23T14:54:05.410

7 How can I order entries by title when each title is numeric? 2014-06-12T13:18:20.620

7 Is there a way to define a global var within a twig block? 2014-06-13T19:10:15.393

7 How do I stop my relative links to stylesheets breaking? 2014-06-26T07:35:46.807

7 Can I apply an image transformation to an arbitrary image (non-Assets field)? 2014-06-30T18:29:28.867

7 How do you filter matrix blocks by type? 2014-07-10T19:37:17.550

7 Multilingual Dates where date format varies 2014-07-14T02:02:18.270

7 Is it possible to use _includes/forms outside of the control panel? 2014-07-25T01:49:51.560

7 How can I pre-raw a Model attribute for the Twig template? (ie. "myModel.myAttr" without requiring the raw filter) 2014-08-04T11:41:47.807

7 Twig "is defined" always returning true 2014-08-22T17:46:04.470

7 How to use url segments like with Freebie in EE 2014-09-10T22:15:32.690

7 How to display all fields belonging to current entry? 2014-10-05T18:08:30.190

7 Get Entry Edit Link in Twig 2015-02-10T22:43:25.790

7 System Status Off Custom Text 2015-02-13T03:08:28.073

7 Detecting if page is a 'category' or 'entry' 2015-03-07T17:03:41.163

7 Routing templates thats start with an underscore 2015-04-01T14:40:44.500

7 What's the best way to increment a number of a class or id? 2015-04-07T18:38:05.400

7 Check to See if Field Exists 2015-04-13T13:21:01.583

7 Use a Twig macro to set a variable 2015-06-09T10:00:08.180

7 Add ordinal suffix to loop.index 2015-07-17T15:45:37.397

7 Approaching Google AMP 2015-12-14T16:11:55.260

7 Creating partials outside of the templates folder 2016-06-01T21:00:26.883

6 How can I use operators within Twig hashes? 2014-06-12T10:26:25.937

6 How do I get rid of whitespace when rendering without touching template indentations? 2014-06-23T13:21:45.090

6 Do tuples exist in twig? If so, how can I create one? 2014-06-27T08:31:38.630

6 How do I adjust the page title for different Section and Entry pages? 2014-07-04T16:22:51.127

6 How can I create a simple loop through entries in a category? 2014-07-04T20:24:35.060

6 How do you return a message if no entries are found? 2014-07-10T16:07:43.193

6 How do I get a random entry's URL from a Entries field? 2014-07-11T22:37:41.213

6 Is it possible to access Twig variables in a plugin variable using PHP? 2014-07-12T16:48:48.850

6 Best way to use custom enums in my plugin templates? 2014-07-15T01:22:48.217

6 How to append 'Continue reading…' link within the last paragraph of the Excerpt 2014-07-29T12:17:26.807

6 Twig Templates : Include dynamic data when using set 2014-09-26T02:42:06.247

6 Multiple conditions in an if statement? 2014-10-03T23:57:42.607

6 Where can I edit the "Service Unavailable" page/template? 2014-12-03T12:37:25.827

6 Include a template that sets variables (global template variables) 2014-12-17T16:13:48.913

6 Sorting entries A-Z, ignoring 'The' and grouping by first letter 2015-03-14T13:40:28.480

6 How are the Craft docs created? 2015-03-19T14:21:33.887

6 "A" or "B" in switch statements? 2015-04-19T01:49:54.943

6 Make dump() available when devMode is disabled 2015-11-06T13:40:05.637