Doymer Consultores

  • Increase font size
  • Default font size
  • Decrease font size
Inicio Blog Joomla! artTree module
13
Aug
2010

artTree module

Print PDF

artTree is a module for Joomla! 1.5 that allow you to show your existing articles in a hierarchical way. It is based on the work by JoniJnm but extends his work further expanding significantly its functionalities.

After deciding to insert a new blog like section into my page and as time went on I found that the mechanism that Joomla provided to paginate the articles though valid were less than optimal and as the number of articles grew we ended up with along listing of page numbers at the bottom that direct you to another page unknowing what articles we will found there.

I wanted, needed, a module that presented, in an easy and intuitive way, all articles created up to date for the visitor to be able to easily select the one she liked without the need to walk through all the existing pages. I know that I could have inserted a section listing  and may be someday I'll do that but, for now, I was after a more elegant, less intrusive, method.

After a loooong search through the Joomla extensions repository I found the 'mod LCA' module by JoniJnm that contained basically the elements that I was after. But after installing it I noticed that it has two shortcomings that made it difficult to meet my needs:

  • It only was able to present the live articles, this is, those that were not archived
  • You only could have one instance of the module in each page

The first shortcoming was less relevant; it probably would be enough to send the developer a request for enhancement just to get it done but, after having a look at the code I saw that the second one were not going to be so easy. The developer had built its code thinking in a single-instance model so requesting this kind of change would have meant that he had to rebuild the module nearly in its entirety.

So artTree was born. Instead of asking another one to work to satisfy OUR needs we have done it ourselves. As a side effect we have rebuilt the CSS file so that it can live along with the ja-purity template, one of the most used ones and the one we are using, without killing each other.

Enjoy it!

Version 0.2 is out

Version 0.1 uses the code from the module it forks from. We had limited ourselves to add the functionalities that WE needed for our site and few else. But the original code required a lot of resources in the server that serves the page and that means that you probably will start having problems at the moment that the number of articles start to grow. That is the reason that this version is released few days after releasing the first one. Version 0.2 include this changes:

  • Rewrite of the main loop so that the articles list is now built in a single pass and that is something that will mainly notice those sites that hold a large number of articles. If the number of years to show is limited too then an early termination of the procedure will allow the module to be fully operative no matter the number or articles you have in your database.
  • (Experimental) You can limit the number of articles presented each month. If you have 300+ articles a month you may want to show only the first 50 to avoid showing an endless list when the user expand it. The counter of articles nevertheless will keep showing the real number of articles of that month. This effect is experimental because this may shock users more that help them so it is subject to comments. If you use 0 as the number, all articles will be shown.
  • New CSS style structure that allow you to go down to the item when defining the visual style of the table. You can, for instance make entries of a live articles table one colour and entries of a archived ones another colour.

Version 0.4 is out

At least one out of those that have downloaded this module has a lot to say. Or at least he has a lot to write because the number of articles he needs to manage is above 600. And it happens that when you reach a given number of items suddenly your page turns blank. Everything dissapears, menus, other modules, contents, everything. All. TODO.

We were working out version 0.3 when we received this user´s complaint. We were making our tests with a normal database (100, 200 articles?) as we suppose most of you have but as we started to increase the number of articles we could see that after some 700 entries the page got blank. Working to solve this problem version 0.3 got out (not published) and now we arrive at this 0.4 that we expect will solve definitively the problem with the high number of entries. Or that is what we expect. We depend on you to know if we have achieved that.

And by the way it also have the features that were to be part of version 0.3. The down side of this update is that the CSS selectors got modified to adapt to the new structure so that if you had modified the former ones you will have to save the css file before installing this new one and you will have to pass the changes to the new selector structure afterwards.

Versión 0.6 is ready

R. Rajoz noticed that articles listed included those articles that were not being able to be accessed when users clicked in their links because their higher level of security . This fact expressed an incoherence and a bad practice as the user is going to get an error window when following the link and we know it in advance.

Thanks to the changes proposed by himself and that are included in this version these articles appear no more in the list of available ones being the list now coherent with the security level of the contents.

Version 0.7 is out

