Justin Dekkers
  • Member for 6 years, 6 months
  • Last seen more than 2 years ago
How do I add a favicon
5 votes

Just like you would add a regular favicon just in your head. If you want it to be an uploaded picture I would say: Make a global and add a field like "favicon" to it and upload your image there and ...

View answer
Creating Task Manager for Client Portal
Accepted answer
4 votes

You could create a "Matrix Block" and make 3 type of blocks in there: Discovery task, Website task and Assets task. If you give these blocks the fields they should need they just add whatever block ...

View answer
Only show entries related to category
Accepted answer
3 votes

Personally I would set the category select field outside of the matrix block but that's up to you. The problem you are running in to at the moment is you are not looping over the matrix field. {% ...

View answer
Check which pagination page to display code outside of pagination loop
Accepted answer
3 votes

UPDATED/EDIT ANSWER: If you only want to show the entries on the first page you should make an if statement to check if you are on the first page for your Featured Items by requesting the page number....

View answer
Is There a Way to Add Tabs in Global Fields?
3 votes

As far as my knowledge goes there is not a way to do this without some though changes. Wouldn't it just be better to add another global and just name it settings? Something like: globalSettings(...

View answer
Category name in page title
Accepted answer
2 votes

You don't have to fill in the quote's or the curly brackets. You could just put it down like this: {% set title = category.title %} You already "called" twig so you dont need to do that again.

View answer
Sum of one checkbox field
Accepted answer
2 votes

What you could try is putting the "if statement" as a condition in the for loop like this: {% for premiereItem in entry.kompositonsart if premiereItem.value == 'ua' %} //the checkbox loop starts /...

View answer
Custom fields on a structure or section archive page
Accepted answer
2 votes

What you could do is make a "Global" Which sets the header image. You could name the global something like "Event Page Fields" or something like that so its clear for your administrator where to look. ...

View answer
Can't access admin panel
2 votes

As Brad Bell pointed out in a comment that you should use index.php, it might have something to do with your .htaccess and general.php Your .htaccess File should look something similair to this: <...

View answer
Can I Create a Way for Users to Add Fields from the Dashboard and/or create Fields with Same Handle?
Accepted answer
2 votes

I might get you wrong but they must have the option to add as many youtube embed videos as they want? Isn't it an option to let your client make a new block for every embed and just loop over the ...

View answer
Can't update from v2.6.2789 via manual update
2 votes

Are you 100% sure you are updating the right website/folder and not looking at the wrong one? Are you sure you are using the newest version of craft to install and not your old download? If this is ...

View answer
Asset Meta Fields vs Section with Asset field + the other fields?
2 votes

Personally I would add the fields to the asset. Totally depends on what order you prefer to fill in the data. Are you going to fill in all the data yourself or a client? If so, ask them what they ...

View answer
Making an entry grid with Batch 2,3 (2 in row then 3 in row)
Accepted answer
2 votes

With some help from HendrikEng's answer I figured out something that does work. I had to make the batch bigger to an amount of 5 making the "row's" bigger. Also I had to set the position of the ...

View answer
New section/entry can't go live
2 votes

Have you already made up an html template for this section? If so you should check if you assigned it right. Go to: Settings>Sections>(your new section you want to assign) and check the entry ...

View answer
Matrix Field Integration
Accepted answer
2 votes

For a Matrix field inside a matrix field I recommend using Supertables. https://github.com/engram-design/SuperTable It doesn't look exactly the same as a matrix block but works the exact same way. ...

View answer
loop trough whole array inside a field
Accepted answer
2 votes

You can by using this: {{ include(template_from_string(entry.fieldName)|raw) }} You could also try it with just |raw But that probably only works for just HTML This works on both a Plain Textfield ...

View answer
How to get next entry by date in matrix block but limit to just 1
Accepted answer
2 votes

I think this should do it. {% for block in workshop.workshopSession.sessionDate('>=' ~ now|date('Y-m-d')).limit(1) %} If not you always can go with a "dirty" fix by just showing the {% loop.first ...

View answer
Does Craft have an equivalent of EE's Custom Fields loop for front-end entry forms?
1 votes

Personally I don't have any experience with Free Form but have been using Sprout forms for quite some time now. In Sprout forms your client can create entire forms or just add a couple of fields ...

View answer
Craft 2 CMS - How to change Limits in Dashboard
1 votes

If the account you're using has admin rights you could do so by going to: Settings > Fields > [Field label of your service display] and edit it. On the bottom there should be a input which sets the ...

View answer
Load entries based on category field value while multiple categories are selected
Accepted answer
1 votes

After looking for some more options I found the solution. At first I was looking for a solution on how to check if the handle was inside of the array but, didn't manage to output the entire array as ...

View answer
Best Technique for have sections in display in same page with anchor link to each section
1 votes

What I should do is create a category group whish should be filled with your "Food Categories". Once you've done that you could display them in your side menu. (If you show the menu on everypage make ...

View answer
{% block content %} is a no-go in template/subfolders
1 votes

It's not a server sided issue you are running into. Best guess is that you deleted some of the original code in either the _layout.html or your new template file. When you first setup the environment ...

View answer
If Conditional for Lightswitch in Matrix Field
1 votes

Might be better to just adjust the matrix field itself (upload a video or an image and make an if statement depending on file type). It also is easier if you wouldnt put the image field inside the "...

View answer
Why are there now blank entry folders in my image assets folder?
1 votes

I guess you or someone else made a subfolder in your upload folder. You can do this through Craft itself. This creates a folder you which might be happening in your case. Try adding a new one and see ...

View answer
Save field inputs upon submission of front end form for reuse in new form?
1 votes

I don't know if we can compare the problem I usually have but here is my way. Whenever I build a website where users can login and save "entries" they also need to stay connected to it off course. I ...

View answer
How can I display category title inside another category
Accepted answer
1 votes

If I get you right you have a category select field inside a category. If you want to grab any field values from a category you can do it the same way as with entries. Code works almost the same. {% ...

View answer
Is it possible to exclude entry from search index?
1 votes

If you mean entire sections you could define which sections you want to display like this: {% set query = craft.request.getParam('q') %} {% set entries = craft.entries.craft.entries.section('section1,...

View answer
Empty page instead of 404 error when url contains channel slug
Accepted answer
1 votes

As Brad pointed out in the comments on my question I had to take a look in the custom route's defined in the Craft CP. My client tried to make a custom route which looked like this: This caused for ...

View answer
Seomatic - show only global site title
1 votes

Did you remove the standard title tag placed in the _layout.html file by craft? This line is probably breaking your SEO title: <title>{% if title is defined %}{{ title }} - {% endif %}{{ ...

View answer
Craft Admin CSS Broken..?
1 votes

Are you sure you didn't push something to craft/app/templates if you did go check out the folder and remove anything that shouldn't belong there. You can check side by side which files shouldnt be in ...

View answer