Questions tagged [joomla-3.x]

For question regarding Joomla 3.x of the Content Management System. This includes versions 3.0 up to 3.8.

Filter by
Sorted by
Tagged with
7
votes
2answers
4k views

Displaying a Form Field Depending on Previous Question

I develop my own template for Joomla and i need to display more options if you set a value before. For example: after clicking on YES: It would be nice if in the joomla core a solution like this: &...
7
votes
2answers
3k views

What is the recommended way to structure a Joomla 3 custom component view using angularJS?

There is very little information out there from users who have successfully integrated angular js in a joomla custom component list view. I found the following: https://stackoverflow.com/questions/...
7
votes
2answers
10k views

How to change the title tag?

On each page I get the option of meta description and keywords but don't get Title. Where can I change what appears under the <title> tag.
7
votes
1answer
341 views

Understanding mvc way of component coding for both joomla 2.5 and 3 version

I made a component in joomla 2.5 in mvc way which was not working in joomla 3, later found out it's because in joomla 3 previous mvc classes not working so is controller, view, model classes must be ...
7
votes
2answers
789 views

Update server for a package or individual extention

I am bit confused and need some recommendation for a best approach to setup an update server for a collection of extensions. I got a component, library and a plugin which I put inside a single ...
7
votes
3answers
14k views

How to get menu parameters and itemid in component controller

