× All questions about EDocman extension

Frontend editing

  • astrid
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 months 1 week ago #129216 by astrid
Frontend editing was created by astrid
How is it possible to set user permissions in front end by font end editing?

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #129218 by Mr. Dam
Replied by Mr. Dam on topic Frontend editing
Hi,
You can read about it through this documentation: edocmandocs.ext4joomla.com/getting-started/edocman_acl
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • astrid
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 months 1 week ago - 8 months 1 week ago #129219 by astrid
Replied by astrid on topic Frontend editing
Thank you for your quick reply.
I did not express myself clearly. I'm logged in as a super admin in the front end. How can I change the permissions for a document I have uploaded here?
I only want to associate this document with specific user groups. I found the normal form. In this form I can associate one user group. But in back end it is possible to associate more than one user group.
Last edit: 8 months 1 week ago by astrid.

Please Log in or Create an account to join the conversation.

  • astrid
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
8 months 1 week ago #129220 by astrid
Replied by astrid on topic Frontend editing
I helped myself. I made an override of the file
/joomla/templates/mytemplate/html/com_edocman/document/edit.php

and made added the language string EDOCMAN_EXTRA_CATEGORY to the site part.

Here the relevant part of my override (line 81 to 170)


<?php
if ($this->catId)
{
?>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('category_id'); ?>
</td>
<td class="edocman_field_cell">
<input type="hidden" name="jform[category_id]" value="<?php echo $this->catId; ?>" />
<?php echo $this->categoryTitle; ?>
</td>
</tr>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('extra_category_ids'); ?>
</td>
<td class="edocman_field_cell">
<input type="hidden" name="jform[extra_category_ids]" value="<?php echo $this->catId; ?>" />
<?php echo $this->categoryTitle; ?>
</td>
</tr>

<?php
}
else
{
?>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('category_id'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('category_id'); ?>
</td>
</tr>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('extra_category_ids'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('extra_category_ids'); ?>
</td>
</tr>

<?php
}
?>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('url'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('url'); ?>
</td>
</tr>
<?php
if($this->config->show_thumb_form){
?>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('image'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('image'); ?>
</td>
</tr>
<?php } ?>
<tr>
<td class="edocman_title_col">
<?php echo $this->form->getLabel('filename'); ?>
</td>
<td class="edocman_field_cell">
<?php echo $this->form->getInput('filename'); ?>
<?php
if ($this->item->id) {
?>
<span style="padding-top: 3px; display: block;">
<?php
if ($this->item->original_filename) {
echo JText::_('EDOCMAN_FILE').": ";
?>
<a href="<?php echo 'index.php?option=com_edocman&task=document.download&id='.$this->item->id; ?>&Itemid=<?php echo EdocmanHelper::getItemid(); ?>"><?php echo $this->item->original_filename ; ?></a>
<?php
}
?>
</span>
<?php
}
?>
</td>
</tr>

Please Log in or Create an account to join the conversation.

More
8 months 1 week ago #129221 by Mr. Dam
Replied by Mr. Dam on topic Frontend editing
Hi Astrid,
I am understand your idea, at frontend, we don't allow user to have much power to setup access levels for document as in the Backend side. You can open file: root -> administrator -> components -> com_edocman -> view -> document -> tmpl -> default.php and check line: 234 to 265, that code part is used to show the Access level fields when you add/edit document at Backend side. You will also need to update JS code at bottom of that file too
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
3 weeks 1 day ago #135465 by Tony LaRosa
Replied by Tony LaRosa on topic Frontend editing
Mr. Dam,
I tried the link you had posted in one of your replies, but it came back with an error: edocmandocs.ext4joomla.com/getting-started/edocman_acl.

I also so all the changes suggested by another user, however, I don't want to be changing PHP code. Isn't there a setting in the Global Configuration somewhere?

My issue is only allowing the Administrator privileges to edit my site, but it appears the Public has those privileges too.

Please Log in or Create an account to join the conversation.

More
3 weeks 1 day ago #135488 by Mr. Dam
Replied by Mr. Dam on topic Frontend editing
Hi Tony,
You can read the Edocman documentation through this link: edocmandocs.joomservices.com/getting-started/edocman_acl
Thanks
Dam
The following user(s) said Thank You: Tony LaRosa

Please Log in or Create an account to join the conversation.

More
1 week 2 days ago #135861 by Tony LaRosa
Replied by Tony LaRosa on topic Frontend editing
Thank you.

Please Log in or Create an account to join the conversation.

More
1 week 19 hours ago #135915 by Mr. Dam
Replied by Mr. Dam on topic Frontend editing
You're welcome, Tony

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam