SoHo
  • Member for 4 years, 5 months
  • Last seen more than a month ago
How to display Craft Commerce subscription description from a linked entry
Accepted answer
3 votes

I found the answer by viewing the source code in CP. To display the content of the related entry: {{ plan.information.<fieldHandleInTheRelatedEntry> }}

View answer
Sprout Reports plugin - How to output a Matrix field into a row
Accepted answer
2 votes

I got it to work with this code: {% for entry in entries %} {% set myArray = [entry.title] %} {% for block in entry.myMatrixField %} {% set myArray = myArray|merge([block.field1,...

View answer
Render markdown as GFM (GitHub Flavored Markdown), therefore preserving line breaks?
Accepted answer
2 votes

I was able to get good results using {{ block.myFieldName|nl2br|markdown }}

View answer
Reusable Field-Configurations
1 votes

If you're looking to reuse existing fields, you may want to take a look at the Neo plugin: https://github.com/spicywebau/craft-neo

View answer
How do I find live and pending entries when using an array?
1 votes

For Craft CMS 3: {% set allEntries = craft.entries.status('pending, live').section('sectionName').relatedTo(category).find() %}

View answer
Removing index.php causes Not Found error on secondary pages
Accepted answer
1 votes

Thanks to @brad-bell - his comment on another post pointed me in the right direction. I thought that I already checked on mode_rewrite but I didn't. The Apache mod_rewrite module wasn't installed, ...

View answer
How to display a specific image from Assets field
Accepted answer
1 votes

I can do something like this and it will display all featured images but will require looping through the entire image set for each entry. {% for image in entry.image %} {% if image.featured | ...

View answer
Assets are not saved in dynamically generated folders
Accepted answer
1 votes

I got the images to upload into correct folders by switching Image field to "Restrict uploads to a single folder" option. I also had to fix the File System Path in Settings>Assets>Asset Sources to the ...

View answer