1820 Posts in 563 Topics by 545 members
|Go to End|
31 March 2011 at 1:34am
I've been bashing my head against the wall for hours trying to figure this out, reading the docs, etc., but am a total loss.
I've been editing the file /blog/templates/Includes/BlogSummary.ss to try and make some minor modifications to how the blog entries are shown (in particular I want the summary in one div, and the full text in another). But no matter what changes I make to the file, nothing changes in the live pages. I've even done a global file search for other files containing, for example, "blogSummary" as a CSS class, but nothing turns up, so this must be the right file I'm looking for...right?
I tried running /dev/build?flush=1 to see if that was the problem -- again, no change. Yet when I change other blog template files, I do see changes in the live site. Fluh?
Also, I've been trying to get the localized German values to be used in the blog, but sometimes it works, sometimes it doesn't -- even on the same page. Again, I'm at a total loss.
I tried to add this to /mysite/_config.inc.php:
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge', 'de-DE');
as well as to various parts of the blog code, but nothing seems to force it to stick to German in all cases -- just in some. I did find a few spots where English text was included without using the _t() function, but even in some spots where _t() is used and German terms defined in the lang file, it uses English anyway.
The live site is here:
Any help would be greatly appreciated. The blog is version r103774 with SilverStripe v2.4.5.
31 March 2011 at 7:05pm Last edited: 31 March 2011 7:06pm
Note you shouldn't be editing the templates inside the module. The way you want to go is to use a subtheme (http://doc.silverstripe.org/sapphire/en/topics/theme-development#subthemes). That'll make upgrading your blog later on much easier.
But no matter what changes I make to the file, nothing changes in the live pages
Make sure you have done a ?flush=1 as well. Also check you're editing the right site. I've been viewing the live site while changing the test site and wondering where my changes were countless times!
You can also use ?showtemplate=1 to see what files are being included in your page.
2 June 2011 at 2:19am
did anyone yet find a solution to the language problem? I´m using German too
|Go to Top|