RitterKnight
  • Member for 7 years, 2 months
  • Last seen this week
Using a field multiple times in a single template
1 votes

The only solution is to create yet another Grid field that uses the same twig code for rendering only to use it again on the same side. Do you need to enforce that structure or is it a "soft" ...

View answer
Any problems installing Craft on CentOS with SELinux enabled?
Accepted answer
2 votes

Someone with more CentOS experience will probably want to chime in—like you I'm more familiar with Debian/Ubuntu—but I can't imagine it wouldn't work, assuming you configure SELinux correctly and you'...

View answer
Host a Craft app
2 votes

I agree and disagree with Lindsey's answer. Hosting really depends on how much downtime can you live with and what you have to spend. If this is a professional job (where a client is paying you money)...

View answer
Displaying content defined by radio button in admin panel
Accepted answer
2 votes

Close! You can get the selected radio button by its label (what the user sees) or the value you setup in the admin. I'm assuming you're using the value. {% if entry.column == "two" %} {# show 2 ...

View answer
Craft with the PHP Built-in server?
1 votes

Brad Bell mentions this about Craft: Being a self-hosted PHP web application is a hard life. Your parents try to raise you correctly and equip you with the tools necessary to successfully go out ...

View answer
How would I create a select element with the 14 days from today as options
Accepted answer
5 votes

You're close! If there's one thing I've learned about Twig, it's easy to overthink it... Create an array with the first date, then merge the rest of dates into the same array with a for loop. Just ...

View answer
Setting cookies from CTA before directing to url?
3 votes

One option would be to set a query string on your cta urls, have your template look for that, and change your content accordingly. You can't set a cookie in Twig directly but there's a few plugins ...

View answer
Can't Transfer Site
2 votes

As an aside from what Phil mentioned, change your craft/config/db.php file to point to the online server. Also, make sure there is actually an instance of phpmyadmin on your remote server and you're ...

View answer
Using SSL for entire website on Arcustech server
3 votes

The second one will force SSL no matter which page you're on, including any control panel requests, which is what you're after. As mentioned in the docs, make sure that goes above Craft's default ...

View answer
Apache or Nginx for a Craft site
6 votes

Putting aside Craft for a moment, it's not just Craft, you'll usually end up throwing more things on a web server as time goes by. If those scripts/apps are expecting an .htaccess file and you're ...

View answer
Mutliple logouts required on Multiple App Servers
Accepted answer
3 votes

It sounds like your sessions are not being sticky. How many servers? Are you having to login multiple times as well to get things done? Apart from what Brad mentioned, couple things I'd try if you ...

View answer
cp login over https gives error
Accepted answer
5 votes

This could be a couple things: Server config .htaccess file SSL Certificate But it sounds to me like the insecure login button means those assets are not being served over SSL. How'd you confirm the ...

View answer
Showing categories in Channel Entry URLs
Accepted answer
12 votes

There's a lot here but I'd start by create 2 different channel sections: Blog and News. From the front end, that makes it easy to see which entries are associated with what sections and easy to post ...

View answer
Navigation, Structure, Usage, WOES!
1 votes

Lots of different ways to skin the snake here but depending on how big your site site is, why create a separate structure section to begin with? For a recent build, I created a "Pages" structure ...

View answer
What variables are available to what template types?
Accepted answer
2 votes

It looks like you're coming from some other system? When I see "single-whatever" I think of WordPress' specific template structure... which may or may not have any meaning in Craft. Unlike something ...

View answer
How to route short tag to external web site
1 votes

Take a look at Shortener and Reroute for inspiration as well ( might save you some trouble if you're just trying to write a general URL shortener!)

View answer
How do I install Craft in shared hosting that doesn't allow index.php in a sub-folder
Accepted answer
1 votes

As André mentioend, everything inside your public folder should go inside FastHosts' htdocs folder. Public is just what Craft says should go in your publicly accessible web "root". On most hosts I'...

View answer
Using a virtual host result in internal error
Accepted answer
2 votes

Looks like the .htaccess file included with Craft is not being read or you didn't rename it (should be .htaccess with the period at the beginning). That's why /index.php/admin is working but /admin/ ...

View answer
Multiple Craft install configuration in subdomains
2 votes

Get a copy of MAMP Pro and save yourself the hassle of creating virtual hosts, hacking /etc/hosts, etc. I do 90% of what Douglas does but with some slight modifications, mostly to simplify ...

View answer
Can't remove index.php from my URLs
2 votes

I'd put money on your .htaccess file. Could be a permissions issue or maybe you misspelled .htaccess when renaming it? (The Craft distro comes without the period.) That's certainly happened to me—it's ...

View answer
Is "Replace file" a potential security hole?
2 votes

The problem here again is that I cannot restrict the intern to his folders only; he can see all the Asset folders and can replace any file -- either through malice or incompetence. Unless I'm missing ...

View answer
Getting Checkboxes to work on Frontend Forms
2 votes

Since the form was already submitted, your code is only looping through the checkboxes that were checked. Just add .options to your second for block like you have above: {% for checkboxOption in ...

View answer
Where should an encryption key be stored?
Accepted answer
2 votes

I'm hardly a security expert but if someone can get to your filesystem or your db, you'd be screwed either way—so what you're really doing is technically obfuscation and not really encryption. Ideally ...

View answer
Is it possible to prevent disabled Matrix Blocks showing in a Live Preview?
Accepted answer
5 votes

It's definitely a bug in live preview but looks like you can work around it. This doesn't appear documented at all—so be careful—but you can use .status() to get the block's status. It looks like an ...

View answer
Populating craft database from non-craft data
3 votes

You might want to consider a CSV import as well. You could export the data out of the db using something like phpmyadmin's export to csv and then import the content back into Craft using the ...

View answer
Double storage of values in table-field
1 votes

Taken from carlcs' example, you'll probably want the clean "human readable" table headers. Looks like those aren't handed out in the template by default but you can get 'em with a trip to ...

View answer
Duplicate a Structure "Section"
3 votes

I wouldn't touch the DB directly but have you considered doing this via a CSV import? You could setup all your pages right in Excel or OpenOffice or whatever you like and then import the content using ...

View answer
Robust Form Plugins for Craft?
3 votes

Commerce is definitely Craft's achilles' heel right now. Like you, I'd love to switch over completely off WP but picking the best tool for the job means either rolling up your sleeves and writing ...

View answer
Why are my template filenames showing up in Google Analytics
2 votes

If your Craft templates folder is above the document root and not public, it couldn't be "real" traffic. Could be residuals left over from testing somehow (like a live preview or test domain or what ...

View answer
How do I set Redactor formatting button to wrap selected text in two tags? <pre><code>...</code></pre>
1 votes

If it were me, I'd try to keep as much formatting cruft out of a wysiwyg as possible, it cleans things up down the road and keeps your content as structured as possible. If you ever change frameworks ...

View answer
1
4 5 6
7
8