Edit joomla template according to my design template - joomla

I just want to know can I customized joomla template to looks like my design template ? I already designed a template for customer. But he needs to develop his website using joomla. So I have to put my template to the joomla. is that possible ? if it is please send me some reference. I'm going thought with references.

Joomla templates are based around a PHP index file and allow you to create overrides for each of the content types output by Joomla.
The Joomla Doc's site has a section on templates that you should start with.
Make sure you read up on Template Overrides and Module Chrome as well. Reviewing the templates installed by Joomla is also a good place to start. You can get a good feel for how they are structured and what they're capable of by looking at the default templates.
By the way if your client is only just building their website now they should be starting with Joomla 3.2 not 2.5, it has a lot of great features and is very Bootstrap friendly. In fact the tag line for the 3 series is "Mobile Ready"
Template systems like JooStrap also have Bootstrap 3 integrated already.

I just want to know can I customized joomla template to looks like my
design template ?
That's tedious works; the opposite is easier. Your design can be turned to Joomla template. Just add template codes to your HTML and your design can be used as Joomla template.
For example, you need to add the following code before <html>:
<?php defined( '_JEXEC' ) or die( 'Restricted access' );?>
For a basic guide, visit: https://docs.joomla.org/Creating_a_basic_Joomla!_template
There are also codes to display your website contents and modules.

Related

Add static javascript to every page of joomla

Im completely new to Joomla development. I need to develop Joomla plugin that adds static javascript to the footer of all the pages of a Joomla site. Also, the plugin would need to save 2 fields in database, and access these fields on per page basis. Also, Admin panel is needed.
Now, my questoion is, where do i start? Joomla plugin development is a big task, so if I can get some pointers as to where to start, it would be very supporting.
Im not asking for direct code, but just the right direction to start.
Thanx in advance....
Joomla has three types of extensions (what you refered to as plugin): components, modules and plugins, where each has a different purpose.
If you need to add javascript to all pages, the best place is your template. If you don't have access to template, just building an extension, then you have to create a content plugin.
If you need to create extension with admin panel which also works with database, you need to create a component. The best place to get started is tutorial Developing a MVC component for Joomla 2.5

How to add 2 templates for joomla 2.5 modules

I want to build my first module for Joomla 2.5 but I have a problem. I want to have multiple templates for my module, and the admin of the site can choose the templates from the config of the module. How can I do this ?
You are planning to create a joomla 2.5 front end module.then you can achieve your requirement as follows
You can use the joomla module override concept.
For each template you are using you can write module inside template folder for overrides.
like as follows
TEMPLATE_NAME/html/mod_login/default.php
for more details take a look at this.
I hope this will solve your issues..

Component part shown in joomla frontend

How do I display the form in the frontend in Joomla 2.5, just like the Create Article form shown in the frontend?
You can obviously create an form in an article but it will be pointless as the form will require PHP functions which cannot be written in an article.
Your best bet would be to develop a simple module which you can embed in an article or download a free form extension from the Joomla Extensions Directory.

joomla - how can I create new content types in joomla

I'm new to joomla. I have been using Drupal for quite some time.
I would like to created new content types for news and announcements. How may I accomplish creating new content type in Joomla without installing a new module.
You're coming from Drupal so I am thinking that what you're looking for and cannot find in Joomla is something like CCK (Content Construction Kit)
Unfortunately this is not available by default in Joomla. You have to use extensions to create new types of content that contain specific fields.
Best free CCKs available for Joomla :
Form2Content (my favorite)
K2 (most popular, highly recommended)
You can find more in Joomla Extension Directory
I would say the same, for me i always use k2 as it integrates with many plugins and modules also featuring rich content forms
As per the answer from #Ahmad, install a CCK to add new content types.
In your case however, the built in Joomla functionality may suffice such as creating content categories for news and announcements and choosing menu options or modules to suit.
While K2 is a great CCK, there is a table named "jos_content_types", which makes me think, that joomla can handle content-types as well.
With different views, form-xml files and so one.
I found it while looking on this page: https://docs.joomla.org/J3.x:Using_Tags_in_an_Extension
But i didn't find any doc about creating new content-types easily by now. Does someone have more infos, how to create a new content-Type? Or is it just a new component, we have to create?

In a custom Joomla! template, how can I determine whether I am on the home page?

I am trying to create a custom template, but I want the template to look a little different for my Joomla! homepage/frontpage. Is there a easy boolean-type expression I can use to determine whether I am on my site's homepage?
That way, I can just say if ($on_homepage) { [custom homepage html] } else { [regular template] }
Thanks in advance!
You can create a separate template for your homepage. More details here.
This is very easy, just create 2 templates. One for your homepage and one for the rest of your site. Then install both, make sure you give them a descriptive name in their xml file so you know the difference.
Once they are installed you can set a default template that would be site wide. Then choose/click on your homepage template and it's options will load up. On the bottom left you can select the menu items where this template will be visible. This setup is very much like the way in which you define where modules are shown.

Resources