Questions tagged [index]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9
votes
2answers
837 views

Update Asset Index in Batches

I have 80,000+ files on S3 that need to be added to Craft. The Update Asset Indexes works, but takes over 24 hours and cannot be interrupted. Does anybody have a way to programmatically index assets ...
4
votes
1answer
195 views

Reusing logic to set string variables

I would like to set some variables for every entry within a section ('courses'), and then use those variables in loops that are filtering by entry types and categories. Some simplified markup: <...
3
votes
4answers
2k views

Can't remove index.php from my URLs

I edited .htaccess as described here http://buildwithcraft.com/help/remove-index.php and added this 'omitScriptNameInUrls' => true, to craft/config/general.php, but it doesn't work. Image: I also ...
3
votes
2answers
1k views

Removing /index.php/ from url breaks site

When I try the solution mentioned here, my site breaks, pages not found. Even the /admin/ pages break, losing all styling. The only page which loads is the homepage. Any thoughts about why? I was ...
3
votes
1answer
3k views

htaccess www to non-www redirect (and config.php)

I need to set up a redirect from the www version of my site to the non-www version for SEO. I found a solution that would work here if it weren't for the fact that it breaks the index.php redirect ...
2
votes
1answer
425 views

How do you programmatically update an asset index?

I am trying to update an asset index from a plugin but can't seem to get it to work. Looking at the docs this seems to me like it should work but it does not. I am on the right path here? $ses = ...