9 votes
Accepted

Optimizing frontend load, how do I properly combine and compress my JS?

It won't be easy to deal with all these files. Combining, minifying and compressing all these together will most probably bring issues. It will take much effort and a combination of techniques to ...
user avatar
  • 19.5k
6 votes
Accepted

Are you sure you want to navigate away from this page? Browser popup to avoid accidental tab closure while editing

You can use the following Javascript which will bring up a alert box asking if you want to leave the page or stay on it when you go to close a browser tab. <script> window.onbeforeunload = ...
user avatar
  • 26.5k
5 votes

What is the correct method of developing a front-end list and edit view

It is the right way :-) Build your links with JRoute, for example: JRoute::_('index.php?option=com_productman&view=product&product_id=x'); It will automatically append the menu item ID of ...
user avatar
  • 3,693
5 votes

Optimizing frontend load, how do I properly combine and compress my JS?

There is no simple solution for 30+ JS files. Since you are onboard with Rockettheme, you can implement RokBooster http://www.rockettheme.com/joomla/extensions/rokbooster You can implement CloudFlare,...
user avatar
  • 7,415
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 ...
user avatar
  • 26.5k
4 votes
Accepted

Unpublished Articles - hide

From what I already know, this is a purposely built-in feature, which allows admins (only) to view and manage articles via the frontend. Example: The Social Media Executive writes a blog post and ...
user avatar
  • 26.5k
4 votes
Accepted

File selector in the front-end of a specific directory

In your model, after loading the form, you can use setFieldAttribute to set the directory dynamically like so: $form->setFieldAttribute('myfile', 'directory', 'media/media/images');
user avatar
  • 2,275
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 ...
user avatar
  • 26.5k
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 ...
user avatar
4 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 ...
user avatar
  • 8,581
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 ...
user avatar
  • 4,448
3 votes
Accepted

JCE not appearing for custom front-end user-groups

Guys after messing around with the ACL in all other places, and checking for any kind of possible other issues for some hours, finally I managed to sort this out. The issue was caused by the ACL ...
user avatar
  • 19.5k
3 votes

Upgraded to 3.3: can't save in Frontend anymore ("category field required")

There is known bug on the 3.3.3 version : Articles with multilanguage associations cannot be saved in frontend since 3.3.3. Error: "Warning: Field required: Category" A ticket has been submitted ...
user avatar
  • 986
3 votes
Accepted

Joomla 3 frontend view xml: How do I add a custom field to the menu item's paramaters?

Try removing the blank spaces in fields name and fieldset name attributes <fields name="RouteSettings"> <fieldset name="RouteSettings"> <field name="route_id" type="sql" ...
user avatar
  • 967
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 ...
user avatar
  • 967
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 $...
user avatar
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 ...
user avatar
  • 3,186
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: ...
user avatar
  • 492
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 ...
user avatar
2 votes
Accepted

Only articles with article anywhere are accessible

No sure what happened but updating to Joomla 3.3.3 solve it: I could reproduce under J3.3.3, the same error I had under J3.3.1 by modifying the module chrome file (\templates\mytemplate\html\module....
user avatar
  • 986
2 votes

Only articles with article anywhere are accessible

I would suggest a) Contact Peter from NoNumber, he's very good at responding to questions in his support forum. b) Uninstall and reinstall. We found that NoNumber couldn't go from 2.5 to 3 without ...
user avatar
  • 1,328
2 votes

Create or edit an article using a form in the frontend in joomla 3.0

I would consider SEBLOD or Form2Content for this task depending on the overall complexity of your project. Choose form2content if you want to get up and running quick (uses smarty php for templating )...
user avatar
  • 21
2 votes

SimpleCalendar - display category in module

I don't know if this is the correct way but it works for me. In the helper.php located in modules/mod_simplecalendar, add the following: $query->select('c.title AS category'); // Load the ...
user avatar
  • 21
2 votes

Frontend: why some fields are not in the $data param of the save function?

You don't show any of your code, so I'm just going to walk through what I know of JControllerForm and JModelAdmin — which of course will be affected by any overrides in your subclass. JControllerForm ...
user avatar
  • 1,749
2 votes
Accepted

how to exclude a script written in the index.php (only) in the frontend

You could wrap the JS loading into an if clause which checks if the current layout is an edit layout. Something like this (untested): if (JFactory::getApplication()->input->get('layout') != '...
user avatar
  • 5,527
2 votes

how to exclude a script written in the index.php (only) in the frontend

It's better if you avoid any modification to core files. If not, you can easily lost all changes when Joomla is updated to a new release. To implement common scripts, you can download extensions from ...
user avatar
  • 7,415
2 votes
Accepted

Articles Frontend Editing Issue: Field required: Category

I think I have sorted out the conditions that make this issue appear, although I have not dive into the code yet. Just for information, this is a Joomla 3.3.3 multilingual website. The issue appears ...
user avatar
  • 19.5k
2 votes

Add association tab/field to front end editing page

You are right. Front-end and Back-end models are different. To be precise: In back-end site, ContentModelArticle is a JModelAdmin In front-end site, ContentModelArticle is a JModelItem For instance, ...
user avatar
  • 7,415
2 votes
Accepted

Hide a value or data on table

The way to do it is by overriding the view template. 1 - First you have to understand how to create an override of a component view. This tutorial may help you: https://www.ostraining.com/blog/...
user avatar
2 votes

What are the JS dependencies of the Joomla frontend editor?

If you are wanting to add in the additional editor features like images and whatnot there is more to it that just added the js files. Personally I would recommend using Joomla's native method of ...
user avatar
  • 1,737

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