Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [recommended-practices]

Recommended Practices are informal rules that the Joomla community has learned over time which can help improve the quality of a website or an extension.

5
votes
1answer
605 views

How to add a composer package without modifying the core composer.json file

I am trying to add a Composer Package and make it globally available but I do not want to modify core composer.json for obvious reasons. Is the only way to do this having a composer.json either on ...
1
vote
2answers
2k views

What is the best way to make knowledge base?

I want to make a knowledge base section for my Joomla site. Is there a good way to make it? In my case : I have a hyperlink text called "Knowledge Base". When I click on it, it will open a new page ...
3
votes
3answers
882 views

Add language overrides to template

Version Joomla 3.4.2 In our current set-up we would like to able to add the language override folder to the current template folder and then we could achieve 3 things: We would be able to update ...
1
vote
1answer
94 views

Can i add virtuemart's or another eshop's mechanic inside a custom component? [closed]

I'm building a custom component that I would like to have an e-shop area, with some products. I don't think it's a good idea to create an e-shop mechanic from scratch because I worry about security ...
6
votes
2answers
661 views

Developing Outside the CMS

I have a question, I have an already constructed site, we use Joomla for the CMS, and a theme from RocketTheme called "Diametric". We are looking to construct a page and it's styling is going to fall ...
11
votes
2answers
4k views

Add a custom button to a core backend component

Is it possible to add a custom button (with a custom action, of course) to the JToolbar of a standard Joomla 3 component (com_contents) without modifying the original source code? Background: I need ...
2
votes
2answers
2k views

How to move print/email to be inline with article title for blog view?

for single article view I've moved the print/email function up to be inline with the title, instead of being located below the title in top-right corner of the content. Did this my moving the code ...
3
votes
3answers
2k views

Overriding Core Components Model Form XML

I want to change the Field type for the Article's Links, from input text to DropDown List with internal menu items. I am looking for a convenient way to do this with the minimum work. I can't find ...
1
vote
3answers
343 views

Should I change the way I include javascript into Joomla? If yes, why and how?

I use a lot of javascript on my site. It works and has passed crossbrowser testing, but the thing is the javascript files are being included within Joomla articles. I’ve read that this is the wrong ...
6
votes
1answer
82 views

Any Joomla & PHP podcasts from which I can learn?

Are there any quality podcasts regarding Joomla or PHP and web development that you listen and would recommend?
3
votes
1answer
2k views

Load K2 article with ajax

I am using the category layout to feature articles on my front page with joomla 3.3. I am customizing this view so that the article links pull the articles into this page via ajax on click. This is ...
7
votes
1answer
3k views

Pagination confusion - Pagination uses start, PopulateState uses limitstart?

I'm a bit confused. When I look at the link created by pagination in the front end, I see a query parameter called start included in the individual page number links and Start and End links. ...
14
votes
4answers
389 views

How to effectively distinguish test and production site?

Sometimes you might need to clone your production site to TEST site. After cloning, they look identical except the URL. Please advise your recommended practice to distinguish front-end and back-end ...
6
votes
1answer
141 views

How to make a Joomla! component cross-compatible (J2.5 - J3.x) [closed]

When developing a Joomla! 3.x component, how do you make it backwards compatible with Joomla! 2.5?
7
votes
1answer
3k views

How should I use view.raw.php properly

I'm trying to add a custom JToolbar button to my list view that will export the list contents to excel. I created a new task in my list controller to render the raw view class in a file called view....
11
votes
5answers
1k views

What is appropriate for unused modules and plugins?

Some modules and plugins come with Joomla and others are installed with component packages and are not used. Should the modules and plugins simply be disabled or completely uninstalled?
8
votes
3answers
191 views

Why does a Joomla distribution still contain index.html in each folder?

There has been an PR to remove the index.html files, but it was never applied. Why is that?
7
votes
3answers
3k views

What's the proper way to authenticate a user?

A couple years back I wrote a small and very incomplete component that authenticated users coming from outside of Joomla! i.e. a mobile application. Is there a proper or preferred way of handing this?...
5
votes
2answers
1k views

Should I use JResponse::setBody or onContentPrepare for strings replacements?

I am developing a shortcodes plugin that searches trough Joomla content and creates html outputs from the matched string. Currently I am using this public function onContentPrepare($context, &...
17
votes
5answers
5k views

What is an efficient way to troubleshoot a “white screen of death”

Quite a few times I have been in a position where the front-end of a Joomla website is a blank screen with no content, sometimes known as a "white screen of death". This has occurred after a website ...
25
votes
8answers
15k views

Recommended practices regarding Joomla file/directory permissions and ownership on linux systems?

In the past I’ve often run into trouble with permissions and ownership of Joomla files/directories on linux systems. Problems included Not being able to transfer files to the server using programs ...