Questions tagged [conversion]
The conversion tag has no usage guidance.
8
questions
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 ...
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 ...
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 ...
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 ...
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.
...
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 ...
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?
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 ...