coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: Jaycjp on January 29, 2005, 01:34:30 PM

Title: How can new text be added?
Post by: Jaycjp on January 29, 2005, 01:34:30 PM
Hi,

First of all it may be useful to know that I know HTML but not PHP.

How would I go about adding new text to individual pages ???
I managed to add new links in the themes.php file with know problems but if I add any other text it obviously shows up in all the other pages as well.

For example how could I add text to show up in the home page only but know others, or say only the section where you can comment on an image ect. Basically i'm trying to add individual content (text or other) to individual pages.

I have a good idea how to do this on a HTML only based site but not on a PHP site.

Any help that can be offered is very much appreciated indeed :)

Thanks,

Jay
Title: Re: How can new text be added?
Post by: Joachim Müller on January 30, 2005, 07:33:01 AM
use anycontent.php to display content on the index page. Add a switch (conditional) statement if it is only meant to show on certain  pages. You're looking for dynamic content, which can only be accomplished using PHP (html alone won't do), so you'll have to look into php as well, sorry.

Joachim
Title: Re: How can new text be added?
Post by: Tchit on January 31, 2005, 04:37:13 AM
You can just edit your template.htm file ! It is in the Themes folder (choose the theme you are using) and then you edit the html template.
Title: Re: How can new text be added?
Post by: Joachim Müller on January 31, 2005, 08:07:52 AM
you can edit that file, but content from template.html won't be dynamic, but static, i.e. it will be visible at all times.

Joachim
Title: Re: How can new text be added?
Post by: Hein Traag on January 31, 2005, 11:07:32 AM
Or you go to the miniCMS thread on the modifications board and see if that might be what your looking for.