Skip to main content

Questions tagged [content-plugin]

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

How to set and use a global variable within a content plugin?

It's probably a duplicate. Anyhow, I am writing a J5 content plugin using onContentPrepare event. It turns out, that this plugin is called several times before the page is sent to the browser. I want ...
Plamen's user avatar
  • 745
1 vote
1 answer
31 views

Is it possible to process content plugins before returning articles in Web Services?

Imagine a have a list of content plugins installed on joomla like: Snippets LoadModule etc... I have an article with the following content: <p>{snippet id="1"} {loadmoduleid 1}</p&...
Exprove's user avatar
  • 147
0 votes
2 answers
46 views

What are some options to show different parts of an article to different users?

I have some information/data that is personal (not necessarily secret) and I want a menu entry to show the information relevant for the logged in user. On the page there are also some common ...
thoni56's user avatar
  • 277
0 votes
0 answers
57 views

Plugin That Copies Menu Item With Its Module Assignments Does Not Work on Joomla 4

I am trying to create a Joomla 4 Plugin that copies a menu item with its module assignments. My code works well on J3, but not J4. What am I missing? Here is my plugin's code: <?php /** * @package ...
wisdom's user avatar
  • 21
2 votes
1 answer
162 views

Joomla 4 Plugin to overwrite value of a custom field

I need a Joomla 4 Plugin to overwrite a marker in Custom Fields of type text or textarea with the article's title. I added a onPrepareContent() method where I have access to the articles title as well ...
cappu's user avatar
  • 169
2 votes
1 answer
263 views

Plugin to manipulate form data onContentBeforeSave

For a Joomla 4 project I wrote a Content Plugin to grab video thumbs from Video-URLs (Vimeo) the user adds into Custom form field of a frontend form. The following code successfully gets the video ...
cappu's user avatar
  • 169
0 votes
1 answer
277 views

Custom plugin doesn't even seem to load on Joomla 4

As a sort of newbie developer with php/Joomla, I created a content plugin for Joomla 3 which pretty much did what I wanted and expected... I then decided to migrate it to Joomla 4 following the very ...
Phil91's user avatar
  • 31
1 vote
1 answer
102 views

Simple Joomla plugin not working on frontend

I have a simple Joomla 3 plugin that works fine on backend for resizing images when uploading from multimedia manager: <?php defined('_JEXEC') or die('Restricted access'); class ...
Diego Moreno's user avatar
1 vote
0 answers
103 views

Is SweetAlert2 html parameter length limited in size?

I recently created a plugin for Joomla which uses the nice SweetAlert2 popup script and it generally works fine. However, surprisingly, when the size of the html message I use is too long, the box ...
Philippe Levi's user avatar
1 vote
1 answer
306 views

How to use Openlayers transpiled Javascript code in my own extension (a "bundle")

I am developing a Joomla 3.x content plugin to display Openlayer maps in articles based on @Robbie Jacksons excellent tutorial at https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Map ...
SoaringBird's user avatar
1 vote
1 answer
88 views

How can a Joomla 3x "content" plugin determine which page it is on?

I am building an advanced image handler for Joomla 3x where images are built dynamically at run-time based on a number of parameters defined in tags inserted into articles. An example look like this: {...
SoaringBird's user avatar
0 votes
1 answer
43 views

How can I place a module position in the midpoint of my content no matter what size

I want to put a call to action in the middle of my content no matter what size the content it. I know I will need some JavaScript in order to calculate the word count and the mid point. And I know I ...
Eoin's user avatar
  • 2,043