Page 1 of 1
First things First!
Posted: Fri Apr 13, 2007 8:32 pm
by rj
This is going to make me look like a real idiot.

But I have a feeling this may solve most of my conceptual problems concerning BLOGS.
The main page of my blog is open in Firefox.
I click view and page source.
Its all very familiar regards to websites.
Doc type, head, metas, head strings and body.
Things I actually do understand quite well!

But no file name, just the default directory, serendipity/??
Boy would I like to edit that!
This might answer all my questions on where to put my xml, JS and FLASH pointers to content in ENTRIES and NUGGETS. Not to mention ROBOTS and KEYWORDS and the GOOGLE BLOG stuff I am just learning about.
So, is that a file? Is it in that same HTML format?
And if so, what is it called???
RJ
Re: First things First!
Posted: Sat Apr 14, 2007 12:35 pm
by garvinhicking
Hi!
This is the index.tpl file of your template directory.
But the HTML Page Nugget plugins allow you to put HTML/JS/SWF code into the head or header section already.
Best regards,
Garvin
Posted: Sat Apr 14, 2007 3:02 pm
by rj
Ah....
To get Google searching correctly they have these blocks of API code to use. So this is the file where I would put that code in the <head>. And the code would apply to the entire blog?
So for each nugget I use standard HTML head tags if I have js and flash in them?
<html>
<head>
meta this and that if I like
pointer to my style.css (or does that come default)
Pointer to my .js
Pointer to my .swf
</head
<body>
</body
</html>
Posted: Sat Apr 14, 2007 6:15 pm
by garvinhicking
Hi!
To get Google searching correctly they have these blocks of API code to use. So this is the file where I would put that code in the <head>. And the code would apply to the entire blog?
Yes, exactly.
So for each nugget I use standard HTML head tags if I have js and flash in them?
Uhm. EITHER you edit index.tpl file OR you use HTML Page nuggets. If you make both, you'll have everything twice.
Regards,
Garvin
Posted: Sat Apr 14, 2007 10:03 pm
by rj
I noticed in that .tpl file there is no closing </head>
Is that suppose to be that way?
And to make sure about all this, in that TPL file I can remove the code in <title> and make my own?
And add my own meta keywords, description and Robots. Right?
RJ
Posted: Sun Apr 15, 2007 3:32 pm
by garvinhicking
Hi!
rj wrote:I noticed in that .tpl file there is no closing </head>
Is that suppose to be that way?
A closing </head> is in line 23 of the templates/default/index.tpl...
And to make sure about all this, in that TPL file I can remove the code in <title> and make my own?
Yes, you can modify the <title> to whatever you like.
And add my own meta keywords, description and Robots. Right?
Yes.
Regards,
Garvin
Posted: Sun Apr 15, 2007 5:02 pm
by rj
This is what I see in both tpl in default and carlcontest which is my template
20 {/if}
21
22 {serendipity_hookPlugin hook="frontend_header"}
23
24
25 <body>
Is that line 22 code for </head>
RJ
Posted: Sun Apr 15, 2007 6:07 pm
by garvinhicking
Hi!
Then you have edited this index.tpl file and removed the </head> yourself. This string is definitely in both index.tpl files of a default SErendipity installation.
Best regards,
Garvin
Posted: Mon Apr 16, 2007 4:52 am
by rj
hmmm... Bet it was something I did 6 months ago when I knew even less about all this than I do now.
I wonder if this may have to do with the problems I am having with ADSENSE and google search??
So I can just put it in no problem?
That is if I didnt screw something else up back then...
RJ
Posted: Mon Apr 16, 2007 10:55 am
by garvinhicking
Hi!
I wonder if this may have to do with the problems I am having with ADSENSE and google search??
Probably, because without a </head> your page would not validate properly
Maybe you should restore the original index.tpl file and then check which differences are in the original and your version?
Regards,
Garvin