Loading...
 
Skip to main content

Features / Usability


Tracker - Editing and Pretty Tracker Templates

I'm new to TikiWiki(4.1) but followed the excellent PrettyTracker article to get me started on a new project: http://doc.tikiwiki.org/Pretty+Tracker?bl=yQuestion

A few questions I hoped folks could help with.

1) If I add a new field to my tracker, I want to make that field show up on all existing pages that were created. I can edit the tpl page, add some text and that text shows up on all pre-existing pages. But the new field does not. However, if I now create a new page, the field does show up on the newly created page. How can I get it to show up on all pre-existing pages without editing them all? I'm looking at have a couple hundred pages so it's a real concern.

2) Editing the content in the tracker. Following other instructions, it was easy to add an edit form on the page the Tracker Item is being displayed. But this distracts from the content itself. Is there a way to create a page that all of the created pages could link to to have their tracker item edited? Basically, something like the Add page in the example but it be an edit form instead?

Thanks in advance for your help!

Chad

So I figured out #1 there. I enabled "Dynamic Content" and took what was in the "display example tracker" page and put it in a dynamic content item instead. The page instead refers to the dynamic content entry. So as long as that entry item id never changes, I'm golden.

  1. 2 is still a big open for me and I'd love some advice. Specifying itemId doesn't seem to work .. and even then, not sure how I'd dynamically pass it anyways.


I made a page with the following, but it creates a form and the values are populated. Changing it to a TRACKERLIST just has it return a list that says it has no records. What am I doing wrong?

{ TRACKER(trackerId=1,
fields=1:2:3:4,
view=page,
itemId=2)}
{ TRACKER }


Finally got back to this and solved #2, thought others might like to know. I had to edit a core file: /lib/wiki-plugins/wikiplugin_trackerlist.php I'm using 4.2.

Right near the bottom of the file, just before the $tracker = $tikilib->get_tracker($trackerId, 0, -1) I added this line:
$smarty->assign('trackeritemids', $items'data'0'itemId');

Umm.. the above line should actually have some brackets, I'm referecing a multi-dimensionally array, just look higher in the file. But the forum is taking them out and I can't figure out how to get it to leave them in.

I use page trackers, each tracker item gets an associated wiki page. I should probably add some issets to be safe as well. Then in my template page, I added some text only viewable by the group that actually has the permissions. the link goes to: (tiki-view_tracker_item.php?itemId={$trackeritemids}&trackerId=1&show=view|Edit Item)

I suppose I could have called the variable $f_0 to keep consistant and f_0 I don't think ever get used, fields start at 1 I believe.

Hope this helps someone else!