Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 08:25:56 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155534 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Catalog Module  (Read 919 times)
stokeboy

Offline Offline

Posts: 5


« on: April 19, 2010, 05:29:53 PM »


Hello All, I've been using WebsiteBaker for a while and think its fantastic, but have hit a problem I could do with some help with. I'm looking for help with the Catalog Module which I downloaded from the AMASP page, located under  - Modules/Listings/Various/Catalog

The scenario:

I have created several Categories which I've populated with elements/listings. When I navigate to the page it displays the categories I've created but also displays  "There are no elements in this category" as I haven't added any elements/listings at the root level.

Can anybody suggest a way I can replace the "There are no elements in this category" for the root category with a static page, but keep the "There are no elements in this category" if a sub category is empty?

Thanks in advance
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #1 on: April 19, 2010, 06:00:10 PM »

Only by changing the main page to a WYSIWYG page and put the sub categories in separate pages.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

stokeboy

Offline Offline

Posts: 5


« Reply #2 on: April 19, 2010, 06:24:23 PM »

Hi Klaus, thanks for the prompt response.  I think I understand what you are saying but I really want to display the catagories on the main page so don't think that will work how I want.

I've noticed that when a sub category is called the cat_id is posted in the url like this: www.mydomain.com/index_1.php?cat_id=x

Do you think there is some way I can post a variable or run a routine that loads additional content if the cat_id is not set, ie; when visiting the page with no cat_id variable the text is displayed instead of "There are no elements in this category"

Thanks
Andy





Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #3 on: April 19, 2010, 08:46:03 PM »

You would have to hack the module for that I think ... but did you have a look at the options of the page_module?

I would do it the way I described above, maybe with a code page and some PHP code instead of the WYSIWYG ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

stokeboy

Offline Offline

Posts: 5


« Reply #4 on: April 19, 2010, 09:07:21 PM »

Klaus

Thanks for your advice, definitely don't want to hack the module!

Sorry if I'm being a bit stupid, but what do you mean by looking at the options for the page_module?

Thanks
Andy
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #5 on: April 19, 2010, 09:20:04 PM »

Sorry if I'm being a bit stupid, but what do you mean by looking at the options for the page_module?

Every page has a settings page for the used modules ... there you can set some options.

Example - Top right Button "Settings" for a News Page:


cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

stokeboy

Offline Offline

Posts: 5


« Reply #6 on: April 20, 2010, 10:19:14 AM »


Now I understand! Yes, I checked but there were no obvious options.

I've just been looking at the MySQL database, I'm thinking I can probably create a seperate page for the home/main, then use php/sql to query the database (mod_catalogs_cats table has all the necessary Fields) and generate the Category list and relevant links.

Would appreciate your advise, do you think that would be an appropriate solution? My PHP/SQL/HTML is reasonable and improving so shouldn't take too long, what do you think?

Thanks again
Andy
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #7 on: April 20, 2010, 10:48:08 AM »

That is what I was hinting at above. Have a look at the anynews snippet for a start. it does that for the content of the news module.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

stokeboy

Offline Offline

Posts: 5


« Reply #8 on: April 20, 2010, 12:36:51 PM »


Thanks, I'll take a look and no doubt post more when I hit problems!
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!