Вопрос

I would like to prevent users from editing article and modules in the front end. I know how to do it using a hack-ish way using CSS like:

.jsn-article-toolbar{display:none}

But is their any proper way to disable this functionality in the joomla administration area?

Please note that I still need the users to edit articles in the back-end.

Thanks

Это было полезно?

Решение

If you mean "is there any proper way to disable this functionality using the joomla administration area" the answer is no (or, at least, I didn't found it). What you can do is create an override of the com_content module in your template (if it doesn't have that already). You can create it using admin panel. Go to
Extensions -> Template Manager -> Templates -> {yourtemplate} -> Create Overrides -> com_content -> article
then go to
Extensions -> Template Manager -> Templates -> {yourtemplate} -> Editor -> html -> com_content -> article -> default.php
find "$canEdit = $params->get('access-edit');"
and replace with "$canEdit = FALSE;"

This edit is template-dependent so you have to do it for every template you use. You can also create a parameter for the template to control this in template options.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top