Best way to remove tables without changing core?

Locked
room58
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 19, 2006 3:18 pm

Best way to remove tables without changing core?

Post by room58 » Tue Jun 06, 2006 3:45 pm

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?

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Best way to remove tables without changing core?

Post by Websmurf » Thu Jun 08, 2006 7:48 am

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

room58
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 19, 2006 3:18 pm

Re: Best way to remove tables without changing core?

Post by room58 » Thu Jun 08, 2006 7:52 am

I see......

and Joomla 1.5 will be released when?  ;)

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Best way to remove tables without changing core?

Post by Websmurf » Thu Jun 08, 2006 7:59 am

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

room58
Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 19, 2006 3:18 pm

Re: Best way to remove tables without changing core?

Post by room58 » Thu Jun 08, 2006 8:03 am

Excellent news, I'm guessing that 'not far away' means weeks, and not months, years decades  ;D

User avatar
duvien
Joomla! Ace
Joomla! Ace
Posts: 1824
Joined: Sun Sep 18, 2005 8:28 pm
Location: Scotland
Contact:

Re: Best way to remove tables without changing core?

Post by duvien » Fri Jun 09, 2006 2:45 am

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

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Best way to remove tables without changing core?

Post by Websmurf » Fri Jun 09, 2006 7:17 am

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

User avatar
Websmurf
Joomla! Hero
Joomla! Hero
Posts: 2230
Joined: Fri Aug 19, 2005 2:23 pm
Location: The Netherlands
Contact:

Re: Best way to remove tables without changing core?

Post by Websmurf » Fri Jun 09, 2006 7:56 am

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

User avatar
duvien
Joomla! Ace
Joomla! Ace
Posts: 1824
Joined: Sun Sep 18, 2005 8:28 pm
Location: Scotland
Contact:

Re: Best way to remove tables without changing core?

Post by duvien » Fri Jun 09, 2006 8:10 am

Thanks for that, i'll look into it  :D
Custom website design | blog | tutorials | Photography | Downloads
Freelance Web Designer/Developer: www.duvien.com


Locked

Return to “Design and Accessibility - Archived”