coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: RadioErewan on May 21, 2008, 09:38:54 PM

Title: [Solved]: Frontpage only modifiication
Post by: RadioErewan on May 21, 2008, 09:38:54 PM
Would like to modify frontpage of CPG only. We need slideshow (slideshowpro powered) on frontpage only. Where to start? Need some guides on modifying theme file, have no idea how to distinguish between any other page and main CPG screen. Any hints?

Regards
Radek Przybyl
Title: Re: Frontpage only modifiication
Post by: Nibbler on May 21, 2008, 09:42:13 PM
Use anycontent.php
Title: Re: Frontpage only modifiication
Post by: RenesCopper on May 27, 2008, 07:01:27 PM
And...?   :P
Title: Re: Frontpage only modifiication
Post by: steveeh131047 on May 27, 2008, 07:46:08 PM
Radek,

Put any code that you want to see only in the CPG homepage into "anycontent.php", and insert the string "anycontent" into Admin > Config > Album list view > The content of the main page.

To quote the "help" on this item:

Quote'anycontent': inserts php-generated content that has to reside within the file 'anycontent.php' into the index page. Can be used to include banner-rotation scripts or similar.

Steve
Title: Re: Frontpage only modifiication
Post by: RenesCopper on May 28, 2008, 08:50:04 AM
 :-* Thank you. That resolved many questions. I was wondering how to have an intro page.