blojsom 3.2
I have an issue with the display of my recent comments when
clicking
on the template url corasponding to
the actual comment entries made. I'm running my own server
and have
blojsom configured via Mod proxy:
My set up is as follows:
# Mod_proxy_ajp
#
Alias /blog "/blojsom/blog/default/"
<Directory
"/blojsom/blog/default/">
Options Indexes FollowSymLinks
AllowOverride None
allow from all
</Directory>
ProxyPass /blog
ajp://localhost:8009/blojsom/blog/default/
ProxyPassReverse /blog
ajp://localhost:8009/blojsom/blog/
default/
My Properties relative to blog urls are as follows:
blog-url http://www2.macunkie
.com:82/blog
blog-base-url http://www2.macun
kie.com:82/blojsom
With this configuration ALL other functions work fine in my
blog.
My template code is as follows:
Template code:
<h5>
<img src="/images/comments.png"
height="16" width="16"
alt="Comments Icon"/>
Recent Comments
</h5>
<ul class="listbar">
#foreach ($comment in
$BLOJSOM_PLUGIN_RECENT_COMMENTS)
#FriendlyPermalink($comment.getEntry())
<li>
<a
href="$entryLink#comment-$comment.getId()">
$comment.getAuthor():
#set ( $sanitisedComment =
$comment.getComment
().replaceAll("<.*>",""))
#if ($sanitisedComment.length() > 20)
$sanitisedComment.substring(0, 20)...
#else
$sanitisedComment
#end
</a>
</li>
#end
</ul>
My plugin chain contains ... comment, comment-moderation.
My issue is that the comments are working as well as the
moderation.
When I click on the relative template link to view the
actual entry
it displays
http://www2
.macunkie.com:82/blog/General/$entry.getDateAsFormat
('yyyy')/$entry.getDateAsFormat('MM')/$entry.getDateAsFormat
('dd')/
$entry.getPostSlug()#comment-2
in my browser and not a page containing the comments.
I recently got help from Cliff and his suggestions were as
follows:
"I can't spot anything obviously wrong from the
code."
At the moment I suspect that it has something to do with the
line
#FriendlyPermalink($comment.getEntry())
somehow the FriendlyPermalink macro is not getting any value
from
$comment.getEntry(), and hence you're seeing those $entry
code in your
recent comments link.
Try adding the line:
Debugging entry here: $comment.getEntry() ...
right below the line
#foreach ($comment in $BLOJSOM_PLUGIN_RECENT_COMMENTS)
I tried his suggestions and got no new info. Can someone
tell me
why possibly the FriendlyPermalink macro is not getting any
value?
Thanks for any help,
Samuel.
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|