coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: mikesalway on June 03, 2008, 11:19:48 PM

Title: [Solved]: anycontent as home page, but can't remove catlist
Post by: mikesalway on June 03, 2008, 11:19:48 PM
Hi all

I want to use anycontent.php as a "main page" with my own custom html/php to select one of two main galleries. The two gallery links would simply go to "http://xxxx/gallery/index.php?cat=YY" where YY is the top level category number.

From there, it would show the normal sub-category list.

So I edited the config to add "anycontent/breadcrumb/catlist/alblist...".

Problem is, if "catlist" remains, the categories still appear on the "home page". But if I remove "catlist", then on the sub-category pages, the sub-category list doesn't appear there either.

Is there some better/easier/different way to achieve what i'm trying to achieve?

Thanks
Title: Re: anycontent as home page, but can't remove catlist
Post by: Joachim Müller on June 04, 2008, 08:11:14 AM
Don't use anycontent as a selector page, but create a splash page that let's users decide where to go from there. I have posted this in several threads already, search for my previous postings, search term "splash page".
Title: Re: anycontent as home page, but can't remove catlist
Post by: mikesalway on June 04, 2008, 09:09:11 AM
Many thanks - that does help and I've got it implemented using .htaccess to go to a splash page before index.php.

The problem now is that using "Home" in the breadcrumb takes you to "../gallery/index.php" instead of just "../gallery" so it bypasses that .htaccess directive.

But i'm sure there's a rewrite rule that will achieve what I want - i'll dig around.

Thanks.