Question about components : create or modification

For Joomla! 1.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Locked
hgt
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 24, 2009 10:19 pm

Question about components : create or modification

Post by hgt » Mon Mar 01, 2010 10:54 am

I want add new functionality to com_user and com_content. I have question... whether it is better to write a new component: com_user_extend or modify existing com_user. How to modify com_user it lose the possibility of easy updates. How to write a new duplicate of the code. ? :-[

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: Question about components : create or modification

Post by dam-man » Tue Mar 02, 2010 9:53 am

You should write your own, other you can never upgrade your Joomla! installation. The modified data will get lost then.

What do you want to accomplish?
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

hgt
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 24, 2009 10:19 pm

Re: Question about components : create or modification

Post by hgt » Tue Mar 02, 2010 12:58 pm

I create portal with a directory of companies, offers, and I need to add a user type: the company, an individual, description of additional fields. In each article com_content wants to add a photo (3 kinds of size) and a few changes

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: Question about components : create or modification

Post by dam-man » Tue Mar 02, 2010 1:34 pm

I think you should start a new component.
Modifying com_content is not suitable for this.
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

hgt
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 24, 2009 10:19 pm

Re: Question about components : create or modification

Post by hgt » Tue Mar 02, 2010 1:44 pm

I think so too. just wondering whether to use a table com_content (jos_content) or prepare their

User avatar
dam-man
Joomla! Exemplar
Joomla! Exemplar
Posts: 7961
Joined: Fri Sep 09, 2005 2:13 pm
Location: The Netherlands
Contact:

Re: Question about components : create or modification

Post by dam-man » Wed Mar 03, 2010 8:27 am

hgt wrote:I think so too. just wondering whether to use a table com_content (jos_content) or prepare their
Your own component, needs his own tables also.
Robert Dam - Joomla Forum Moderator
Dutch Boards | Joomla Coding Boards | English Support Boards

hgt
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 24, 2009 10:19 pm

Re: Question about components : create or modification

Post by hgt » Wed Mar 03, 2010 8:38 am

What you think about com_user. I want to add some additional fields to register: better a new view controller + new view + new JTable for the user or as it is in the K2 community through plug-ins ? :)


Locked

Return to “Joomla! 1.5 Coding”