Skip to main content
6 votes
Accepted

Create a link from Backend to SEF Path in Frontend

Since 3.9 there's Joomla\CMS\Router\Route::link() method which takes client (site or administrator) as first argument. $link = 'index.php?option=com_content&view=article&id=1'; echo '<a ...
Sharky's user avatar
  • 11.2k
5 votes
Accepted

How to find path and list files in directory?

You can utilise Joomla's JFolder class like so: <?php $array = JFolder::files(JPATH_SITE . '/tmp/containers/waybills'); ?> You'll then of course need to write a foreach loop, to loop ...
Lodder's user avatar
  • 26.9k
4 votes
Accepted

First Attempt PHP Plugin

So in your XML, you're using name="font-size" for one of the parameters. To call this in the plugin, you simply use the following: $fontsize = $this->params->get('font-size'); You can also add ...
Lodder's user avatar
  • 26.9k
4 votes
Accepted

Joomla frontend not loading after upgrading to 3.5

Hi Spiros and welcome to Joomla Stack Exchange! It's possible that one or more of the extensions you are using are not yet Joomla 3.5.0 compatible. I recommend logging in to the back end and setting ...
Neil Robertson's user avatar
4 votes

Randomly render one of the modules in a given position

Have a look at the Module Helper documentation. getModules(): Get modules by position getModules(string $position) : array static since 1.5 Arguments $position string The position of the module ...
mickmackusa's user avatar
  • 4,791
3 votes
Accepted

Show frontend pages in backend

You can do this as an administrator module: Login to the backend Go to Extensions - Modules Change Site to Administrator Create a Custom HTML module and in that module add an iframe code to wrap the ...
itoctopus's user avatar
  • 3,226
3 votes
Accepted

What dictates the HTML that is generated for Front-End Search Tools?

Your problem is jQuery's Chosen plugin. JS scripts are almost always added using the JHTML class and its child classes. I've only had a quick look, but I think the problem script is injected at ln: ...
Bathmat's user avatar
  • 492
3 votes
Accepted

Override category list of K2 frontend item form

There may be a correct way deeper in the depths of K2 to not have the disabled categories in the list in the first pace, however, the quickest solution is to use regex to remove them. <?php $...
David Hayes's user avatar
3 votes
Accepted

Moving "Category" to the "Content" in the Frontend Edit

Make an override of com_content/views/form/tmpl/edit.php in your template and move this row: <?php echo $this->form->renderField('catid'); ?> in the <div class='tab-pane'> that you ...
Kitase88's user avatar
  • 977
3 votes

Randomly render one of the modules in a given position

If you're after a less code heavy way of doing it, you could use a mix of Regular Labs Modules anywhere and Regular Labs Articles Anywhere. Create your modules, and assign them all to a new position ...
Patrick Jackson's user avatar
2 votes
Accepted

Creating articles in front end. Status field is disabled and articles remain unpublished

Joomla ACL 1. Edit State Privilege In order for a user to be able to set/switch the publishing status of a content item (published/unpublished etc), they need to have the Edit State permission ...
FFrewin's user avatar
  • 19.7k
2 votes

Article appears even outside given path