Jeffery Brown detected that, if the number of elements to show was limited, two bad things will happen: the 'more' text was visible even when the month element was collapsed and the text was not conveniently translated to the front end language. Both problems are fixed in this version that uses the mootools $ operator to interact with the list of hidden items in excess so that you require it to be active. I have used it both to disconnect this module from the browser version you are using and to simplify the code because, you already usually have one of the frameworks that define this function active (and sometimes you even have more than one at once).

Fixing problems

User X-Bit found a problem when more than one section or category were selected. Version 0.5 fixes this.

mod_arttree_0_7 Version:0.7

artTree es un mólulo que permite presentar los artículos existentes de una forma estructurada agrupandolos por fecha.

Esta versión corrige un problema de posicionamiento del texto que despliega los artículos ocultos cuando se activa el límite de artículos a presentar así como la traducción del este texto a otros idiomas.

NOTA: *REQUIERE* mootools activo

 GNU/GPL    2011-03-20   Multilanguage   Joomla 1.5  13.08 KB  4374

Share
Last Updated on Sunday, 20 March 2011 14:00  

Comments  

 
+1 # 1000 2010-10-30 02:55
Hi

I just downloaded the 0.4 version but when I istall it it says it is 0.4 and yes the bug with articles not accessible to everyone being referred by the tree is still there
Reply | Reply with quote | Quote
 
 
+1 # Administrador 2010-10-30 09:22
Why not to download version 0.6?

Anyway I do not understand what you mean with “the bug with articles not accessible to everyone being referred by the tree”.

If you mean that there is no article filtering based on user level well, that is fixed in 0.6 so it is expected that 0.4 already has this problem.

If you mean anything else please explain it so we can fix it.

Regards
Reply | Reply with quote | Quote
 
 
0 # Local SEO Dallas 2013-03-01 02:55
Thanks for the information.
Reply | Reply with quote | Quote
 
 
0 # translate to persian 2011-03-06 21:43
hi
im developer of joomla
this 0.6 trans to persian lang
may be send for you ? you can insert file lang in to modul

thank
Reply | Reply with quote | Quote
 
 
0 # azam 2012-10-20 09:30
hi

I need this translate of mod
_arttree to persian.please help me.would you please send this module to me.

thank you
askari
Reply | Reply with quote | Quote
 
 
+2 # Tishaia 2010-11-04 13:15
Hi! First I have to say I really like your module! It does exactly what I needed w/o whole bunch of unuseful "blog" features which we get with "blog" packs. So Thank You!

