|
Replies:
17
-
Pages:
2
[
1
2
| Next
]
-
Last Post:
6 Nov 26, 22:17
Last Post By: JeffTucker
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
How to disable Views menu
Posted:
30 Oct 26, 23:36
|
|
|
|
I tried adding disabledControls=viewsPanel to a skin's properties file but I can still add, view and edit a view. So how can I prevent views from being added as they are not fully compatible with Missive skin (only the 'main' image is shown in a view, the alternative is not picked up)
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 00:01
in response to: RobM
|
|
|
You could prevent processing of views with a test like this: currentFolder.getViewRoot() != null
But yes, much better to prevent the addition of views to the project in the first place. A user would be puzzled, since there would be a thumbnail for the view in Explore, but no output.
Of course, "a user would be puzzled" is perhaps a case of assuming a fact not in evidence. 
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 00:08
in response to: JeffTucker
|
|
|
|
Yes, and I could just make them excluded but best they can’t be added.
|
|
|
Posts:
4,230
Registered:
18-Oct-2002
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 12:35
in response to: RobM
|
|
|
In what regard does views break your skin? They should behave just like ordinary folders. Is it perhaps the image cross references that don't work? In that case, just set this skin property:
supportsInternalLinking=false
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 12:56
in response to: davidekholm
|
|
|
In what regard does views break your skin? They should behave just like ordinary folders. Is it perhaps the image cross references that don't work? In that case, just set this skin property:
supportsInternalLinking=false
The skin allows for two images where all the other skins allow only one slide image. The second image is in a folder at the same level as the main image, it has the same file name and the name of the folder is set by the user. So the views show only the first image on the page with the second image being shown separately on its own page.
The two images can be swapped or a slide over from one to the other. In short the skin treats both images as a single object (quantum entangled  )
Remember I made unorthodox skins 
|
|
|
Posts:
4,230
Registered:
18-Oct-2002
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 13:02
in response to: RobM
|
|
|
|
Just work through the AlbumObject API and you shouldn't need to give views special treatment. Just don't assume that the physical images are located under that folder.
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 13:22
in response to: davidekholm
|
|
|
Just work through the AlbumObject API and you shouldn't need to give views special treatment. Just don't assume that the physical images are located under that folder.
Sorry, you’ve lost me.
Try looking at this page, https://robm.jalbum.net/Missive%20Slides%20swap/slides/100-0305.html
The first image can be swapped by clicking on the arrows icon. The second image is actually in a subfolder called extras. That extras folder and its contents do not appear anywhere else in the album. If I added a view it would show the first image with the icon to swap, but the swap fails because the extras folder has not been copied by the view mechanism. Since the extras folder is not excluded as far as the views are concerned it is just another folder to be processed.
So, what API calls do you suggest?
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: How to disable Views menu
Posted:
31 Oct 26, 13:38
in response to: RobM
|
|
|
|
Yes, that's the issue. The core has no idea what the "extras" subfolder is all about, and can't possibly know what to do with them when a view is created.
Setting the skin properties to disallow internal linking doesn't address the issue - the user can still add views to the project, and at present there's no way to make those views work properly in this skin.
The more straightforward solution is to provide a supportsViews property. If the skin sets it to false, disable the context menu for adding views.
(My little NoPages utility skin is equally baffled by views. The user can add them to the project, but they don't produce any output. The skin doesn't produce any "pages," as the name implies!)
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: How to disable Views menu
Posted:
5 Nov 26, 23:20
in response to: RobM
|
|
|
|
I still would prefer a way of views being disabled but I can work around it by telling the (fictive) user views will be disabled if extra directories are used, or offering to abort the make process before it gets going.
|
|
|
Posts:
4,230
Registered:
18-Oct-2002
|
|
|
|
Re: How to disable Views menu
Posted:
6 Nov 26, 00:09
in response to: RobM
|
|
|
|
I must be thick. Please explain again why your skins bump into issues with views. The album link above is dead. For a skin, a view should look like an ordinary folder.
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: How to disable Views menu
Posted:
6 Nov 26, 00:14
in response to: davidekholm
|
|
|
|
The skin provides a way to swap out slide images, live, while viewing the album. Those alternative images are stored in a separate folder.
When you create a view, the relationship between a folder and its collection of alternate images can't be preserved. The core doesn't understand that those folders are connected to each other in any way. It sees them all as "just folders."
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: How to disable Views menu
Posted:
6 Nov 26, 00:32
in response to: JeffTucker
|
|
|
|
For very different reasons, my Venus skin is also incompatible with views. In short, the project contains folders, but the resulting album does not - all content is on one page, with separate sections for the folders. An alphabetic view, for example, would be utterly incompatible with that layout. If the user creates views, I just ignore them, with a warning in the top bar.
I'd like to be able to prevent them from creating views in the first place. But there's no way to do that.
|
|
|
Posts:
4,230
Registered:
18-Oct-2002
|
|
|
|
Re: How to disable Views menu
Posted:
6 Nov 26, 00:51
in response to: JeffTucker
|
|
|
v42 will respect this skin property: supportsViews=false
If set, views are skipped and a warning notification tells about it.
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: How to disable Views menu
Posted:
6 Nov 26, 00:58
in response to: davidekholm
|
|
|
|
|
My skin already does that on its own, and has done so for a long time. The earlyinit.groovy script filters out the unsupported stuff, ignores them, and warns the user that it has done so. That's a piece of cake. And that's probably what RobM should do.
ETA: screenshot.
You really should try making albums sometime with something other than the in-house skins. You're worse than the users. 
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: How to disable Views menu
Posted:
6 Nov 26, 09:03
in response to: davidekholm
|
|
|
v42 will respect this skin property: supportsViews=false
If set, views are skipped and a warning notification tells about it.
Thanks. I have fixed the broken link, I changed the images to something more appropriate.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|