Loading...
 
Features / Usability

Features / Usability


Make a page visible together with its included image

posts: 9 Italy

Dear Community,

Please imagine a wiki page with an included image, both viewable by registered users only (according to wiki and gallery global permissions).
Later, I want an admin to make the page visible to anonymous users together with the included image, by simply assigning the wiki page a category.

Can TikiWiki do it. If so, how?

As from my tests, the wiki page becomes visibile to anonymous users, but the image remains invisible.

Any help is appreciated.
Kind regards,
Luca

posts: 126886 United Kingdom

Hi Luca

Unfortunately (as far as i know) you can't set the permissions of an included file or image from the page it's in - would be nice though!

So you'll have to recategorise the image as well as the page. Which version of Tiki are you using? There's a fix in 22.x which we're planning to backport into 21.x that properly sets the permissions of a file from the category of the gallery it's in, so you could just move the image to a "public" filegal.

Another thing you might like to look into is the Category Transitions feature?

posts: 9 Italy

Dear Jonny,

Thank you very much for your kind reply.
I faced this problem with Dokuwiki and it's sad to see that Tiki behaves the same.

In my (inexperienced) opinion, an option should allow administrators to simply make users able to see any content included in any visible wiki page, no matter which permissions the contents have. I hoped that the property "Respect permissions for backlinks to view a file" could help... Can't it? I can't even find it in documentation :-(

PS: thanks for suggesting "Category Transitions". It helps a little.


posts: 8633 Israel

What about having a dynamic block included in the page using a plugin-list ? (include plugin)
You have your wiki page with the father permission (from category "visible to anonymous) and the image in a bloc with a filter to match the same category.

Depending of the use case, I was also thinking of the group plugin. You can create a "special" group that act like an on and off (but it will be more global).

... May be you can have it the other way around.
Have a single category per page + content together, IE: mypage(wiki page), mypageimage(file) with the categorised under "mypage" category and then you set THIS category permission on/off and it will be applied on all elements (wiki page and file)

Again it depends of your use case... and number of pages. 😉

posts: 9 Italy

Dear Bernhard,

Thank you very much for your reply.

Unfortunately, if I understand well your suggestions, they don't seem to fit my needs because:

- The "dynamic block" solution allows me to 'filter' an image among others, but it doesn't seem to be my case. In fact, for every page my Registered users create a single image that, together with the page, must be hidden to Anonimous at the beginning and visible after an Admin approved the page.

- The "group plugin" solution doesn't seem to fit my needs too, because it hides the page content to Anonymous, but doesn't hide the page itself; Moreover it would hide the image included in the page, but it wouldn't prevent the image from being listed in a search results; And finally, it would force the Admin to edit the page to remove the group plugin on page approval.

- The "category" solution also desn't fit my needs, because it: 1) forces the Registered users to create a dedicated category for every couple of page+image they create and 2) forces the Admin to delete the category on page approval.

I also investigated the plugin List Execute hoping to be able to list all the images included in any pages visible to Anonymous in order to set them visible as well, but it doesn't seem possible.

Summarizing, perhaps my low knowledge doesn't allow me to fully understand your advices, but I sincerely thanks you for trying.

Kind regards,
Luca

posts: 8633 Israel
Luca wrote:
In fact, for every page my Registered users create a single image that, together with the page, must be hidden to Anonimous at the beginning and visible after an Admin approved the page.


This and this:

Luca wrote:
because it hides the page content to Anonymous, but doesn't hide the page itself


I don’t get it...

You user create a page, upload an image or it is something else ?
If your user create all:
Your can have a group created per user (check admin=>log in options).
If you have a group per user you can set that by default for this group that anon are not able to see (or other registered). Then manually (after admin approval) you set the permission. (page view and file download... you have option to omit in search object that are not visibles.
(not tested lately I’ve seen the options)

Luca wrote:
1) forces the Registered users to create a dedicated category for every couple of page+image they create and 2) forces the Admin to delete the category on page approval.


Mmm... I wonder if there is not a mechanism in Tiki that auto create a category at the user creation. You keep forever the category, just play with its permissions and inheritance.

A bit like the group option above, one all set, it would be the easiest way to manage at the user (admins) level.



Another thing, more complicate to put in place would be to use a tracker item per user (store user information in a tracker), have some categories to manage your case (approved, not approved, etc) and there, attach content and files to the item (field wiki page and field file) they all will be under the control of a group field or a category field.


There is also an approval system in Tiki for wiki page, did you tested what it does with the picture inserted ?


When can we talk about this ? ;-)
I’ll be glad to help, contact me.

posts: 9 Italy

Dear Bernard,
sorry for my late reply, I took some time to do several tests, but I can't solve.

I'm also sorry to have a limited undestanding over your advices.
I can only try to make my need clearer:

STEP ONE: Content creation
I want to have several registered users able to create wiki pages with zero or more included images.
They don't have to care about permissions, categories and galleries.
The content they create must be visible to registered and admins users only.
Should this help: I don't need they to re-use any existing image. It's ok if they upload every image they need at the moment. (of course, I hope that admin are always able to find and delete any orphan images at any time).

STEP TWO: Content approval
Later, an admin will open one of the created pages and will make it visible to anonymous by simply approving the page. Any included image will follow the page destiny.


Should it be possible, I'd be glad to know how to create such an evironment.
Should it you prefer, I can also further clarify my need via email.

Thanks a lot again,
Luca


posts: 126886 United Kingdom
Just wondering, does using wiki page attachments using file galleries help with this? A separate file gallery is created for each page, so it might be easier to fix the perms to match the page's perms in that case...
posts: 9 Italy

Hi Bernard,
thank you very much for your kind availability!

I'm gonna taking my daugther to the grandfathers now :-) but I'll be very glad to contact you as soon as possible.

I wish you a happy sunday,
Luca

posts: 9 Italy

Dear Jonny,

Thank you for your attention again.

Perhaps your idea is meant for developers... but shoud it be addressed to me, I am sad to say that I don't know of to proceede.

Kind regards,
Luca


posts: 9 Italy

Yes Bernard,

Our meeting was quick, kind and effective and I understood well how to attach the images to the page instead than saving them in a gallery, in order to have their permissions following the page permissions.

Great job! My problem is SOLVED.
Thanks a lot,
Luca