This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

site_header template questions (re: site title and keywords)


avatar
BorisB 0
From: -
site_header template questions (re: site title and keywords)

Hi all,

I'm new to this CMS but I must say I'm very, very impressed so far.

I've been playing with the demo as part of my pre-purchase evaluation process and I've stubbed my toe on something with regard to two fields in the site_header template.

This template inserts two field values from the database, page_title and page_keywords into the HEAD section of the page:

<title>$insert[page_title]</title> and,

<meta name="KEYWORDS" content="$insert[page_keywords]" />

Both of these values are created in the "Websites" section under the "Other" category in the Admin Interface.

I entered the values, but they weren't showing up in the main page of the site. I checked for the existence of the fields in the "pages" table of the database. "page_title" was there, but not "page_keywords".

Then I got to thinking: this site_header template should have nothing to do with the "page" or "pages" templates. We just want the site title in between the TITLE tags, right? same goes for the Keywords meta tag.

I then found in the "esselbach_st_websites" table two fields that were actually collecting the data from the "Websites" page in the Admin Interface. These fields are "website_dkeywords" and "website_dtitle". Aha!

So I changed the site_header template values to these:

<title>$insert[website_dtitle]</title> and,

<meta name="KEYWORDS" content="$insert[website_dkeywords]" />

However, even after changing these values to what appear to be the correct ones, the values do not show up in the page source of the main index.php page.

Am I doing something incorrectly? I know there are data in the database fields and I cleared as many of the caches as I could find, but still no go. Slightly Frowning Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: site_header template questions (re: site title and keywords)
avatar
OP 0
From: -
site_header template questions (re: site title and keywords)

Originally posted by Philipp:
At least Windows Server 2003/IIS 6.0 requires write permissions as well.

To change the permissions under Windows:
Windows Explorer => Browse to Storyteller directory => Choose properties (right click) => Security


I'm not running Windows Server; rather, it is WinXP Home Ed. and there's no need to CHMOD the directories.

I'll keep fiddling with it and see if I can make it work Smiling Face
1 Re: site_header template questions (re: site title and keywords)
avatar
Administrator
1340
From: Vienna, Austria
site_header template questions (re: site title and keywords)

Originally posted by BorisB:
No need to CHMOD the directories or files since it's not on a *NIX server.

At least Windows Server 2003/IIS 6.0 requires write permissions as well.

To change the permissions under Windows:
Windows Explorer => Browse to Storyteller directory => Choose properties (right click) => Security
1 Re: site_header template questions (re: site title and keywords)
avatar
OP 0
From: -
site_header template questions (re: site title and keywords)

Philipp,

No need to CHMOD the directories or files since it's not on a *NIX server. I suppose I should've mentioned this in my first post:

Here's my demo setup environment:
- OS: WinXP Home Ed.
- Web Server: Apache 2.0.43
- PHP: v4.3.4
- MySQL: v 3.23.49

Could the fact that it's not on a Linux/ Unix server be causing the trouble?

Cheers!
1 Re: site_header template questions (re: site title and keywords)
avatar
Administrator
1340
From: Vienna, Austria
site_header template questions (re: site title and keywords)

Did you chmod the /cache/tags directory to 777?
1 Re: site_header template questions (re: site title and keywords)
avatar
OP 0
From: -
site_header template questions (re: site title and keywords)

Philipp,

Thanks for the reply Smiling Face

I had looked at the core.php file earlier and found the if/else reference to default.cah.php, but the file wasn't in the /cache/tags directory so I don't think that's the problem.

I changed everything in site_header back to the original, but Keywords and the site title still don't appear in the home page source. Slightly Frowning Face

No worries, tho...from what I've read in these forums, you'll have a solution and I'm in no rush Smiling Face
1 Re: site_header template questions (re: site title and keywords)
avatar
Administrator
1340
From: Vienna, Austria
site_header template questions (re: site title and keywords)

$insert[page_keywords] is correct.

There was a small bug with the new MySQL caching system in the last version which cause this problem. Perhaps I forgot to update the freeware zip? Hushed Face I will check this tomorrow.

To manually clear the keyword/title cache, just delete: /cache/tags/default.cah.php

Don't forget to change it back to $insert[page_keywords] /$insert[page_title]

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.