Page 2 of 4

Re: MetaMax Module Observations

Posted: Sun Feb 26, 2012 8:06 pm
by Gregor
Thanks for your help and explanation on getting it to work.

A couple of things:
1. keywords, I tried various setting of 'number', 'length', and 'density', however only the words I entered under 'Set of default keywords to always include, comma seperated list:" show up.
2. My JS calls are put in GCB's. If I put

Code: Select all

{global_content name='UB_head_js'}
   {capture assign="metadescription"}{content block="metadescription" wysiwyg='false' default=''
   label='Meta Description' rows='4' 
   description='Logboek van zeilboot Uisge Beatha, beschrijving van tochten, ervaringen en klussen die aan mijn Hanse 311 door mij worden of zijn gedaan.'}{/capture}

   {CGFeedMaker action='autodiscovery' feed='logboek'}
   {analitics urchin="UA-3361592-1"}
in the additional content block under the HTML tag setting, than the code shows up in the upper part of the site, visible to the visitors.
3. I already entered my Analytics ID in the web property if. Just wondering if I'm able to check the id is being used, this because I don't see the id in the page source.
4. After some cleaning, my <head>-source currently looks like:

Code: Select all

<head>
{capture assign='get_content'}{content}{/capture}
{if !isset($pagetitle)}
   {capture assign='pagetitle'}{title}{/capture}
{/if}
{MetaMax}
{strip}
{process_pagedata}
{/strip}
   {if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if *}
   {if $canonical != ''}
      <link rel="canonical" href="{$canonical}" />
   {elseif $page_name == 'lbjaar'}
      <link rel="canonical" href="http://www.uisge-beatha.eu/logboek/" />
   {/if}
   {tracewatch}
   {cms_selflink dir="start" rellink=1}
   {cms_selflink dir="prev" rellink=1}
   {cms_selflink dir="next" rellink=1}
   
   {global_content name='UB_head_js'}
   {capture assign="metadescription"}{content block="metadescription" wysiwyg='false' default=''
   label='Meta Description' rows='4' 
   description='Logboek van zeilboot Uisge Beatha, beschrijving van tochten, ervaringen en klussen die aan mijn Hanse 311 door mij worden of zijn gedaan.'}{/capture}

   {CGFeedMaker action='autodiscovery' feed='logboek'}
   {analitics urchin="UA-3361592-1"}
</head>

Re: MetaMax Module Observations

Posted: Sun Feb 26, 2012 8:29 pm
by oliverseddon
I'll answer question 2 first.

2. Are your JS calls in a GCB and get called in every template? If so just add them to the Additional content block under the HTML settings tag rather than putting them in the GCB.

3. Have you chosen an option from the dropdown too? For the tracking code to appear you need both setting.

4. I would make you head call look more like this:

Code: Select all

{capture assign='get_content'}{content}{/capture}
{if !isset($pagetitle)}
   {capture assign='pagetitle'}{title}{/capture}
{/if}
{MetaMax}
{strip}
{process_pagedata}
{/strip}
{tracewatch}
{CGFeedMaker action='autodiscovery' feed='logboek'}
And tick the generate opening and closing head tags options. Also add this to the base of your template, just before the closing <__body> tag.

Code: Select all

 {capture assign="metadescription"}{content block="metadescription" wysiwyg='false' default=''
   label='Meta Description' rows='4' 
   description='Logboek van zeilboot Uisge Beatha, beschrijving van tochten, ervaringen en klussen die aan mijn Hanse 311 door mij worden of zijn gedaan.'}{/capture}

Let me know how it looks then.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 5:43 am
by Gregor
Great the time you take to help, thanks!

An answer regarding question 2. I have one template and with some smarty logic it becomes either a three or a two column template.

The GCB {global_content name='UB_head_js'} has the following code:

Code: Select all

{cms_jquery cdn='true' exclude='jquery.ui.nestedSortable-1.3.4.js, jquery.json-2.2.js, jquery-ui-1.8.14.min.js'}

{literal}
   <__script__ type="text/javascript" src='http://www.uisge-beatha.eu/uploads/Javascripts/cycle.js' defer="defer">
   </__script>

   <__script__ type="text/javascript">
     $(document).ready(function() {
     $('.slider').cycle({
       fx: 'scrollUp',
       timeout: 8000,
       pause: 2
       });
      });
   </__script>
{/literal}
In the MetaMax HTML block I put:

Code: Select all

{cms_jquery cdn='true' exclude='jquery.ui.nestedSortable-1.3.4.js, jquery.json-2.2.js, jquery-ui-1.8.14.min.js'}

   <__script__ type="text/javascript" src='http://www.uisge-beatha.eu/uploads/Javascripts/cycle.js' defer="defer">
   </__script>

   <__script__ type="text/javascript">
     $(document).ready(function() {
     $('.slider').cycle({
       fx: 'scrollUp',
       timeout: 8000,
       pause: 2
       });
      });
   </__script>