This is a problem with the Joomla content router. Specifically, in the following code: if (!$advanced) { $cat_id = (int) $segments[0]; $article_id = (int) $segments[$count - 1]; if ($...
itoctopus's user avatar
  • 3,226
2 votes

Joomla! 3.8 - How to hide Publishing Tab in front end

Apart of customizing the Article Edit Form - you could consider using 3rd party extensions. There are 2 major types/categories of extensions that would be suitable for this: Front-end article ...
FFrewin's user avatar
  • 19.7k
2 votes
Accepted

Joomla! 3.8 - How to hide Publishing Tab in front end

Okay, a solution has been found. It appears that somewhere in the back end a new article requires the category to be set. It also appears that its a lot easier to pick and choose what items to see in ...
MaxVK's user avatar
  • 181
2 votes

Frontend editor with save image uploading methods

Latest releases of Easy Discuss actually offers this feature. Once you upload the image you can insert anywhere in your message. Also if you want to keep using JCE, you may just configure the ...
Carlos Cámara's user avatar
2 votes
Accepted

Front end editing, publishing and images tab have disappeared

This was caused by disabling mootools to try and increase the performance on the site. Pesky mootools. And to get the images/links tab you need to set it in the options.
Eoin's user avatar
  • 1,909
2 votes
Accepted

How to render joomla.searchtools filters in the front end of a custom component?

I had forgotten two lines in the view: $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); If someone is interested, here you can find a ...
framontb's user avatar
  • 237
2 votes
Accepted

404 View not found [name, type, prefix]

I was able to resolve the issue. The DisplayController of the front-end part was lacking a proper constructor, once I added it the site part works as well. namespace Foo\Component\Bar\Site\Controller; ...
pollux's user avatar
  • 31
1 vote

where is frontend user parameter in Joomla 3.8

You can find the option to hide Frontend User Parameters by accessing the User component options. User > User Manager > click Options in the top-right corner. You will find the option you are looking ...
Daniel Morell's user avatar
1 vote

How to restrict number of successful frontend logins per user

if "restrict number of successful frontend logins per user" is one per user, then Login One! might be what you want. If you need more logins >1 then you 'll probably need the Business edition https:/...
John's user avatar
  • 308
1 vote

How to send data with save2copy button?

Based on what you have described in your question, I can only give you some basic guidelines at the moment. I don't know how you are developing the component - but when you clone/duplicate a list ...
FFrewin's user avatar
  • 19.7k
1 vote

Front-end custom Joomla module to upload an image and save it in the Joomla images folder

After some more googling and debugging, I figured it out. The trick was that I'm using a JForm and the file field can be accessed slightly differently. First you need to access the fields tag and then ...
wanderlusted's user avatar
1 vote

How can you password protect your frontend while you start developing a page, and which is the safest web hosting service?

There is a plugin called n3t coming soon which may help you with this. When enabled it will show a coming soon page (which you can customise if you like) while letting you view the site. It uses your ...
Dtorr1981's user avatar
  • 532
1 vote

How can you password protect your frontend while you start developing a page, and which is the safest web hosting service?

So why not just set the page in the joomla configuration to „offline“ or did i missed something in your question? Its exactly for this purpose.
Marco's user avatar
  • 663
1 vote

How can I enable the created date for an article to be edited in the front end?

Created field in frontend article form contains unset filter. This filter prevents field value from saving. You can change the filter with a content plugin. The example below also sets showtime ...
Sharky's user avatar
  • 11.2k
1 vote
Accepted

How to edit 'created date' from front end

Unfortunately, Joomla 3.x does not seem to allow the creation date to be modified from the front-end of the website. The only third party extension I can find that enables this feature is ...
Neil Robertson's user avatar
1 vote
Accepted

filter db by a single date - how to hack the standard calendar form field

My question may not have been as clear as it could have been. Upon further research, the questions I was ultimately asking were: How to add a custom filter to the list view (I found a great resource ...
Nathanael's user avatar
  • 111
1 vote
Accepted

K2 Items edit icon missing

Go to Components -> K2 -> User Groups and check that the group Site Owner has the Front-end item editing as YES also there you can choose what categories can be edited or not. Go to Components -> K2 ->...
John's user avatar
  • 308
1 vote

K2 Items edit icon missing

First let's just confirm all the config steps. In the K2 parameters > frontend editing, 'Enable frontend editing' is set to yes. You have a K2 usergroup called editors (or something) and the ...
jamesgarrett's user avatar
  • 3,299
1 vote

Make "Version Note" mandatory in frontend form

Although I accepted Neil's answer, I found an easier method to do this. But my method may not appeal to many since it requires changing XML files of default Joomla installation. Perhaps there's a way ...
coder.in.me's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible