The Joomla! Forum ™





Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue Jun 06, 2006 3:45 pm 
Joomla! Intern
Joomla! Intern

Joined: Wed Apr 19, 2006 3:18 pm
Posts: 65
Is there a sensible way to remove tables from the the layout of Joomla (mosMainContent) without ruining forward compatibility? I'd like to just output a nice div without the associated tables. Could I perhaps create custom modules to do this or maybe extra methods in the HTML_content class?


Top
 Profile  
 
PostPosted: Thu Jun 08, 2006 7:48 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
At this point no, in Joomla 1.5. it will be possible to create template files that will overwrite the default way of output.

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Thu Jun 08, 2006 7:52 am 
Joomla! Intern
Joomla! Intern

Joined: Wed Apr 19, 2006 3:18 pm
Posts: 65
I see......

and Joomla 1.5 will be released when?  ;)


Top
 Profile  
 
PostPosted: Thu Jun 08, 2006 7:59 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
That's a good question. A first beta shouldn't be to far away though.

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Thu Jun 08, 2006 8:03 am 
Joomla! Intern
Joomla! Intern

Joined: Wed Apr 19, 2006 3:18 pm
Posts: 65
Excellent news, I'm guessing that 'not far away' means weeks, and not months, years decades  ;D


Top
 Profile  
 
PostPosted: Fri Jun 09, 2006 2:45 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sun Sep 18, 2005 8:28 pm
Posts: 1824
Location: Scotland
Websmurf wrote:
At this point no, in Joomla 1.5. it will be possible to create template files that will overwrite the default way of output.


Do you mean there will be an option to remove tables in the main content area? Can you point me to some docs if available?

thanks,

_________________
Custom website design | blog | tutorials | Photography | Downloads
Freelance Web Designer/Developer: www.duvien.com


Top
 Profile  
 
PostPosted: Fri Jun 09, 2006 7:17 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
From what I understood yes, this was mentioned a while back though so it might be possible plans have changed.
Will see if i can find some documentation :)

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Fri Jun 09, 2006 7:56 am 
User avatar
Joomla! Hero
Joomla! Hero

Joined: Fri Aug 19, 2005 2:23 pm
Posts: 2230
Location: The Netherlands
Jup,

found it.
Have a look at the function _loadView in /libraries/joomla/application/controller.php

This is purly a guess based on what i see in the code, haven't tested it:

You can override the core content by putting files in your template:
/templates/mytemplate/com_content/archive.php
/templates/mytemplate/com_content/article.php
/templates/mytemplate/com_content/blog.php
/templates/mytemplate/com_content/category.php
/templates/mytemplate/com_content/section.php


For the content of those files have a look at /components/com_content/view/* with one small difference, the name of the class should be JArchiveViewArchive_alt in stead of JArchiveViewArchive and JContentViewArticle_alt in stead of JContentViewArticle etc.

_________________
Adam van Dongen - Developer

- Blocklist, ODT Indexer, EasyFAQ, Easy Guestbook, Easy Gallery, YaNC & Redirect -
http://www.joomla-addons.org - http://www.bandhosting.nl


Top
 Profile  
 
PostPosted: Fri Jun 09, 2006 8:10 am 
User avatar
Joomla! Ace
Joomla! Ace

Joined: Sun Sep 18, 2005 8:28 pm
Posts: 1824
Location: Scotland
Thanks for that, i'll look into it  :D

_________________
Custom website design | blog | tutorials | Photography | Downloads
Freelance Web Designer/Developer: www.duvien.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 0 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