I have a little problem thou. My joomla is in polish (well partially, I'm trying to change all modules to be in my native language). Names of the months in the art tree are in polish, but they are not correct gramatically :(. They are like in date, with "a" in the end, december = grudzień, 1 december = 1 grudnia). Is there any way to define correct names inside art tree files? What should I do? :C
Reply | Reply with quote | Quote
 
 
0 # Administrador 2010-11-17 17:09
I may be unfocused about the problem but artTree is using JDate::_monthTo String function call to get the month’s names. This function returns a JText of the month name so that you should automatically get the right name depending on the language that the user has selected for the front end. If it is polish and you have the polish language files in your system it should appear in polish. This allow you to have your page in several languages and it will show the texts in the right one without any further intervention on your part.

But you are telling me that, in your case, you are NOT getting the right names. To achieve what I have exposed Joomla is using the country code (es-ES for me, en-UK for the default lang) of the selected language and extracting its data from the corresponding .ini file located at /languages/lang-ID/ folder. So you should go to the language folder for your language and check if what is written there is correct or not.

If this does not solve your issue then tell me and I will study to include a switch to allow you to use your own STATIC descriptions for the month (this mean, they will not be able to adapt to a multi-language site). Anyway using the standard way is normally better as it implies less effort for you to maintain you site.
Reply | Reply with quote | Quote
 
 
0 # Raul Paredes 2010-11-17 06:53
I installed it and activated it, and selected the sections but nothing is shown...
Reply | Reply with quote | Quote
 
 
0 # Otto Garcia 2011-01-18 19:11
I just download the last version, it does work with the category and sections that I wanted to work with, but I have a problem with showing the module.

I need this module to be shown in only one menu, when I select the specific menu element it doesn't show this module, if I choose the module to be shown in all menu items, the module works perfectly.

Am I doing something wrong?
Reply | Reply with quote | Quote
 
 
0 # Administrador 2011-01-30 14:54
Hi Otto. Sorry for the delay.

Yes, you must be doing something wrong. As a proof of concept you only have to take a look at my own site: the artTree modules only display in the blog section (defined in an specific menu element) and does not display in any other part of the site.

So you should be able to achieve the same behaviour. You will have to recheck your config. Which modules are shown in which pages is something that the Joomla! Framework provides by itself. It does not depend on the module.
Reply | Reply with quote | Quote
 
 
0 # coach outlet 2011-02-12 02:36
It is an amazing answer for me and help me so much. I'd like to be the practitioner of this blog and as a honest fan about it. Welcome to share and reprint.
Reply | Reply with quote | Quote
 
 
0 # Jeff 2011-02-25 04:27
I like your module because it works in place of mod_lca which breaks mod_mainmenu after specific number of articles are added to a section. I do have one problem.

Installed ArtTree v0.6 module on Joomla 1.5.22 it works well except when I set the max articles per group. The code does not translate y to and, or mas... to more... It renders as shown below. Can you provide me with the fix for this bug.

> February (19)

y 14 mas...

> January (10)

y 5 mas...
Reply | Reply with quote | Quote
 
 
0 # Admin 2011-04-29 19:15
Thanks Jeff.

Repaired in version 0.7.
Reply | Reply with quote | Quote
 
 
0 # Are Almaas 2011-03-15 21:53
Hi!

The only problem i have is that the module shows in 2 menus, not in one. And thats weird because i chose just one menu from the list. In the menu where its not supposed to be it just says the month. Not a list of articles. what have i done wrong?
Reply | Reply with quote | Quote
 
 
0 # Are Almaas 2011-03-15 22:26
Deleted the menu, and added it again, now it works;p
Reply | Reply with quote | Quote
 
 
0 # Carlos 2011-04-17 18:50
Hello, the module is very good!. Its display in this order:

Year>> Month>> category?

Congratulations for your work!
Reply | Reply with quote | Quote
 
 
-1 # Admin 2011-04-29 19:20
Carlos.

In the module parameters you state the desired ordering you want that in any case is year->month->article name (sections are not taken into account here)
Reply | Reply with quote | Quote
 
 
-1 # Russell 2011-04-26 07:16
What is the component you use for your comments section? The reason i'm asking is because I'm having issues where my comments are restricting the articles to be shown from artTree.
Reply | Reply with quote | Quote
 
 
-1 # Admin 2011-04-29 19:22
The comments section is powered by JComments.
Reply | Reply with quote | Quote
 
 
-1 # Vladislav 2011-05-06 19:53
Hello, great module! But I have one problem: every article I wrote 1 january, or 1 february, or other month is not shown :cry:
I have more, than 38 articles in that catagory but it shows only 38
Reply | Reply with quote | Quote
 
 
-1 # Tambayanspot 2011-08-17 20:00
Quoting Vladislav:
Hello, great module! But I have one problem: every article I wrote 1 january, or 1 february, or other month is not shown :cry:
I have more, than 38 articles in that catagory but it shows only 38


Got the same problem :)
Reply | Reply with quote | Quote
 
 
+1 # Tambayanspot 2011-08-17 20:03
Admin please help us with this problem of our... thank! :) I had the same problem with Vladislav.
Reply | Reply with quote | Quote
 
 
-1 # admin 2011-09-02 19:22
Hi Vladislav.

For an article to be shown in the listing it MUST be active, that is, it must be published, it's finish publishing date must be greater that the actual date and it's start publishing date must be lower or equal that the actual date.

Besides, the security level of the user must allow her to see it and it must belong to one of the filtered sections and categories if applied (and all categories and sections used must be published in turn).

Do you mean that all these conditions are met by your articles and still they do not show up in the list?

