Skip to main content

Questions tagged [conversion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
2 answers

How can I convert text into a URL-friendly string?

If I want to convert text into a URL friendly string for sharing text in a social media link, how would I go about that?
Christopher Kennedy-Nuñez's user avatar
6 votes
1 answer

Craft.log showing Buggy iconv installed. Will fallback to mbstring

I'm curious if others are seeing a similar error in their Craft logs. It says: Buggy iconv installed. Will fallback to mbstring. It's repeated over and over seemingly with almost every request. ...
Keith Mancuso's user avatar
2 votes
2 answers

Convert Categories into Structure entries

We chose to create a set of content on our site as a category group. We're starting to port over content from our old site (Drupal) and have realized a few bummers — the main one being no revision ...
Bill Columbia's user avatar
2 votes
1 answer

How can I convert a dropdown field value to an integer within a hash?

I'm setting up a twitter feed with craft.twitter.get() and I need to convert a dropdown value to an integer. Here is my code far: {% set cacheTime = sidebarBlock.twitterFeedCacheTime %} {% set tweets ...
Steve Adams's user avatar
  • 1,671
2 votes
2 answers

PHP array missing attributes when converted to JSON

I am converting certain php data to json for use in my front end javascript. I have an array of product variants, an array of images from a media field that is defined on my variants, and an array of ...
Augustine Calvino's user avatar
2 votes
1 answer

Utilizing/ Converting another database with craft

(First off, I apologize for the really long question, but any help I can get would be appreciated!) Hello! I am taking over a bunch of sites that a developer had created for a company (I am not a ...
Alex's user avatar
  • 23
2 votes
1 answer

Is there any way of converting an existing field to a Matrix?

I'm working on an existing site that has an "Entries" field that allows authors to provide a selection of related articles. However, since some articles have titles whose meaning is not entirely clear ...
Nick F's user avatar
  • 1,215
1 vote
1 answer

Going from a static site generator (Jekyll or Hugo) to Craft CMS; Export/migrations options?

I currently have a website that's been built using a static site generator (SSG; in this case, Hugo). The site has about 10 sections, each with 40-50 markdown files. As is the case with most content ...
RyanDW's user avatar
  • 11
1 vote
1 answer

Twig: Convert time format

I have a video Object with a duration property formatted in SCORM 2004 time format. Like so: PT51M55S. How do i convert this into a human readable time format like: 51:55? date() does not seem to work ...
Marcus Scheller's user avatar