how to build a joomla component administrator pages - joomla

Now I am building a joomla component administrator pages of joomla 3.2.
What are the files and functions of the files?
How could I put a menu, a sidebar, a filter in the viewing page like a back end layout is from joomla 3.2 contact component.
And as a sample, the administrator component file of com_contact has following files, what are the functions of them?
access.xml
config.xml
contact.php -- already understand
contact.xml
controller.php -- already understand
controllers -- already understand
helpers
index.html -- already understand
models -- already understand
sql -- already understand
tables -- already understand
views -- already understand

You should read the documentation on Joomla Component Development and also check out this site which creates the files needed to start off a component and saves a lot of time:
Joomla Component Creator

Related

How can I manually remove a joomla 2.5 extension?

I accidentally installed a more recent component of J2XML designed for Joomla 3 into my J2.5 site... and now I have no idea how to remove it. The only Admin page that works is the main Admin page... all the other admin pages are blank... I'm assuming it's logging the error somewhere, but I have no idea where that would be.
Can I manually remove the extension/module? What database tables should i remove?
I have already removed the folder of files, but I'm not familiar enough with the Joomla db structure to know what damage has been caused.
And in this case, backups have failed me.
you should able to look at _components table and remove J2XML entry so it doesn't show in administrator panel

Using Joomla K2 Joomla Framework

I am quite new to Joomla, especially the K2 Framework. I would like to make a neat magazine website in Joomla. What I have done is, I have already imported all contents from Joomla! Content into K2.
What I need to do now is to arrange my categories and their articles like there are in this link or any other well arranged magazine website.
I do not know how to go about creating sub-templates and what they would look like. I have read several documents including the documentation but I don't get them so well to pave my ways
Anybody who knows what I need please help.
Maybe you must override the k2 module. So you must make a lot of module position and use k2 content module to show different layout in same page.
You must download K2 template override package,
follow this link to download: http://getk2.org/documentation/tutorials/77-k2-template-override-package-comparison
You can use k2 content module.
if you want creating sub-template for k2 content module, you must copy default folder on the /template/Your-template/html/mod_k2_content/default and you must rename the new folder.
After renaming the new folder you can check the sub-template. Add the k2 content module from your admin page and you will see select sub-template option, click it and you will see new sub-template
The sub-template name same with the name of new folder. And if you want to change style you can edit default.php in the new folder. :)
If you want to build something similar to this website you will need to make use of modules that allow you to display K2 content.
There are far too many to mention, but K2 itself installs K2 Content and K2 Tools. Try enabling those modules and experimenting with them. They offer a lot of options to display K2 items in various ways.
Source: I've built my fair share of K2 powered Joomla sites. :)
You need to create overrides of K2 component and its module.
Copy the component files from
components/com_k2/templates and paste it to the following path templates/{yourtemplate}/html/com_k2. Here, you can modify all the files and their layout as per your requirement or design.
Copy the module files from modules/mod_k2_tools/default folder and paste it the path templates/{yourtemplate}/html/mod_k2_tools . Similarly, you can copy other modules of k2 as per your need. The other modules are as:
mod_k2_comments
mod_k2_content
mod_k2_user
mod_k2_users
This way, you can create your own layout for the component and during any Joomla update it will remain as it is. Refer the following links for more details:
https://docs.joomla.org/Layout_Overrides_in_Joomla
https://getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Hope this helps!

Joomla 2.5 - sources of homepage content

Total Joomla newbie here. I've been asked to help with a site I didn't create, and I don't know Joomla. The site is using Joomla 2.5.
The homepage contains three featured articles, but some additional content is showing up below the third article, above the footer. The admin tool only shows three featured articles, and when I examine the source of the third article, there doesn't appear to be anything wrong with it.
Where can this additional content be coming from? Any suggestions on how to track down how it is getting added to the page?
TIA!
Probably a module - check out the installed modules.
Check the active template, then go to the template folder > your template > index.php. this is the PHP of your site.
Here you can see what modules positions you have, and then check in the admin system > module manager what position is actually in use.

Joomla 2.5 frontpage override

I'm just getting into Joomla. I've successfully overridden article pages by creating an html/com_content/article directory within my template and copied the necessary files from the /com_content directory.
I've read that this is also possible for the frontpage. It seems however I'm missing the frontpage directory from my /com_content directory. Is this still supported in Joomla 2.5. I don't really want to have to use a different template for my frontpage, but it looks like this may be my only option.
Any help would be greatly appreciated.
Cheers
Tom
'frontpage' is now called 'featured'.
Override the files in /components/com_content/views/featured/tmpl
The 'front page' is simply a collection of articles that you deem to be on the 'frontpage'. I'm not sure what you mean when you say you've "overridden" article pages... are you referring to the template? You don't have to do that for each article (if that's what you're implying you did).
I think perhaps you're misunderstanding how the templating system of Joomla works with regards to the site if you're overriding each article you create? There is no 'frontpage' directory because there is no real 'frontpage'; the main template you assign with address the frontpage and all other pages on the site (every article) unless otherwise told not to.
So adjust your main template to adjust your frontpage. I think you're using template overrides in the wrong way.

How can i integrate joomla media selector into a custom component

I'm writing a custom component for joomla 1.5 and i been searching for a way to integrate
com_media image selector into it.
All i want, is to have a functionality like, the image selection in the create article page.
Anyone knows how to do this?
Is there an API in joomla to do this, or do i have to see how is done in com_content an start
form there?
You can use a select box with image preview like the one used for the Sections and Categories thumbnails. This is much easier to integrate though images must come from single directory.
See the com_sections and com_content files in you Joomla Administrators components directory.
Also try posting this in the Joomla Forums.

Resources