[Zope-CMF] Re: [Plone-users] Forum links and labels on RC 1
J C Lawrence
claw@kanga.nu
Fri, 07 Feb 2003 18:42:50 -0800
On Fri, 07 Feb 2003 19:38:04 -0500
Roderick Silva <rodericksilva@msn.com> wrote:
> [ forum_label_topic_home | forum_label_post_message |
> forum_label_search ]
> forum_label_number_of_threads: 1
> This is what the labels/links on my forums look like. Does anybody
> have any ideas where I should start looking?
In CMFForum? Yeah, I nuked this a few days back. Urk, I don't recall
the exact deltas (and don't have time right now), but here are my skins:
forum_post_message:
--<cut>--
<html metal:use-macro="here/main_template/macros/master">
<body metal:fill-slot="main">
<div tal:define="postDest here/getForum">
<div metal:use-macro="here/forum_post_macros/macros/post_body">
posting form
</div>
</div>
</body>
</html>
--<cut>--
post_post_message:
--<cut>--
<html metal:use-macro="here/main_template/macros/master">
<body metal:fill-slot="main">
<div metal:use-macro="here/forum_post_macros/macros/reply_header">
reply header
</div>
<br />
<div tal:define="postDest nocall:here">
<div metal:use-macro="here/forum_post_macros/macros/post_body">
posting form
</div>
</div>
</body>
</html>
--<cut>--
post_view:
--<cut>--
<html xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
metal:use-macro="here/main_template/macros/master"
i18n:domain="plone"
>
<body>
<div metal:fill-slot="main">
<span class="message_header">
<span tal:condition="here/inReplyTo"
tal:define="reply here/inReplyTo">
<b i18n:translate="forum_label_in_reply_to">In Reply To</b>:
<a href="#" tal:attributes="href reply/absolute_url"
tal:content="reply/title_or_id">Title</a>
<br />
</span>
<span tal:define="allReplies here/nextReplies;
replies python:modules['ZTUtils'].LazyFilter(allReplies, skip='')"
tal:condition="python: len(replies)">
<span tal:define="reply python:replies[0]">
<b i18n:translate="forum_label_next_reply">Next Reply</b>:
<a href="#" tal:attributes="href reply/absolute_url"
tal:content="reply/title_or_id">Title</a>
<br />
</span>
</span>
<span tal:define="allPrev here/previousMessages;
prevs python:modules['ZTUtils'].LazyFilter(allPrev, skip='')"
tal:condition="python: len(prevs)">
<span tal:define="prev python:prevs[0]">
<b i18n:translate="forum_label_previous_reply">Previous Message</b>:
<a href="#" tal:attributes="href prev/absolute_url"
tal:content="prev/title_or_id">Title</a>
<br />
</span>
</span>
<span tal:define="allNext here/nextMessages;
nexts python:modules['ZTUtils'].LazyFilter(allNext, skip='')"
tal:condition="python: len(nexts)">
<span tal:define="next python:nexts[0]">
<b i18n:translate="forum_label_next_message">Next Message</b>:
<a href="#" tal:attributes="href next/absolute_url"
tal:content="next/title_or_id">Title</a>
<br />
</span>
</span>
</span>
<br />
<span class="message_header">
<div><img src="img/icons/folder.gif" alt=""
tal:attributes="src string:/${here/getIcon};
alt here/meta_type;" /> <b tal:content="here/title_or_id">Title</b></div>
<span i18n:translate="label_author"> Author</span>: <a href="" title="Send Email."
tal:omit-tag="not: here/email"
tal:attributes="href string: mailto:${here/email};
title string: ${here/email}"><b tal:content="here/author">Author</b> <img tal:condition="here/email" src="email_button.gif" alt="Send Email" border="0" /></a><br />
<span i18n:translate="label_date"> Date</span> : <span tal:replace="python:here.created.aCommon()">Jun 2, 2002 2:42 pm</span>
</span>
<hr />
<div class="message_body" tal:content="structure here/CookedBody">Cooked Body</div><hr />
<div class="comments" tal:condition="here/hasAttachments">
<strong i18n:translate="forum_label_attached_files"> Attached Files </strong>:<br />
<span tal:repeat="file here/getAttachments">
<a href=""
class="comment"
tal:attributes="href string:${file/absolute_url}/view">
<span tal:replace="file/getId">Filename</span>
(<span tal:replace="python:here.getObjSize(file)">Size</span>)
</a><br />
</span>
<hr />
</div>
<div class="comments" tal:condition="here/children">
<strong i18n:translate="label_comments"> Comments </strong>:
<span>order by
<a href="#" tal:attributes="href string:${here/absolute_url}?sort_key=creation"
tal:omit-tag="python:request.get('sort_key','creation')=='creation'">[<span i18n:translate="label_date">Date</span>]</a>
<a href="#" tal:attributes="href string:${here/absolute_url}?sort_key=author"
tal:omit-tag="python:request.get('sort_key','creation')=='author'">[<span i18n:translate="label_author">Author</span>]</a>
<a href="#" tal:attributes="href string:${here/absolute_url}?sort_key=title"
tal:omit-tag="python:request.get('sort_key','creation')=='title'">[<span i18n:translate="label_subject">Subject</span>]</a>
</span><br />
<div tal:replace="structure here/viewMessagesTree">tree</div>
</div>
<div tal:condition="not:here/children">
<b i18n:translate="forum_description_message_has_no_reply">This message has no replies yet.</b>
</div>
</div>
<div metal:fill-slot="sub">
</div>
</body>
</html>
--<cut>--
--
J C Lawrence
---------(*) Satan, oscillate my metallic sonatas.
claw@kanga.nu He lived as a devil, eh?
http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live.