-
Hi all, I'm trying to create a very restricted kind of archive for showing news.
The NewsBlock has a So the goal would be to not let the user choose the Site neither the Archive. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok so I started looking here and there and I came up with this solution in case someone finds it helpful: First of all according to my needs I removed the buttons in the post picker under
I think this is not strictly necessary to make it work, and probably a better option would be to show them or not according to a certain role or whatever, the future of my project will say. The next and final step would be to parameterize or obtain the It looks something like this:
|
Beta Was this translation helpful? Give feedback.
Ok so I started looking here and there and I came up with this solution in case someone finds it helpful:
First of all according to my needs I removed the buttons in the post picker under
core\Piranha.Manager\Areas\Manager\Shared\Partial\_PostPickerModal.cshtml
I think this is not strictly necessary to make it work, and probably a better option would be to show them or not according to a certain role or whatever, the future of my project will say.
The next and final step would be to parameterize or obtain the
siteId
and thearchiveId
that we want fixed for that specific Vue custom component in the select method, and then pass it to thepostpicker
.It looks something like this: