In message <af64e6f6-39e6-46d5-a4ef-03d098c91...@posteo.net>,
=?iso-8859-1?Q?Marko_K=E4ning?= writes:
>
>On 24 Apr 2016, at 01:07 , Stephan Beal <sgb...@googlemail.com> wrote:
>
>> You need to edit the links in the menus to add parameters for the
>> settings you want. e.g. max is set using n=123.
>> 
>

>I know that I can do that, in principle, BUT next time I click the
>/timeline menu link I am back to the default settings for all three
>parameters, i.e. n=50 in this case.

You're missing what he is saying. He is saying change the Timeline
(/timeline) link in the menu.

When logged in as an admin, go to:

   Admin/Skins

You will see text that says:

 A "skin" is a combination of CSS, Header, Footer, and Details 

Choose Header.

The html/th1 mix that shows up in the textbox is the top section of
the pages.

Search for Timeline and you should see:

  menulink /timeline Timeline

Change
   /timeline
to
  '/timeline?n=100'

and click Apply changes. Now the default value when clicking Timeline
menu link is to show 100 changes.

I don't think there is an option to allow logged in users to set those
sorts of things on a per user basis. AFAIK there is no user data
stored other than a password. So you would need to figure out how to
create a user table to store user preferences. There are no custom
forms for users (i.e. a user equivalent of the admin/tickets
mechanism), you wouldn't be able to allow the user to edit things
without some changes to the fossil core code.

However once you had that info in the database, IIRC you can use th1 to
find out who the current user is. Then you can make sql calls into the
database. So I think in theory you could change/create a user schema
that holds personalized settings and use th1 to customize the menu
item.

--
                                -- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to