Questions tagged [conversion]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
106 views

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 ...
user avatar
1 vote
1 answer
805 views

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 ...
user avatar
  • 11
2 votes
1 answer
58 views

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 ...
user avatar
  • 1,215
2 votes
1 answer
84 views

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 ...
user avatar
  • 23
6 votes
1 answer
563 views

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. ...
user avatar
1 vote
1 answer
1k views

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 ...
user avatar
10 votes
2 answers
6k views

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?
user avatar
2 votes
1 answer
2k views

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 ...
user avatar
  • 1,661