TransWikia.com
  1. All Categories
  2. Craft CMS

Craft CMS : Recent Questions and Answers (Page 9)

Find answers to your questions about Craft CMS or help others by answering their Craft CMS questions.

Bootstrap 4 Modal show same image, regardless of thumbnail selected

I have the following code that's mostly working: <img src="{{ asset.getUrl('thumb') }}" data-toggle="modal" data-target="#largeBike" width="{{ asset.getWidth('thumb') }}" height="{{ asset.getHeight('thumb') }}" title="image" > ...

Asked on 08/05/2021

2 answer

Force expiration of particular token

We've had software crawl our site to find SEO issues. The crawl has found every URL twice, once with a token, once without. Each of the URLs with the token...

Asked on 08/03/2021 by Emma Swann

0 answer

Limit number of sessions per user

Is there a way to limit the number of sessions per user? That is, I can be logged into one machine/browsers only once. It is essential that we limit the...

Asked on 08/03/2021 by cballenar

2 answer

how to fetch entries with custom field data matches or else that field is empty

$queryElement = Entry::find() ->section('posts') ->country(['abc', ':empty:']) ->location(['xyz', ':empty:']) ->orderBy('postDate desc') ->limit(null);here country, location are...

Asked on 08/01/2021 by Mahantesh Teli

0 answer

Cache not working

I'm having troubles with my site being super slow. It seems like caching isn't working. When I upload the site to a different server, everything seems fine.When I empty...

Asked on 07/31/2021 by obs

0 answer

PHP error when trying to access dates in Sprout Reports

Basic Sprout Report here, settings page:{{ forms.dateTimeField({ label: "Start Date"|t, instructions: "The start date of the date range you wish to display in your report."|t, id:...

Asked on 07/30/2021

1 answer

Display Count of Entries posted today

I'm trying to display a notification badge on how many new entries were posted today only. But I cannot get the following to work.{% set timeAgo = now|dateModify('today') %}{%...

Asked on 07/28/2021

1 answer

Getting assets from an entry programatically

I want to get the id of an asset I've set for a feature image on an entry. To find the entry I'm using the slug as the criteria like...

Asked on 07/28/2021

1 answer

How can I get field values for the sections that I created

New to Craft CMS. We decided to make Craft headless and have an api fetch the data. I have 5 (simple) sections that represent 5 pages and they all have...

Asked on 07/27/2021 by Charles-Edouard Charles-Edouar

0 answer

What’s the pattern for Entry Form inputs for Assets meta data fields?

The templating pattern for Entry Form inputs for Assets files is clear enough. But how can I provide inputs in an Entry Form for meta data pertaining...

Asked on 07/26/2021

0 answer

Warning: Undefined variable $additional_loop in /home/w/11tr/wp-content/themes/dazfix/category.php on line 78

Warning: Attempt to read property "max_num_pages" on null in /home/w/11tr/wp-content/themes/dazfix/category.php on line 78

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP