Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Getting Measure Map setup correctly with TXP
Hello everyone,
Just wondering if there was anyone out there testing Measure Map who has been able to set it up correctly for TXP? There is a section asking for the template language code used to represent comment and post unique id and I am not sure what to use. Does TXP have a tag for getting the unique id of a post or comment?
Any help would be greatly appreciated.
Thanks.
Offline
Re: Getting Measure Map setup correctly with TXP
Hi,
This should do the trick:
<code>
<script type=“text/javascript”><!—
if(!mmposts){var mmposts=[];}mmposts[mmposts.length]=”<txp:article_id />”;
//—></script>
<!— mmp mmid:<txp:article_id /> mmdate:<txp:posted /> mmurl:<txp:permlink /> mmtitle:<txp:title /> —>
</code>
Offline
Re: Getting Measure Map setup correctly with TXP
thanks aloicious, unfortunately that didn’t seem to work. I wonder if I am doing something else wrong.
Where exactly did you place the code?
Offline
Re: Getting Measure Map setup correctly with TXP
I placed the code in my ‘default’ (article) form, just above where the default <code><hr class=“separator” /></code> sits.
Offline
Re: Getting Measure Map setup correctly with TXP
sigh…still doesn’t seem to work. This is what I have in my ‘default’ (article) form:
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<small><txp:posted /> · <txp:permlink>permalink</txp:permlink></small>
<txp:if_individual_article>
<txp:body />
</txp:if_individual_article>
<txp:if_article_list>
<txp:kgr_safe_excerpt words="50" linktext=" read more..." />
</txp:if_article_list>
<!-- Measure Map-->
<script type="text/javascript"> < !--
if(!mmposts){var mmposts=[];}mmposts[mmposts.length]="<txp:article_id />";
//--></script>
<!-- mmp mmid:<txp:article_id /> mmdate:<txp:posted /> <txp:posted format="%Y%m%d%H%M%S" /> mmurl:<txp:permlink /> mmtitle:<txp:title /> -->
<div class="horiz-sep"><img src="/images/horiz-sep.gif" alt="Horizontal Seperator" /></div>
Any ideas as to what seems wrong?
Note: Please see below for correct date format
Last edited by axle_foley00 (2005-11-21 03:21:24)
Offline
Re: Getting Measure Map setup correctly with TXP
Well I’m not sure actually… in fact I just discovered that I’m not logging ‘posts’ in MM. I think perhaps the mmdate variable isn’t using a correct date format and could be spoiling the tracker somehow.
Offline
Re: Getting Measure Map setup correctly with TXP
Nevermind, it seems to be working now. Thanks a whole lot aloicious. Much appreciated. I got a response from the guys at MM and this is should work:
<txp:posted format="%Y%m%d%H%M%S" />
Hope that helps also.
Last edited by axle_foley00 (2005-11-21 03:26:06)
Offline
Re: Getting Measure Map setup correctly with TXP
Excellent! Thanks :)
Offline
Re: Getting Measure Map setup correctly with TXP
No problem, glad we were able to help each other out, along with help from the MM crew. Are your comments being tracked?
Offline
Re: Getting Measure Map setup correctly with TXP
No, not yet. I’m trying to discover a way of getting the comment unique id…
Offline
Re: Getting Measure Map setup correctly with TXP
Well this is what the guys at MM said to try:
<txp:comment_id />
Though I still haven’t got my comments stats working yet either.
Offline
#12 2005-11-21 04:55:27
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Getting Measure Map setup correctly with TXP
Glad the original problem was resolved. Please create new threads for any existing issues, so that others will be able to find and help you fix the problem(s). :)
Offline