9

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 reach a satisfactory optimization level. My overall Approach to achieve a fast loading site. A fast website is essential. The speed optimization of a website, ...


6

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 = function() { return 'Make sure you have saved your JCE content'; } </script> If you're wondering where to add your code, you can either: Add ...


5

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 your list page. I assume you have a menu item for the products view? If not then you have to add a menu type for it. You could also make a menu type for the ...


5

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, or any other CDN. Ref: http://en.wikipedia.org/wiki/Content_delivery_network


4

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 sets it to unpublished. They then send the link to the Social Media Manager/Directory to review and maybe tweak. This saves them having to login to the backend ...


4

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 a fallback (2nd argument) for the parameter if no value is assigned: $fontsize = $this->params->get('font-size', 12);


4

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 System -> Global Configuration -> Server -> Error Reporting to "Maximum" and refreshing the front-end to see if any meaningful error messages are ...


4

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 through the array and echo the values. Have a look at the JFolder::files API which will give you more information on additional function arguments, should you wish ...


3

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 settings on the JCE Editor plugin, which is being called when it comes to load the editor. It had access level to Administrator, so any front-end users were unable ...


3

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');


3

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 here


3

Try removing the blank spaces in fields name and fieldset name attributes <fields name="RouteSettings"> <fieldset name="RouteSettings"> <field name="route_id" type="sql" label="Select a route" description="Select a route previously created in the backend." query="SELECT id AS value, route_name AS route_id FROM #__cddir_routes ...


3

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 want. You can easily change the order of every field, just pay attention to keep this rows inside form and fieldset tags. Avoid editing the xml file, or on ...


3

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 $catinput = $this->lists['categories']; echo preg_replace('#<option[^>]*\sdisabled\=[^>]*>.*?</option>#','',$catinput); ?>


3

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 ticket page on the frontend. Assign that module to the cPanel position (which means that it will show up on the homepage of the backend) Note that using the ...


3

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: 32 of /layouts/joomla/searchtools/default.php: JHtml::_('searchtools.form', $formSelector, $data['options']); I'm fairly certain this will result in /media/jui/...


2

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.php). I haven't edited this file since a least a full month before the issue happened so I can't find out what was wrong. Anyway, it's back now! EDIT: ...


2

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 problems, so we started uninstalling it and reinstalling it fresh. It shouldn't cause much in the way of problems, rather, we haven't found any yet, and we've ...


2

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 ), and choose SEBLOD if you don't like limitations and have some code skills ( php ).


2

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 permissions functions $user = JFactory::getUser(); $user_levels = implode(',', array_unique($user->getAuthorisedViewLevels())); $params->get( 'count', '2' ); $...


2

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 The save() method in JControllerForm uses the following line to retrieve the JForm array. $data = $this->input->post->get('jform', array(), 'array')...


2

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') != 'edit') { // Load your JS here }


2

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 JED http://extensions.joomla.org/ There are several already developed modules for sharethis. This option is the best to have configuration support on proven ...


2

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 when an article has association with the corresponding article of the second language. Can anyone else test to see if he can replicate the issue? If I have ...


2

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, in front-end site, the article view has a very different article.xml form than in the back-end site. Thus, you can only render those fields. E.g. category ...


2

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/joomla/overrides/ 2 - Then you have to locate the code that renders the table. There is not much we can do here without seeing the code, but I assume that you may ...


2

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 displaying the editor, this is gonna give you the best results and all of the features you want. It should also work with whatever your default current editor is. ...


2

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 ($article_id > 0) { $vars['view'] = 'article'; $vars['catid'] = $cat_id; $vars['id'] = $article_id; } else { $...


1

I found the solution as simple as below. JHtml::_('behavior.formvalidation'); JHtml::_('formbehavior.chosen', 'select'); require_once JPATH_LIBRARIES.'/mylib/fields/time.php'; $timefield = JFormHelper::loadFieldType('time', false); $timeslots=$timefield->getOptions(); echo JHtmlSelect::genericlist($timeslots, "note_start_time",null,'value','text',$...


1

Does not seem to be easily possible, currently: https://github.com/joomla/joomla-cms/issues/7809


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