So basically removed the {literal}-tags. The site errors on "{cms_jquery cdn='true' exclude='jquery.ui.nestedSortable-1.3.4.js, jquery.json-2.2.js, jquery-ui-1.8.14.min.js'}" by showing it on avery page of the site on the very top. For my understanding, is it correct that you cannot have tags in the HTML block?

Ad 3. I have chosen the option 'Single domain'.

Ad 4. I'll work on this one somewhere during the day and let you know the outcome.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 2:40 pm
by oliverseddon
The additional block does not accept smarty variables.

I have however just released v1.7.3 and this includes a cms_jquery tab, meaning you can just put those parameters in without need to add the {cms_jquery} call.

You can get the version 1.7.3.xml file here:

http://www.threefolddigital.co.uk/metamax/downloads/

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 3:53 pm
by Gregor
I installed the update, thanks for that! Very easy to do.

- Set the jquery-parameters.
- Put the code you mentioned to the lower part of the template
- Google's tracking code does not show up, so I still use {analitics urchin="UA-3361592-1"}
- My code for the head looks like:

Code: Select all

{capture assign='get_content'}{content}{/capture}
{if !isset($pagetitle)}
   {capture assign='pagetitle'}{title}{/capture}
{/if}
{MetaMax}
{strip}
{process_pagedata}
{/strip}
{tracewatch}
{CGFeedMaker action='autodiscovery' feed='logboek'}

   {if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}
   {if $canonical != ''}
      <link rel="canonical" href="{$canonical}" />
   {elseif $page_name == 'lbjaar'}
      <link rel="canonical" href="http://www.uisge-beatha.eu/logboek/" />
   {/if}
   {tracewatch}
   {cms_selflink dir="start" rellink=1}
   {cms_selflink dir="prev" rellink=1}
   {cms_selflink dir="next" rellink=1}
   
   {analitics urchin="UA-3361592-1"}
If you look at the page source [url]view-source:http://www.uisge-beatha.eu/[/url], you notice that the following code is put between </head> and </__body>
<link rel="alternate" type="application/rss+xml" title="RSS feeds van Uisge Beatha" href="http://www.uisge-beatha.eu/feeds/logboek.html" />


<link rel="canonical" href="http://www.uisge-beatha.eu/" />
<link rel="start" title="Thuishaven Uisge Beatha" href="http://www.uisge-beatha.eu/" />

<link rel="next" title="Achtergrondinformatie bij de Hanse 311" href="http://www.uisge-beatha.eu/over-boot-en ... e_311.html" />


<__script__ src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</__script>
<__script__ type="text/javascript">
try {
_uacct = "UA-3361592-1";
urchinTracker();
} catch(err) {}</__script>

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 4:01 pm
by oliverseddon
I have just realised, you have put your Analytics ID in the wrong place. There is the input for an Analytics ID and on for a Web Master ID.

Yours is in the wrong one.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 4:10 pm
by oliverseddon
You need to add UA-3361592-1 to the Web Property ID under the Analytics tab.

I have amended the title to say (ie UA-XXXXXXXX-1) to make it slightly easier to understand, so that will appear in the next incarnation.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 4:12 pm
by oliverseddon
Also, to get your SRR tags etc to appear inside the <head> tag all you need to do is turn off the closing head tag option in MetaMax and manually add it to your template or GCB, where ever your RSS and canoical calls are.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 4:25 pm
by Gregor
oliverseddon wrote:You need to add UA-3361592-1 to the Web Property ID under the Analytics tab.

I have amended the title to say (ie UA-XXXXXXXX-1) to make it slightly easier to understand, so that will appear in the next incarnation.
In the attached file I'll show you what I see in "Analytics Account settings"

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 4:28 pm
by Gregor
oliverseddon wrote:Also, to get your SRR tags etc to appear inside the <head> tag all you need to do is turn off the closing head tag option in MetaMax and manually add it to your template or GCB, where ever your RSS and canoical calls are.
Done, and that works ;)

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 4:29 pm
by oliverseddon
Single domain isn't working.

Try the Multi top level one, I'll sort Single Domain for the next release, which won't be long.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 5:10 pm
by Gregor
oliverseddon wrote:Single domain isn't working.

Try the Multi top level one, I'll sort Single Domain for the next release, which won't be long.
:-) That works

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 5:12 pm
by oliverseddon

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 9:16 pm
by Gregor
Man, you're fast. Changed it and it all seems to work now :) Thanks for your patience and time!

Regarding the key words I'd like to suggest something like this:
<meta name="keywords" content="{search action='keywords' count='15'}" />

Or maybe the tag {autometa} can be of any help.

Re: MetaMax Module Observations

Posted: Mon Feb 27, 2012 9:39 pm
by oliverseddon
No problem, glad someone else is using the module, and it's helped me develop the module further.

What would the keywords suggestion achieve that the current keywords functionality does't already do?