Author Topic: show category and subcategory  (Read 5562 times)

0 Members and 1 Guest are viewing this topic.

Offline mboumans

Re: show category and subcategory
« Reply #10 on: 08. December 2008, 10:58:40 »
Hi Kenmcd,

I totally agree with your ideas. With these changes SOBI will make a hugh step forward in SEO and usability. But it is one of my favourites anyway ....  :)

Since I'm not a programmer I cannot help you with this, so I will sit and wait patiently.

Country: Netherlands Netherlands |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline kai920

Re: show category and subcategory
« Reply #11 on: 10. December 2008, 07:28:19 »
2. This hack displays the category at the top of the v-card template.
SOLUTION] Displaying category name instead of component name at category view page?
http://www.sigsiu.net/forum/index.php/topic,9229.msg43492.html#msg43492

Drawbacks:
 - does not display on category pages without entries displayed in v-cards
 - displays below the sub-categories
 - usability issues
 - accessibility issues
 - SEO issues

Just want to point out another potential drawback - I encountered some javascript errors with IE6 and 7 with this. (Think i posted a bit about it afterwards)
Useful Sobi2 links
1. Template Commands
2. F.A.Q.
   Other useful links
1. Firebug
2. Firebug
3. Firebug
Country: Hong Kong Hong Kong |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline mboumans

Re: show category and subcategory
« Reply #12 on: 13. December 2008, 00:49:05 »
@kenmcd

Of course I can do some testing or whatever I can do to help you; let me know! Just saw that my answer looked very passive .... But I am willing to put some time in, just can't write code.

cheers
Country: Netherlands Netherlands |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline kenmcd

Re: show category and subcategory
« Reply #13 on: 20. December 2008, 08:06:08 »
@kenmcd

Of course I can do some testing or whatever I can do to help you; let me know! Just saw that my answer looked very passive .... But I am willing to put some time in, just can't write code.

cheers

Progress so far:
 - added the Categories/Sub-Categories and Listings sub-headings.
 - added strings to the language file for translation.
 - added switches to the Registry to enable the user to turn-off these sub-heading displays.
Seems to work properly with the SOBI2 cache.
 
After doing the above changes, I set this aside to work on some other issues.
Still need to either add text such as "there are no listings in this category" or
simply make the sub-headings not display on those pages.
Or a combination of the two.
From a usability perspective I think the text "there are no listings in this category"
is better because it is a positive display which is unambiguous.
Simply leaving a blank is not as helpful to an end-user.
It might even be better to have "there are xx listings in this category" and always display this text.

While doing this I got to thinking about doing future SOBI upgrades and what a PITA it will
be to always have to merge these basic usability hacks over and over for every update.
And there are other things I would like to change or move on the mainpage/category pages.
So I am looking at moving this all to a custom function which would be easier to maintain.
This way it may even be possible to have a Mainpage/Category View Template.
But this will take more time to learn more, etc., etc.

As I said before, I am just learning PHP so it takes me longer than if I knew PHP well and SOBI2 itself well.
After I finally got a handle on how SOBI2 is constructing the pages and added the sub-headings
it made me wonder why this is has been such a big deal.
Someone who knew both PHP and SOBI2 well could have done in hours what took me days.
 
 
50 SOBI2 Joomla Web Sites - Free! Publication Available
A showcase of 50 SOBI2 websites with screenshots and descriptions of add-ons used.
Direct download (22MB): 50-SOBI2-Joomla-Web-Sites.2008-11-10.CHM.zip
Country: United States United States |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile Joomla Docs

Offline ~GW~

  • Sobi Experte
  • ****
  • Posts: 426
  • If you don't ask .... :)
  • Reviews:

    What is it?

Re: show category and subcategory
« Reply #14 on: 31. December 2008, 00:48:42 »
Not sure if this helps but I added these two lines of code to my frontend.class.php file and all works for me

Code: [Select]
if( $config->key( "frontpage", "catlist_browser_title_add_cats", true ) && isset($cat->name)) {
$this->sobi2Header = $this->sobi2Header."\n\t<h2>{$cat->name}</h2>";}

Add this after

Code: [Select]
$msg = sobi2Config::request( $_REQUEST, "mosmsg", null);
$msg = $msg ? "<div id=\"sobimsg\" class=\"message\">{$msg}</div>" : null;
$this->sobi2Header = $this->sobi2Header."\n\t</tr>\n</table>\n\n{$msg}\n\n";

You can see it working here - http://dogsites.com.au/breeders-directory/breeds-a/affenpinscher-2.html

Cheers

Greg
Country: Australia Australia |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline metabo_man

Re: show category and subcategory
« Reply #15 on: 01. January 2009, 10:15:13 »
hello Mboumans, hello to everyone -

First of all i wish you all a Happy New Year!

i am new to SOBI, i love to learn from helping others - and from trying to understand what problems others have.... and how to fix.

Already saw this solution. It does show categories and subcategories BUT not on an EMPTY category. Since I'm starting up a rather large database I've loads of empty categories so people do not see where they are at once .....

That sounds interesting - you want to start a page with lots of entries - and you populate the db first...
It sounds good. Can u explain a bit more...


thx in advance

metabo
Country: Germany Germany |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline mboumans

Re: show category and subcategory
« Reply #16 on: 04. January 2009, 23:02:08 »
@ gwmbox: that's indeed what I was thinking about. For the time beeing this is very ok! >> Thanks!

@ kenmcd: Hope someone can help you

@ metabo: problem is pointed out above, Kenmcd has some very good input.

Metabo maybe you can help kenmcd?

Really wish I could do something but sit and wait ... ;).
Country: Netherlands Netherlands |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Offline Continuum

Re: show category and subcategory
« Reply #17 on: 09. January 2009, 00:52:10 »
what about using breadcrumbs?

It works for me.
Country: Australia Australia |  OS: Unknown Unknown Browser: Unknown Unknown | View Profile

Tags: