-
AuthorPosts
-
December 2, 2010 at 4:48 pm #156994
The JA Ores template, more specific its blog layout, seems to have a problem with the german language setting.
The article creation date isn’t properly formatted. The month text “November” apparently is too long and breaks the layout. I changed the template a bit so it produces the short (instead of the long) month name. This doesn’t look any better as it puts the year directly behind the short month name “Nov”. Maybe it looks right for some months but definately not for all months…
Regards,
JeroenSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 6, 2010 at 4:03 am #365358you try with this solution
open the file: templates/ja_ores/html/com_content/category/blog_item_blog.php and find:
'<span class="ja-date">%d</span><span class="ja-month">%B</span><span class="ja-year">%Y</span>'
replace:
'<span class="ja-date">%d</span><span class="ja-month">%b</span><span class="ja-year">%Y</span>'
December 6, 2010 at 7:44 pm #365472well, that’s exactly what i tried in order to solve the problem. Now the month always fit, but(!) the year value appears behind the month and not below the month as it should be.
December 7, 2010 at 8:05 pm #365642Here is a picture, so you can see what happens. If the month name is less than 5 characters, it looks like this.
Could this problem please be fixed in the template?
December 7, 2010 at 8:08 pm #365644Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
December 7, 2010 at 11:06 pm #365654It is, as I am sure you have guessed, not just a problem in German but all languages.
Please open
<span class="createdate-icon clearfix">
<?php echo JHTML::_('date', $this->item->created, '<span class="ja-date">%d</span><span class="ja-month">%B</span><span class="ja-year">%Y</span>'); ?>
</span>and replace with
<span class="createdate-icon clearfix">
<?php echo JHTML::_('date', $this->item->created, '<div><span class="ja-date" style="float:left;">%d</span><div><div class="ja-month" style="width:95px;">%B</div><div class="ja-year">%Y</div></div></div>'); ?>
</span>Then find in template.css around line 510
#ja-blog-style .article-tools {
background:url("../images/arrow-l.gif") no-repeat scroll -12px 10px transparent;
clear:none;
float:right;
padding-left:35px;
width:25%;
}and change to
#ja-blog-style .article-tools {
background:url("../images/arrow-l.gif") no-repeat scroll -12px 10px transparent;
clear:none;
float:right;
padding-left:35px;
width:27%;
}Sorry it is a quick and dirty fix. A little short on time tonight. There is not enough width in the block for all the months in English and German plus if the width is less we get the overlap. Hopefully the devs can apply a fix to a future release of the template.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
December 9, 2010 at 8:57 am #365949Hi jgremmen,
I think the most simple solution is :
edit /ja_ores/css/template.css line 581:
#ja-blog-style .createdate-icon .ja-month {
margin-top: 10px;
}To:
#ja-blog-style .createdate-icon .ja-month {
margin-top: 10px;
overflow: hidden;
width: 90px;
}since the month text is shorten, 90px length is enough, that will bring them back to proper positions.
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 4 voices, and was last updated by Ninja Lead 13 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum