Skip to main content
aodihis's user avatar
aodihis's user avatar
aodihis's user avatar
aodihis
  • Member for 4 years, 8 months
  • Last seen more than a month ago
awarded
Loading…
comment
Ajax fileupload into asset folder (Craft 4)
I test it on my end it is work though, I will share you my code in answer hope it help.
comment
Ajax fileupload into asset folder (Craft 4)
Look like you need to pass the CRSF also when uploading the file.
answered
Loading…
comment
Next previous page links
@Tyssen try to use values filter after filtering the data. {% set validReviewPages = reviewPages|filter(page => { page.fieldX|length > 0 })|values %}
comment
Session token error/missing after server switch
Try to delete the folder runtime under storage.
comment
Twig > for looping on objects -> only one result
Inside your merge, you need to wrap the singleElement with square bracket instead curly bracket, so it would allergensArray|merge([singleElement])
answered
Loading…
answered
Loading…
awarded
awarded
awarded
comment
How to send email from Craft 4 custom plugin/module?
@Merc, $template is your twig template path. $variables yes it is contain array. This contain variable you want to pass to your twig template, The View::TEMPLATE_MODE_SITE is option to identify Craft where they should search your template, so View::TEMPLATE_MODE_SITE is means is using the template folder you use normally. if you no need to render from twig template you can just put your html code inside the $html variable.
Loading…
comment
Defining a domain for each site for both production and local - craft 4 multisite
you can put the url on env variable, and that also hosts file should be applicable even you using docker, btw i think the answer from Mats Mikkel Rummelhoff is the answer how to setting the environment variable.
Loading…
comment
Trouble with channel URLs and CSS files not pulling through - Craft CMS 4 Multisite
Hey for the channel section what is your Entry URI Format?
comment
Fetch Category Field Value on Entry Element
@AdrienneW for schema, do you use full schema or you create new one? if you created new one, do you have set your entry type to given schema? if it is possible can you give us screenshot about your field and schema.
answered
Loading…
1
2 3 4 5