Skip to content

Commit

Permalink
Revert "Issue View Attachment in article view #40"
Browse files Browse the repository at this point in the history
This reverts commit e3f3b4b.
Waiting to have a better solution
  • Loading branch information
JLTRY committed Apr 18, 2024
1 parent d31bfe1 commit a05b3ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions attachments_for_content/attachments_for_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,6 @@ protected function getTextFieldName(&$row, $parent_entity)
{
$text_field_name = 'text';
}

if (($view == 'article') AND ($layout == 'blog') AND ($parent_entity == 'article'))
{
$text_field_name = 'text';
}

return $text_field_name;
}
Expand Down
8 changes: 4 additions & 4 deletions attachments_plugin/attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ public function onContentPrepare(Event $event)
if ( $parent_type == 'com_content' )
{
if (in_array($parent_entity, Array('featured', 'article'))) {
$parent_entity = 'article';
}
return false;
}
if ($parent_entity == 'category.title') {
// Do not add attachments to category titles (Joomla 3 only)
return false;
}
}


$parent_entity = 'category';
}

$input = $this->app->getInput();
Expand Down

0 comments on commit a05b3ed

Please sign in to comment.