How to give public access to files under webconten

2019-08-12 01:50发布

I have a domino application with XPages that i want to be public. So, i set in the ACL the "Default" to Depositor level with read public documents option, so as to make it public.

When i want to use an image resource i go to its properties security tab and i enable the "available to public access users" checkbox.

Now, I want to use font-awesome in my application and i have font-awesome's folder with its subfolders and files under webcontent folder.

How can i make them public? (in a non-public app, font-awesome works normally with font-awesome's folder under webcontent folder)

2条回答
我命由我不由天
2楼-- · 2019-08-12 02:09

I simply created an agent to set the flag. You can get the code here. I use it for an Angular app that I have added to the NSF.

HTH /John

查看更多
Melony?
3楼-- · 2019-08-12 02:19

They still get registered as design notes inside the NSF (which is why they're picking up the default visibility), so I think the only real option is to run an agent to update their visibility, explicitly. Sven Hasselbach has blogged about this topic a couple times (at least on interacting with items in the WebContent folder, programmatically) and is worth reading. Ultimately, I try to put these sorts of public agnostic, common resources into my Domino /Data/domino/html/ path, so as to have it always public (that path is always publicly visible), and available to be set in a theme .

[Update] See the link Per Henrik Lausten posted in the comments to the Q for details. [/Update]

查看更多
登录 后发表回答