Re: [Tiki-devel] Blog / Articles made with Trackers?
Jonny Bradley via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Torsten Also nice to see you around here again! :) > On 25 Apr 2021, at 00:36, Torsten Fabricius via TikiWiki-devel <[email protected]> wrote: > > Hello Devs, > > I am always remembering Jonny's idea to use the Tracker feature to create articles and or blogs. Guess i should answer then ;) > Currently I am planning a new website and I am considering to use trackers instead of blogs or articles. > > My concerns are the following: > > 1. How to get a "next / previous" functionality (similar as with the Blogs feature)? With little list plugins of course :) Something like... hmm, actually that's really quite tricky, this almost works: {LIST()} {filter type="trackeritem"} {filter field="tracker_id" exact="4"} {filter field="object_id" exact="{{itemId}}"} {OUTPUT()} ! {display name="title"} {display name="tracker_field_foo" format="trackerrender"} {display name="date"} ||{display name="prev"} | {display name="next"}|| {OUTPUT} {FORMAT(name="prev")}{display name="wikiplugin_list" format="wikiplugin" content="{filter type=trackeritem} {filter field=tracker_id exact=4}{sort mode=date_desc}{pagination max=2}{filter range=date from=2000-01-01 to=%date%}{OUTPUT()}[{{page}}?itemId={display name=object_id}|{display name=date}]{OUTPUT}{ALTERNATE()}prev{ALTERNATE}"}{FORMAT} {FORMAT(name="next")}{display name="wikiplugin_list" format="wikiplugin" content="{filter type=trackeritem} {filter field=tracker_id exact=4}{sort mode=date_asc}{pagination max=2}{filter range=date from=%date% to=2030-12-31}{OUTPUT()}[{{page}}?itemId={display name=object_id}|{display name=date}]{OUTPUT}{ALTERNATE()}next{ALTERNATE}"}{FORMAT} {LIST} but those pref and next formats are horrible and it finds the current one and the one before and after, so close but no cigar i guess ;) Would be easier using a smarty template (or tplwiki page) so will try that another time... > 2. How to get a "translation of" functionality? Translated version of tracker-articles should not be shown as next articles, but as language alternatives, replacing if existing (similar as with the Articles feature). Hmm, no idea, sorry :( > 3. If I use a multilingual tracker, I will have many empty language fields per tracker field - one for each language. I find this not very convenient from the point of usability. I think it should be possible to show/hide translated or non translated fields. Indeed, that's not had any attention since the tracker revamp many years ago... https://dev.tiki.org/Make-a-wish :) > 4. I think we have a configuration to show tracker items only in page view (for non-admins). Yes, it's on the tracker properties permissions panel. > Is there any experience, respectively is there anybody who already uses Trackers instead of Articles or Blogs and has solved the above issues or could help voluntarily? Maybe some pointers or example templates? A profile would be nice, might happen one day... Will get back to you with the pref/next buttons one day, unless anyone else has something working already? I guess for now using blogs is the only way ;) jb > I am not sure if I can get there alone (at least in a short period to quick release). > > Any hint is appreciated. > I need to deside, wether I go for Trackers for this website or if I start with Articles or with Blogs and work it out with Trackers later for this or another project. I am unsure about the amount of work and time to get there. > > Best regards, > Torsten > > > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >