Page 1 of 1
conf.template.default.inc
Posted: Thu 3. Jan 2008, 22:06
by Dharma
Hi,
I've just downloaded the latest version of phpwcms. I've managed to install the templates etc with no problems, but I have a problem with trying to change the tags that are used for the article title.
I've tried changing the article default values in conf.template.default.inc as well as custom_settings.php but to no avail. It still uses the <h1> </h1> tags for the article titles though i've changed it.
Can someone tell me where i'm going wrong?
Cheers.
Re: conf.template.default.inc
Posted: Thu 3. Jan 2008, 22:09
by update
Why would you like to change the h1 tag? Too big, too black? This can always be changed in frontend.css

Re: conf.template.default.inc
Posted: Thu 3. Jan 2008, 22:19
by Jensensen
[x]
Re: conf.template.default.inc
Posted: Thu 3. Jan 2008, 22:26
by Dharma
Claus, I'd like to change the default tag used for the title so that it uses a class which would add a line underneath the header. I'd prefer to keep the default <h1> tag as it is just so that I can use it with the wyiwyg html interface without having that underline (if that makes sense!)
If all fails, i'll just have to change the h1 tag in the frontend.css but i'd prefer not to do that if it can be helped
Jensensen, I've tried changing the templates in those too, but it doesn't seem to be doing much! I think something funny's going on with it. I might just have to go with the frontend.css option and save myself the headache of trying to work out why it's not taking notice of any of the changes i'm making!
Thanks for your help
Re: conf.template.default.inc
Posted: Thu 3. Jan 2008, 22:41
by update
Aha...
So you could do something similar to this one (perhaps, hopefully...)
Code: Select all
#main:first-child h1 {background: lime; color:#fff;}
where #main is your container your {CONTENT} is living
Since every article seems to have one h1 only, the first one must be the headline h1. But even in case of multiple h1 within this #main only the first one is taken into account.
Something to play with
EDIT: The example above is just an example - kind of a nonsense-example - only direction hinting

Re: conf.template.default.inc
Posted: Thu 3. Jan 2008, 23:03
by Jensensen
[x]
Re: conf.template.default.inc
Posted: Fri 4. Jan 2008, 10:39
by daniel.grant
Change your settings in template/inc_default/article_summary.tmpl if you do need do something funky. This changes your default settings; no need to select another template. Otherwise,
Code: Select all
#main:first-child h1 {background: lime; color:#fff;}
is good.
Re: conf.template.default.inc
Posted: Sun 27. Jan 2008, 19:00
by Dharma
Thanks Claus and everyone else. I've just gone for the CSS solution and it worked a treat. I actually prefer it to messing about with the templates.
PS. Sorry for the very late reply. Real life got in the way with it's trials and tribulations. Thanks all again

(saying that, i might be back again when i'm trying to mess about with the CSS navigation hehe)
Re: conf.template.default.inc
Posted: Sun 27. Jan 2008, 19:23
by update
trials and tribulations are like salt for the soup
