-
AuthorPosts
-
korb Friend
korb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 12, 2009 at 11:39 am #323374Add a slogan for that menu item, you will see the slogan as the url with Joomla core SEF, and with sh404sef you will see full menu title in the link, like the example I posted above.
Actually this could be related to sh404SEF com_contact sef plugin and Joomla core SEF plugin, as it cannot handle contact menu items properly: instead of adding contact category or contact name to the title, it adds menu item title…
I will investigate this further as I am part of the new sh404SEF development/testing member on Anything Digital.
But we must make menu icons show up with any SEF !
Danny
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 12, 2009 at 8:08 pm #323431I managed to fix URL error for contact pages and megamenu if sh404sef is on. Anyone interested for this fix, use the file from this post..
orpheus2510 Friendorpheus2510
- Join date:
- July 2007
- Posts:
- 149
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 14 times in 1 posts
November 12, 2009 at 9:26 pm #323435I don’t know wether someone has written it, but there’s is a code mistake in /templates/ja_purity_ii/layouts/blocks/head.php, line 55. Instead of
[php]<link href=”<?php echo $this->templateurl(); ?>/css/ie.php” rel=”stylesheet” type=”text/css” />[/php]it must be
[php]<link href=”<?php echo $this->templateurl(); ?>/css/ie.css” rel=”stylesheet” type=”text/css” />[/php]Otherwise you get 404-messages in the logs, when IE-users visit the page.Second thing:
The button for frontpage editing ist cut because the text of articles is moved to the left for 10px. A solution could be to add the following lines to the template.css:
div.leading .contentpaneopen_edit {
margin-left: 0px;
}.contentpaneopen_edit {
margin-left: 10px;
}1 user says Thank You to orpheus2510 for this useful post
rosensta Friendrosensta
- Join date:
- May 2007
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
November 12, 2009 at 9:46 pm #323436<em>@basskool 152664 wrote:</em><blockquote>I managed to fix URL error for contact pages and megamenu if sh404sef is on. Anyone interested for this fix, use the file from this post..</blockquote>
Nice work – I wish it would work with Joomla SEF as well!!
Maybe the solution, is to make the switch to sh404sef instead…..;)Cheers,
RosenstaNovember 12, 2009 at 10:57 pm #323440The Error:
PHP Fatal error: Call to a member function get() on a non-object in templates/ja_purity_ii/libs/menu/base.class.php on line 149Updated to the 1.1 Stable, that error still happens when you set a menu item to “registered” and then visit the site as a guest. Here’s the code that causes the problem:
//unset item load module but no content
foreach ($this->items as $v) {
if (($v->megaparams->get(‘modid’) || $v->megaparams->get(‘modname’) || $v->megaparams->get(‘modpos’))
&& !isset($this->children[$v->id]) && (!isset($v->content) || !$v->content)) {
$this->remove_item($this->items[$v->id]);
unset($this->items[$v->id]);
}
}I cut that right out of the base.class.php and the error goes away. Of course, I know next to nothing about php code, so Im sure cutting that out is like cutting out a body part -( what is that, a spleen )- and hoping you don’t need it.
Im sure if it’s there it does something…maybe someone can tell me what:)
– md
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 14, 2009 at 2:46 am #323528<em>@rosensta 152670 wrote:</em><blockquote>Nice work – I wish it would work with Joomla SEF as well!!
Maybe the solution, is to make the switch to sh404sef instead…..;)Cheers,
Rosensta</blockquote>Just added a new tracker for this, I almost found something, but I need JA assistance on digging this. This is the last issue I must fix before I launch my new redesigned template out of Purity II.
Watch the tracker here
http://pm.joomlart.com/browse/JATCPURITYII-57
Danny2 users say Thank You to korb for this useful post
rosensta Friendrosensta
- Join date:
- May 2007
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
November 14, 2009 at 8:28 am #323540Same for me – after this fix, I’ll start using the template publicly as well!
Thanx for your effort on this – I really appreciate it!!!Cheers,
Rosenstarosensta Friendrosensta
- Join date:
- May 2007
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
November 14, 2009 at 11:30 am #323548BTW Danny – maybe it’s worth mentioning in the tracker, that the icon-issue is only present with Megamenu? (as far as I see it..)
Cheers,
Rosensta:)korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 14, 2009 at 11:37 am #323549The issue is present on all menu types with sh404SEF. I don’t know why, when sef is on, for some icons the path is /root/images/img-name.jpg and this is a visible icon, but for others I see path images/img-name.jpg , an invisible icon (same path will show a visible image with SEF OFF).
I think the module template overide could be the problem I will keep in touch with my findings.
DannyNovember 14, 2009 at 4:59 pm #323568Hi,
So far, I’ve found this bug in several templates, so it could be a mistake that has been copy/pasted to most templates..
Anyway.. When content articles have quotation mark in the title, the “Read more” button in the front page (blog layout), creates A tag with title attribute that contains value with double quotations, for example, let’s say we have a content item titled
“This is a title that contains quotations”
now, if we refrewsh the front page, we will see that “Read more” button looks something like this:<a href="..." title=""This is a title that contains quotations"">...</a>
(notice that title attribute is invalid, because it contains double quotations).
As far as I’ve checked, the error is most probably located in these files:
template_name/html/com_content/category/blog_item.php
template_name/html/com_content/frontpage/default_item.php
template_name/html/com_content/section/blog_item.php
because they contain the code like this:<a href="..." title="<?php echo $this->escape($this->item->title); ?>" ... >...</a>
which should look like this:
<a href="..." title="<?php echo htmlspecialchars($this->escape($this->item->title)); ?>" ... >...</a>
I hope you get the point..
Cheers 🙂
November 14, 2009 at 5:32 pm #323572Found in template: “JA_Nagya”
Affected files:
/html/com_content/article/default.php
/html/com_content/category/blog_item.php
/html/com_content/frontpage/default_item.php
/html/com_content/section/blog_item.phpAffected code:
<span class="article-section">
<?php if ($this->item->params->get('link_category')) : ?>
<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
<?php endif; ?>
<?php echo $this->item->category; ?>
<?php if ($this->item->params->get('link_section')) : ?>
<?php echo '</a>'; ?>
<?php endif; ?>
</span>
openning and closing of <a> tag should be handled by both:
if ($this->item->params->get('link_category'))
but, openning tag is handled with “link_category'” in the if statement, and closing tag is handled with “link_section” in the if statement, which causes invalid html output, for example, missing closing </a> tag when an article is displayed in a category layout.
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 14, 2009 at 5:50 pm #323573I get the point, but my JA Purity install shows me right ttles, with no 2quotes, maybe because I use sh404sef? but I don;t think it has anythin to do with sef comp. Maybe old templates behave bad on a new Joomla version.
November 14, 2009 at 6:06 pm #323574oh gosh.. i’ve posted these 2 bugs in a wrong place i guess.. sorry :/
anyway, the first bug i’ve reported is found at least in 2 joomla art templates: ja_purity (v1.2.0) and ja_nagya(v1.0) (also freelance_plazza v1.0.1)
the second bug is only present in ja_nagya (v1.0)
edit: i don’t use any sefs
korb Friendkorb
- Join date:
- March 2008
- Posts:
- 315
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 40
- Thanked:
- 48 times in 39 posts
November 15, 2009 at 1:28 pm #323613I finally found the fix for this issue. The issue is reported here http://pm.joomlart.com/browse/JATCPURITYII-57
open libs/menu/base.class.php
FIND LINE
$itembg = 'style="background-image:url(images/stories/'.$iParams->get('menu_image').');"';REPLACE WITH
$itembg = 'style="background-image:url('.JURI::base().'images/stories/'.$iParams->get('menu_image').');"';
AND LINE
$txt = '<span class="menu-image"><img src="images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /></span><span class="menu-title">' . $tmp->name . '</span>';
REPLACE WITH
$txt = '<span class="menu-image"><img src="'.JURI::base().'images/stories/'.$iParams->get('menu_image').'" alt="'.$tmp->name.'" title="'.$tmp->name.'" /></span><span class="menu-title">' . $tmp->name . '</span>';
The fix should work perfect on livesite also.
Yupiii, DannyNovember 15, 2009 at 4:26 pm #323618AuthorPostsThis topic contains 241 replies, has 90 voices, and was last updated by Hung Dinh 10 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum