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.
22
questions
1
vote
1
answer
168
views
How to load and render a view of a component from another's component template file?
Note: Question fully updated with the latest findings:
I want to load a com_contact contact view inside a template override of an article.
I have a contact item id and trying to load the record and ...
6
votes
1
answer
1k
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
2
answers
3k
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
3
answers
2k
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
1
answer
99
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 ...
7
votes
2
answers
755
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 ...
12
votes
2
answers
5k
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
2
answers
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
3
answers
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
3
answers
516
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
1
answer
87
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
1
answer
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
1
answer
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.
...
15
votes
4
answers
460
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
1
answer
144
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
1
answer
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
5
answers
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
3
answers
259
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
3
answers
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
2
answers
2k
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, &...
18
votes
5
answers
6k
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 ...
26
votes
8
answers
17k
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 ...