This question is answered.


Permlink Replies: 6 - Pages: 1 - Last Post: 21-Jun-2019 01:24 Last Post By: RobM Threads: [ Previous | Next ]
AndreWolff

Posts: 1,715
Registered: 14-Dec-2007
How to disable the rows/columns settings group?
Posted: 20-Jun-2019 09:49
 
  Click to reply to this thread Reply
I want to prevent that the user generates multiple index pages.
So I want that he can’t set the rows / colums on the jAlbum pages tab.

What should I do to gray to rows / columns group on the pages tab?
RobM

Posts: 3,064
Registered: 4-Aug-2006
Re: How to disable the rows/columns settings group?
Posted: 20-Jun-2019 10:17   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
There is no public API that I can find, but I just ignore the row and cols settings. You can set rows and cols to zero in hints.jap and use ja:fileiterator with a start=0 as in Iterator tag
AndreWolff

Posts: 1,715
Registered: 14-Dec-2007
Re: How to disable the rows/columns settings group?
Posted: 20-Jun-2019 10:22   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
There is no public API that I can find
But with the Tiger skin it is disabled, so not all skins do get the same possibillities?
davidekholm

Posts: 3,550
Registered: 18-Oct-2002
Re: How to disable the rows/columns settings group?
Posted: 20-Jun-2019 11:33   in response to: AndreWolff in response to: AndreWolff
Correct
  Click to reply to this thread Reply
Use engine.setRows(0) in init.bsh and set the skin property enableThumbnailLayout to false
AndreWolff

Posts: 1,715
Registered: 14-Dec-2007
Re: How to disable the rows/columns settings group?
Posted: 20-Jun-2019 18:06   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
davidekholm wrote:
Use engine.setRows(0) in init.bsh
Yes, I did copy that already from the Tiger skin
and set the skin property enableThumbnailLayout to false
Yes that works, thanks!

Strange that this property is not used by the Tiger skin!

But even if it was used by the Tiger skin, I would not guessed that this should be used!

I think this is a very strange name, something like enableSetRowsAndCols I would have recognized!

BTW is there somewhere a description of fall current skin properties?
davidekholm

Posts: 3,550
Registered: 18-Oct-2002
Re: How to disable the rows/columns settings group?
Posted: 20-Jun-2019 18:15   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
Strange that this property is not used by the Tiger skin!

It IS used by Tiger too, see this line:
enableThumbnailLayout=false


I think this is a very strange name, something like enableSetRowsAndCols I would have recognized!

It follows the title name for that section of the UI

BTW is there somewhere a description of fall current skin properties?

Yes here: http://jalbum.net/api/se/datadosen/jalbum/SkinProperties.html
Note that the constants here can either be used by referring to SkinProperties.CONSTANT_HERE or directly by using the camelCaseFormatting, i.e. constantHere.
RobM

Posts: 3,064
Registered: 4-Aug-2006
Re: How to disable the rows/columns settings group?
Posted: 21-Jun-2019 01:24   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
The following are not shown in the edit skin properties window, which is the easiest way of setting skin properties:
ENABLE_THUMBNAIL_LAYOUT
PREVENT_COPY
SCRIPT_LANGUAGE
TRUE_ORIGINAL_PATH

The latter is presumably no longer needed for new skins, and possibly even skins a few years old. Script language is possibly the least needed setting to include in the editor window.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums