[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cpx] Adding Junk mail to list of folders *Solution*
- Subject: [cpx] Adding Junk mail to list of folders *Solution*
- From: Matt Cohen <lists@xxxxxxxxxx>
- Date: Mon, 20 Nov 2006 11:57:03 -0800
I think someone just asked this, so I thought i'd propose one work-around.
*warning - I have almost no knowledge of XML and even less of the
inner workings of CPX and can promise with 99% certainty that the
next time you update CPX this will break, but here you go... *
I edited two files to get the Junk folder to show up on the
ControlPanel/mail/ home page, but not yet on the left side navbar.
This only works for users that HAVE a junk folder, naturally:
1)Edit /usr/local/cp/strings/en_US/mail.xml
Change:
<nv_trash>Trash</nv_trash>
to:
<nv_trash>Trash</nv_trash>
<nv_junk>Junk</nv_junk>
---
Change:
<wm_index_trash>Trash</wm_index_trash>
to:
<wm_index_trash>Trash</wm_index_trash>
<wm_index_junk>Junk</wm_index_junk>
2) edit /usr/local/cp/templates/default/mail/index.xsl
Change:
<a href="{concat($base_url, '/mail/wm_messages.xsl?folder=',
$trash)}"><xsl:value-of select="/cp/strings/wm_index_trash" /></a>
<br />
to:
<a href="{concat($base_url, '/mail/wm_messages.xsl?folder=',
$trash)}"><xsl:value-of select="/cp/strings/wm_index_trash" /></a>
<br />
<a href="{concat($base_url, '/mail/wm_messages.xsl?folder=',
$junk)}"><xsl:value-of select="/cp/strings/wm_index_junk" /></a> <br
/>
If anyone figures out how to add it to the left side navbar, let me know - Rus?
Matt
--
:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+:-:+
Matthew I. Cohen http://www.iwbyte.com/
It Won't Byte Web Design & Hosting. Ob. Quote: "Reality is for those
email: lists@xxxxxxxxxx people who can't handle Fantasy"
Home |
Main Index |
Thread Index