conf.template.default.inc
conf.template.default.inc
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.
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
Why would you like to change the h1 tag? Too big, too black? This can always be changed in frontend.css 

It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Re: conf.template.default.inc
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
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
Aha...
So you could do something similar to this one (perhaps, hopefully...)
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
So you could do something similar to this one (perhaps, hopefully...)
Code: Select all
#main:first-child h1 {background: lime; color:#fff;}
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

Last edited by update on Fri 4. Jan 2008, 09:37, edited 1 time in total.
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
-
- Posts: 97
- Joined: Thu 2. Nov 2006, 15:42
- Location: London
Re: conf.template.default.inc
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,
is good.Code: Select all
#main:first-child h1 {background: lime; color:#fff;}
Re: conf.template.default.inc
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)
PS. Sorry for the very late reply. Real life got in the way with it's trials and tribulations. Thanks all again

Re: conf.template.default.inc
trials and tribulations are like salt for the soup 

It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.