In my custom component controller I have function save(). At the end it displays message and redirects to url $this->setMessage(JText::_('SOME_TEXT')); $this->setRedirect(JRoute::_('index.php?...
7
votes
2answers
5k views

Is there a way to know where jdoc:include type=head lines are being loaded from?

In a previous question I already got clarified how exactly did <jdoc:include type=head> work. Now I have a new question about it. Basically, any extension can add a call to new scripts, css ...
7
votes
3answers
2k views

Is “Uncategorised” a Category?

While editing the articles tag, I read about articles on the Joomla! Documentation site, and noticed this: It is also possible to have Uncategorised Articles. These articles exist without being ...
7
votes
2answers
847 views

Automatically publish plugin after installation

I've created a couple of small plugins that I install on most of my websites. But new plugins are (fortunately) disabled by default when installed. I know it's only a couple of clicks to enable the ...
7
votes
3answers
1k views

Avoid counting my own visits on the pages

I have just installed Joomla 3.3. I'd like to have the chance to avoid incrementing the visitor counter while I visits my own pages. Is it possible at least when I'm logged in?
7
votes
5answers
2k views

How to retrieve the CHANGED text from Joomla Editor?

I have a page that allows the user to edit the intro text of a particular article, and I'm using this code to allow them to do so: $editor = & JFactory::getEditor(); $params = array('smilies'=>...
7
votes
2answers
4k views

Get full link from menu item field type

I am developing my own slideshow component and module for Joomla. The component is used to select the slides along with captions and links etc. The module shows the slides. In the component, for each ...
7
votes
1answer
985 views

How to create a folder during installation custom component

I know how to create a subfolder inside the media folder by using <media folder="media" destination="com_mycom"> in the manifest file. But how to create subfolder inside of the images folder ...
7
votes
2answers
367 views

How is content “locking” handled in custom components?

Default core's com_content has a built in system that, when a specific article is being edited by a user, it gets "locked", so no other user can edit it at the same time. If the user closes the window ...
7
votes
1answer
5k views

Error 0 Could not write to the configuration file,“Joomla can't write any data to configuration.php file”

I have tried to save my FTP layer settings, in a Joomla website,and I recieved this error 0 Could not write to the configuration file Of course I can do it manually,using an FTP manager,or the ...
7
votes
2answers
1k views

Is the new 'showon' attribute only for back-end forms?

I tried using the showon form field attribute in a front-end form with no working results. Not even the example given here is working: https://docs.joomla.org/Form_field#Showon Is there anything ...
7
votes
1answer
323 views

Is it possible to assign a color to a single article

I want to be able to assign a color code to seperate articles. Such that the border or background of an article changes color, like; Article A = Purple Border Article B = Green Border Article C = Red ...
7
votes
1answer
5k views

Override MVC classes in Joomla 3

Is there anyway to override MVC classes in Joomla 3? I have found this thread but it is for Joomla 2.5. How to override core classes? I have done MVC overrides in Joomla 2.5 successfully but now I ...
7
votes
2answers
1k views

How to use Smart Search in a multilingual environment?

This may be due to a bug or (more likely) to my inability to configure the Smart Search component, but... this is what's happening: I have a multilingual site: primary "English", secondary "Italian." ...
7
votes
2answers
2k views

Get Value of Repeatable Field from Joomla XML manifest

repeatable - How to get values from this field type ? I am coding a Free module with a repeatable field. <field name="star_slides" type="Repeatable" icon="list" description="" label="Edit Your ...
7
votes
1answer
1k views

What exactly gets loaded “inside” template's jinclude type=head call?

When building a template, you must put one (and only one) of these calls inside your <head></head>: <jdoc:include type="head" /> Checking here does not provide much extra info: ...
7
votes
1answer
1k views

Joomla 3 - Pagination limit [closed]

I am trying to override the standard Joomla pagination. Instead of showing 10 links then the next / end links, I would like to show 20 links up front. Is this possible? Thanks
6
votes
4answers
12k views

How can I set the page title from a component

I have built a 3.x component using Component-Creator.com and I want to be able to set the page title to the item heading (taken from the component itself). I have tried the following code but it's not ...
6
votes
4answers
3k views

Add html in menu title field

This is my need, I want to add an html tag to the menu title. I want to add some icons in front of each menu title in the frontend. I want this result: <li class="active"> <a href="index....
6
votes
3answers
6k views

User Login History

This may have ben asked elsewhere however I couldn't see it on JSE. Is it possible to view the user login history anywhere? I had a look through the database however couldn't find anything. Joomla 3....
6
votes
5answers
7k views

Upgrade to Joomla 3 not available

I've got a Joomla 2.5.28 site that I want to upgrade to Joomla 3.3.x. All available docs say all I need to do is set my update server to short term, and the 3.x series upgrade option will appear. ...
6
votes
1answer
2k views

Custom Read More text

Is it possible to set a custom Read more text for each article in Joomla? I would like to be able to somehow set a unique text for some of the readmore links (added using <hr id="system-readmore" /&...
6
votes
3answers
3k views

Is it possible to redirect a admin user to a specific component after login?

Not too much else to add to the question really, I'm trying to redirect a specific user group to a specific area after they log in to the administrator back-end, but I'm not sure if this is possible. ...
6
votes
4answers
2k views

Check if module is enabled

I'm currently trying to check if a specific module is enabled by using Joomla's JModuleHelper::isEnabled(), however the problem being is that it is always returning false, despite whether it is ...
6
votes
1answer
7k views

Best way to include helper class in sub-controller : require_once or JLoader

I have created a helper file test.php as following: administrator/components/com_compname/helpers/test.php class TestHelper{ //class methods } In controllers/subcontrollername.php We can use ...
6
votes
1answer
2k views

JLoader::import vs JLoader::register

Can You Please Answer What Is The Difference Between the following functions: JLoader::import and JLoader::register which belong in the loader.php file?
6
votes
1answer
14k views

How to get the alias or title of the active menu item?

In my template I want to give an extra class to the body of the document that will take the names of the alias of the menu item, so I can create individual styling among the pages. But how can I get ...
6
votes
2answers
4k views

How can I grab the user's IP address?

I want to store the user's IP address in a Joomla 3.5 component; with 2.5, I did a $ip = JRequest::getVar('REMOTE_ADDR', '', 'SERVER'); Which is the most efficient way to get the IP address from a ...
6
votes
2answers
669 views

Site Vulnerability Check

With the recent security announcement regarding SQL injection, I was wondering what I could do in order to 'review' my current Joomla sites, and ensure none of them have been compromised. Apart from ...
6
votes
2answers
133 views

Joomla site changes when viewed from a phone

Currently when my site is visited from a phone, elements are rearranged. For example, the menu moves from the side of the site to the bottom. How do I stop the layout of the site from changing when ...
6
votes
1answer
7k views

How do I apply JHtmlSidebar to add a sidebar to my admin view?

I can't find any tutorials on how to use the JHtmlSidebar Utility Class. This comes close to it: Creating a toolbar for your component, but it is very vague. It mentions $this->sidebar, which ...
6
votes
5answers
3k views

Joomla component media manager to select pdf

I wrote a component and need a field there where the user can pick a pdf from the media manager. When I set the field-type in the field list to «media», the media-manager only shows images. How do I ...
6
votes
2answers
3k views

Editor stripping iframe

Yes, another question about the stripping of HTML tags (this time TinyMCE). Joomla 3.4.1 / TinyMCE 4.1.7 This should be very simple, however due to the number of comments and questions/answers I see ...
6
votes
4answers
1k views

How do you specify to show only certain editors-xtd buttons on the editor form field type?

I am creating a custom component and in my form I am using the editor form field type. Here is the documentation: https://docs.joomla.org/Editor_form_field_type It seems that no matter what value I ...
6
votes
3answers
3k views

Programmatically Add Menu Item in Component

I am trying to create a component where the user can add a menu item to an existing Menu after creating the article (or selecting from a list of article). The closest I could come across to an example ...
6
votes
2answers
7k views

How to deal with “JFolder::create: Path not in open_basedir paths Unable to create destination” while installing Joomla extensions?

I am trying to install a new extension in Joomla,But I am getting this error Message: "JFolder::create: Path not in open_basedir paths Unable to create destination" What is the solution?
6
votes
2answers
4k views

Image is not showing when sharing on Facebook due to Gzip

I am having site on Joomla 3.3. Whenever i share article on facebook, it dosent fetch image. So googled and found that gzip is causing problem. so i turned it off and checked, all images were ...
6
votes
2answers
6k views

What's the purpose of $this->get('Item') in Joomla view.html.php example file?

I refer to the code below, presented in Developing a MVC Component - Front End Function Example: class HelloWorldViewUpdHelloWorld extends JView { // Overwriting JView display method function ...
6
votes
3answers
2k views

List articles by author

I am looking for the simplest way to create a menu item that lists all articles by a specific author. Any help is appreciated. Elad.
6
votes
3answers
816 views

Joomla/PHP How can a plugin append a css class to the body section?

Hello Joomla Community, How can a css class be appended to the <body> from inside a system plugin? Any advice is appreciated, Thank you.
6
votes
2answers
710 views

How to generate a pseudo random one time use code for request token

To avoid CSRF attacks we use a security token and validate the request against the token. This could be achieved through, the below code to generate a token $link = JRoute::_('index.php?option=...
6
votes
2answers
2k views

Loadmodule with parameters

How can i effectively add a custom parameter for the function {loadmodule mod_name}. Something like: {loadmodule mod_video_player src="0Bmhjf0rKe8" start="5" end="20"} Any ideas? Thanks!
6
votes
2answers
5k views

Module to show all articles with Tag and in a Category

I am trying to make a module to bring back all articles in a category "holidays" that have a tag of "cuba" All the examples I can find are tag clouds or getting tags for the current article. Does ...
6
votes
3answers
513 views

Website speed is awful

I work as an apprentice web developer who has been left in charge of the web team (all of my colleagues have left) and have been left with an impossible task. We have a 10-core Windows server, with ...
6
votes
2answers
1k views

Control order of loaded scripts

Unfortunatelly I can't register on the joomla forum, so I'll try my best here. Please help, is there any way to control the order of loaded scripts. Example: in my template's index.php I do: $...

1 2
3
4 5
59