Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Canonical

Canonical

there is a way to put canonical only for homepage?

<link rel="canonical" href="http://www.site.com/"/>

itaym
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Canonical

Sure. Chameleon can add HTML code into the HEAD of the page using the Succeed/Fail actions. All you need to do is to be able to identify the front page of your site. There are several ways you could do this:

1 - by menu item for the front page of your site. The only problem with this is that sometimes there are other pages linked to the same Itemid, e.g. article pages linked to a "featured articles" page. But if your front page is an article then this should work fine.

2 - by URL. Detect URL "equals http://www.site.com/"

There are some other ways too but probably one of these will work best for you.

In the Succeed action, set "HTML head include type 1" to "Raw HTML for header", then add the following in the "HTML head include 1" box:

<link rel="canonical" href="http://www.site.com/"/>

Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Canonical

Hi
It doesn't work ...
I don't see the canonical tag.

itaym
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Canonical

Hi itaym,

there are 2 reasons why it may not be working:

1 - if you are using the system cache plugin, then clear all your page caches before trying again

2 - if it's not that, then turn on Chameleon's Debug mode. It's in the Options panel from the rule chain page or Config page. Then view the front page on your site and see what the debug output says. It reports on which conditions are being tested in each Chameleon rule, and what the result is. You may find that the condition is not quite set up right and that it's not detecting the front page properly. e.g. if you are detecting the URL for the front page you need to set the dropdown for URL to "=" and enter the correct URL including http, e.g. http://www.example.com/

That should help to isolate the issue.

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Canonical

Hello
It doesn't work ...

this is the debug. nothing about the canonical rule with ID5 ...

CHAMELEON DEBUG ON
Current date and time: "2015-06-01 08:19:37am" in timezone "Asia/Jerusalem"
Processing rule id 4 ("Sitelinks Search Box")
- Menu handling: currently in menu name: mainmenuheb, Menu id: 102
- Menu items: current menu item is in list of menu items to include - succeeding
Started SUCCEED action for rule id 4
Finished SUCCEED action: default template style not changed
Stopped processing as result of SUCCEED action at rule id 4 ("Sitelinks Search Box")
Final template style unchanged

itaym
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Canonical

Hi,

it looks like the Succeed action for Rule id 4 probably is set to "Stop processing", so it's not getting to the next rule at all.

Try setting "next action" to "Process next rule in chain" in rule id 4 and that should work :-)

Best regards,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Re: Canonical

I changed but it doesn't work.
Ican't see canonical tag in source.

CHAMELEON DEBUG ON

Current date and time: "2015-06-03 09:52:56am" in timezone "Asia/Jerusalem"
Processing rule id 4 ("Sitelinks Search Box")
- Menu handling: currently in menu name: mainmenuheb, Menu id: 102
- Menu items: current menu item is in list of menu items to include - succeeding
Started SUCCEED action for rule id 4
Finished SUCCEED action: default template style not changed

Processing rule id 5 ("Homepage canonical")
- URL: "http://www.1111.il/" equals "http://www.1111.co.il/" ? - succeeding
- Menu handling: currently in menu name: mainmenuheb, Menu id: 102
- Menu items: current menu item is in list of menu items to include - succeeding
Started SUCCEED action for rule id 5
Finished SUCCEED action: default template style not changed
Stopped processing as result of SUCCEED action at rule id 5 ("Homepage canonical")
Final template style unchanged

itaym
Beginner Modder
ranks
useravatar
Offline
6 Posts
Administrator has disabled public posting

Re: Canonical

Hi itaym,

I don't have any other suggestions, so I think it would be more useful if I can log in to your site to take a look. I'll send you a PM about it.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5910
Total Posts Today:
1
User Info:
 
Total Users:
10152
Newest User:
kasautiizindagiikay
Members Online:
0
Guests Online:
185

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked