Any reason for the 4 task limit? Any issues with expanding the code to have more?
I changed the code to add a "Due:" before the due date but by doing that, it shows that prefix even if there is no task. Any easy way to keep that from showing up unless there is content in the field itself?
It is currently October 6th, 2024, 8:58 am
Remember the Milk - RTM
-
- Posts: 7
- Joined: November 5th, 2009, 4:26 am
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: Remember the Milk - RTM
It defaults to 4 tasks so that the skin is the same height as all the other Reader skins in Enigma (RSS, Gmail, Gcal, etc). But it would be extremely easy to expand. First, you just have to add to the RegExp string to account for the new items. Just tack this onto the end:Minjin wrote:Any reason for the 4 task limit? Any issues with expanding the code to have more?
I changed the code to add a "Due:" before the due date but by doing that, it shows that prefix even if there is no task. Any easy way to keep that from showing up unless there is content in the field itself?
Code: Select all
(?(?=.*<entry).*<link.*href=\"(.*)\".*<title.*>(.*)</title>.*<span class=\"rtm_due_value\">(.*)</span>)
As for the "Due:" issue, I think I have a way. Once you have the number of items that you want in the RegExp, change this part of it:
Code: Select all
<span class=\"rtm_due_value\">(.*)</span>
Code: Select all
<span class=\"rtm_due_value\"(.*)</span>
Code: Select all
Substitute=">","Due: "