bug
avatar angieradtke
angieradtke
1 Feb 2024

Steps to reproduce the issue

I have created an override of an article view to restructure the content.
I have separated intro and full text and positioned the article image in between.

<?php echo $this->item->introtext; ?>
....
<?php echo LayoutHelper::render('joomla.content.full_image', $this->item); ?>
...
<?php echo $this->item->fulltext; ?>

As a result, the plugin for inserting the custom fields is no longer executed.
The reason for this is that it only reacts to intro ($item->introtext;) and entire text ($item->text)
Adding a function for $item->fulltext helps

Solution


 // Prepare the fulltext
              if (property_exists($item, 'text') && strpos($item->fulltext, 'field') !== false) {
            $item->fulltext = $this->prepare($item->fulltext, $context, $item);
        }


avatar angieradtke angieradtke - open - 1 Feb 2024
avatar joomla-cms-bot joomla-cms-bot - change - 1 Feb 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Feb 2024
avatar angieradtke angieradtke - change - 1 Feb 2024
Title
[4.xxx] {5.xx] plugin> content ->fileds prepare fulltext missing
[4.xxx] {5.xx] plugin> content ->fields prepare fulltext missing
avatar angieradtke angieradtke - edited - 1 Feb 2024
avatar angieradtke angieradtke - change - 1 Feb 2024
Labels Added: bug
Removed: No Code Attached Yet
avatar angieradtke angieradtke - labeled - 1 Feb 2024
avatar angieradtke angieradtke - unlabeled - 1 Feb 2024
avatar brianteeman
brianteeman - comment - 1 Feb 2024

Created the pull request for you #42744

avatar angieradtke
angieradtke - comment - 2 Feb 2024

Thanks Brian .-)

avatar alikon alikon - close - 2 Feb 2024
avatar alikon
alikon - comment - 2 Feb 2024

closing as we have a pr #42744

avatar alikon alikon - change - 2 Feb 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-02-02 07:33:29
Closed_By alikon

Add a Comment

Login with GitHub to post a comment