Regards.
Reply | Reply with quote | Quote
 
 
0 # Mark 2011-07-29 08:39
Hi.. how can I add to CSS when you hover it it will underlined?
Reply | Reply with quote | Quote
 
 
0 # admin 2011-08-01 09:18
You will have to add a new style to the css file. Find the 'modules/mod_arttree/assets/css/arttree.css' file in your deployment. Then look for the '.articulos a' style copy it, paste it into a new line and append ':hover' at the end.

Put inside this new style whatever you want the appearance to be when hovered.
Reply | Reply with quote | Quote
 
 
0 # alvin ngan 2011-09-02 18:28
Hello, I find the arttree mod to be extremely useful. However, the date seems to be off when compared to my article. For example - my article is created on August 31st, but the mod puts it into September. I noticed that this typically occurs, if the article is created in the evening - I think it may be off by a few hours.. Is there a time setting? My joomla configuration is currently set appropriately to pacific standard time, my time zone. Thanks!
Reply | Reply with quote | Quote
 
 
0 # admin 2011-09-02 19:08
Hi Alvin.

For what you say it may look like that there exist a timezone offset problem but the final location of an article in the list is given by the month number returned by a call to MySQL function MONTH (using the created field of the article record from the database as reference). So that in the database your article will probably figure as created on September 1st.

To check this for that articles in particular you should look directly at the database field that hold the created date and check if it is as you expected. May be you started writing the article late at August 31st but the first save of it was on September 1st and that was the date that was saved in the database.

Please look at the database itself and report the results if you are so kind.

Regards.
Reply | Reply with quote | Quote
 
 
+2 # Matia 2011-12-12 23:12
I have roughly 950 articles I would like to put into this mod but after about 400 the whole page goes down. Is their a max article amount? And if so is their any way around it? Thanks!
Reply | Reply with quote | Quote
 
 
0 # admin 2012-01-01 21:43
Hi Matia.

The code itself has no limit. The actual limit depends on the ammount of resources that the computer where the page load has.

By reducing the ammount of elements in the module we were able to present more than 1000 items so I do not know why you are breaking at 400.

If you can supply a database with such ammount of articles we may be able to test it and see if there is something to fix.

Regards.
Reply | Reply with quote | Quote
 
 
0 # Michal 2012-03-27 07:23
Hello.

I wanted to ask if you thought about the functionality a little simpler than what it is. I'm looking for module to present archival articles. Something in the way of your module, but without the presentation of the articles in the tree. After clicking on year, months act as a link, which shows in the main window filtered articles from that time range.

Regards.
Reply | Reply with quote | Quote
 
 
0 # admin 2012-04-07 16:17
Well, I did not thought about that because those were not my needs.

Regards.
Reply | Reply with quote | Quote
 
 
0 # Carl 2012-07-26 18:29
Hi,

Nice module: very simple and fit for purpose.

I hope that you don't mind me contacting you about this.

I use a Joomfish extension called 'Contenttable Localisation': this allows you to suppress untranslated content items.

Whilst this successfully hides all untranslated content via the usual Joomla menus and categories blog views, unfortunately, the artTree module still reveals ALL items (in the default language) as well as the translated ones. I wondered whether you'd seen this in use before and whether there was a fix so that artTree also hides the Joomfish untranslated articles in its drop-down?

Thanks,
Carl
Reply | Reply with quote | Quote
 

Add comment

The owner of this site is not responsible of the opinions that users pour in their comments, and can or cannot agree with what they write.

Fair Play, Please

Please do not make offensive or insult-ant comments. Avoid publicity and Spam. Do not use the comments area to 'plug' your own site. Links you write may be erased. We pretend to create an open space for the authors and users to communicate.

Everyone will enjoy the right use of language, because not all are able to understand 'codified' messages SMS alike. Please do not write only with UPPER case because this is like yelling and you will probably not get attended faster only for yelling, probably the opposite.

Editing reserves

We reserve the right to not include comments that are offensive, unpleasant, that attack third parties (racists, homophobes, etc) or that have nothing to do with the site or the article.
Supplied data is private and owned by you and will not be used to start any commercial or other kind of action.


Security code
Refresh


Archived Items

Powered by ArtTree