Jump to content


Photo

[Resolved]Page title stuck?


  • This topic is locked This topic is locked
37 replies to this topic

#1 Mark Stanton

Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 23 June 2006 - 02:09 PM

Every page on my website (www.vowleyfarm.co.uk) seems to have the same title. :blush:

I've set titles and long titles and descriptions on (many of) the pages, but these seem to be ignored and the same, now no longer wanted, title appears everywhere.

Presumably I've done something wrong, but I've got to the end of my list of things to try to fix it.

Can anyone tell me how to sort it out please

TIA
Mark

#2 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 23 June 2006 - 02:15 PM

Which title do you mean? Between the < title > tags in your header or the [*title*] in your template?

#3 Mark Stanton

Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 23 June 2006 - 02:23 PM

Ooh errr, I didn't know about [*title*], and have made some wild guesses about how to use it (now you've told me it exists), but they don't work.
Is that the way to do it? Exactly how would I do that.

I was talking about between <title> tags. And now I see I'd got it hard-coded in my template.

Mebbe I'll have a look at the supplied templates, I bet they'll tell me.

OK, Alexis Pro Redux rocks!
Is there a list of the [*~*] keywords, and even any others? I notice (site_name) in the supplied template. Stuff like that's great, if you know it's there...

Edited by Mark Stanton, 23 June 2006 - 02:27 PM.


#4 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 23 June 2006 - 02:30 PM

I think this page may help you further: http://docs.etomite.com/development-templates.html

#5 Mark Stanton

Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 23 June 2006 - 02:43 PM

Thanks very much.
I've not looked at any of these pages because my browser refuses to find the website at docs.etomite.com, even with www in front of it.

I'll try to find that through the forums.

Thanks again.

Regards
Mark

<a minute later>Nope, won't even find it through the "documentation" link on the front page :-(
<a few seconds later again>Nor through the redirection in the forums :-( :-(

Edited by Mark Stanton, 23 June 2006 - 02:46 PM.


#6 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 23 June 2006 - 03:00 PM

Weird, it works fine for me...

Here's the content of that page:

Templates 
Overview
One of the marvelous features of Etomite is the ability to add HTML templates and change the look of your site instantly. All you have to do is add a few pieces of Etomite code to your custom template and you're done! Sounds simple? You bet! The process is:

Create an HTML page using software of your choice 
Put in Etomite tags (placeholders) for things like content, keywords etc. 
Copy the code of your creation and paste it into a new template field in you Etomite manager 
Start using your new template 
Note that all examples of snippet coding here have a deliberate error - an additional space as the second character (eg '[ [') so that they aren't interpreted as snippet calls!

AlexisPro Redux Example
The stock install template is “AlexisPro Redux” and will be used as a reference point for the examples below, so open it up in your text editor or Etomite manager and let's give it a lookover.

If you are familiar with HTML, you will notice that the template is almost entirely composed of familiar HTML code. The Etomite tags, in a template act as placeholders for content that will be generated dynamically. Etomite has quite a few ways to call for data and then produce the output. Looking at the “AlexisPro Redux” template, here are the various elements added to the HTML in order from top to bottom:

[ (site_name) ] » [ *pagetitle* ] 
This duo prints sitename >> pagetitle into the title area of your browser. 
[ [GetKeywords] ] 
Produces the keywords for the meta tags. 
[ (site_name) ] 
Displays your site name in the top upper left. 
[ [PageTrail] ] 
Displays the pagetrail in the top upper right. 
[ [PoweredBy] ] 
Displays directly underneath the pagetrail. 
[ [MenuBuilder?id=0] ] 
Produces the site navigation menu. 
[ *content* ] 
Displays the content of your document. 
MySQL: [ ^qt^ ], [ ^q^ ] request(s), PHP: [ ^p^ ], total: [ ^t^ ], document retrieved from [ ^s^ ] 
This displays all that info in the bottom row. 
Note
<style type="text/css">
@import url('assets/site/style.css');
</style>

While not an Etomite specific tag at all, it bears mentioning that what this does is include a file called “style.css” which is found in the assets/style folder. This file contains all the format information which tells the browser how you want the page to display. If you change the location of this file, make sure you have the correct path (starting from your Etomite root- where the index.php page is) or your page will print unformatted.

Dynamic Pieces Available for Templates
In the "AlexusPro Redux" example, we see many different kinds of placeholders. Here is a short explanation of each:

Snippets
[ [SnippetName] ] or [ !SnippetName! ]

Where "SnippetName" is the name of the snippet you want to run at that place in the template.

To add extra functionality to your Etomite site you use snippets. These are blocks of PHP code designed for Etomite which provide a specific function. The difference between the standard [ [Snippet] ] version and the [ !Snippet! ] version has to do with caching. This version: [ !Snippet! ] will not be cached and is best used inside pages that have caching turned on. This has some consequences which are explained in How to Write Snippets.

Settings
[ (setting) ]

Where “setting” is one of many available settings. Settings are Etomite's overall variables such as the name of the site, whether logs are on or off, what the home page is, etc. A list of settings can be found in the Etomite database inside the table “prefix_system_settings”.

Document Attributes
[ *attribute* ]

Where “attribute” is one of the many document attributes available. Attributes are document specific pieces of data. These attributes are contained in “prefix_site_content” table of the database.

More info:

Full List of Attributes (Look under "Document Variables") 
Chunks
{ {ChunkName} }

Where "ChunkName" is the name of the chunk to be inserted. Chunks are the HTML version of a snippet. For pieces of code that you will reuse a lot, use a chunk for easier maintenance.

More info:

More about chunks 
Notice where these pieces of code are used in the template, and then look at the template in your browser. This will give you an idea of where to place these items in your template.

Publishing Your Templates
After adding the needed elements to your template should be ready to test it so fire up your Etomite manager.

Click “manage resources”. 
Now click “new template”. 
Give your new template a name, and a brief description. 
Copy and paste the new template from your text editor into the textarea. 
Click “save”. 
To be able to view your new template we must now assign a document to use the template. Just to test the template, let's create a new document.

Click “new document”. 
Name your document. 
Set the document options as you see fit. 
Write something in the content of the document. 
Assign the document to use the new template. 
Click “save”. 
If everything went ok, you should now see your new template with whatever you just wrote in the document displayed in the content preview area. There's your new template!


#7 Mark Stanton

Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 23 June 2006 - 03:04 PM

Thanks very much.

What good documentation :)

Anyone got any idea why I can't get my browser to see it???

Edited by Mark Stanton, 23 June 2006 - 03:05 PM.


#8 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 23 June 2006 - 03:16 PM

No idea. Tried a different browser? What error msg do you get?

#9 Mark Stanton

Mark Stanton

    Etomite Forum Fan

  • Member
  • Pip
  • 119 posts

Posted 23 June 2006 - 03:29 PM

FireFox says "can't find the server at docs.etomite.com."

Opera seems to be having difficulty even getting that far, just got the "busy" mouse pointer :(

IE (spit) says

"The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings."

My bet is settings here, except three different browsers seems a bit odd.

#10 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 23 June 2006 - 03:45 PM

Anyone's :2c: ?

#11 Nutter

Nutter

    Likes Etomite Forums!

  • Member
  • PipPip
  • 216 posts

Posted 23 June 2006 - 03:51 PM

I cannot get to the docs.etomite.com site either. No go in IE, FF, or Opera.

#12 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 23 June 2006 - 04:13 PM

I notified Dean if he did any DNS changes to the subdomain lately.

#13 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 23 June 2006 - 04:37 PM

Nope, no changes..... the IP's are the same too... seems to work here ok too :)

It should work, as it uses the same ip's and dns etc as this site... it's hosted on the same server :P

#14 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 23 June 2006 - 04:50 PM

Can you guys ping the site and let me know what comes back?

#15 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 23 June 2006 - 05:42 PM

The documentation came right up for me using the link listed above... B)

#16 Nutter

Nutter

    Likes Etomite Forums!

  • Member
  • PipPip
  • 216 posts

Posted 23 June 2006 - 05:46 PM

From my computer
ping: unknown host docs.etomite.com

From my web server (I ctrl-C'd after 7)
PING docs.etomite.com (88.208.200.87) 56(84) bytes of data.
From 195.188.230.74 icmp_seq=7 Packet filtered
From 195.188.230.74 icmp_seq=17 Packet filtered
From 195.188.230.74 icmp_seq=42 Packet filtered
From 195.188.230.74 icmp_seq=49 Packet filtered
From 195.188.230.74 icmp_seq=55 Packet filtered
From 195.188.230.74 icmp_seq=59 Packet filtered
From 195.188.230.74 icmp_seq=68 Packet filtered

--- docs.etomite.com ping statistics ---
77 packets transmitted, 0 received, +7 errors, 100% packet loss, time 76939ms, pipe 2


#17 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 23 June 2006 - 06:04 PM

ok, it's got the right ip address... i wonder what's up with it ....

can you try and access http://docs.etomite.com

if that works, i'll move the docs site to the new server ahead of schedule....

#18 Nutter

Nutter

    Likes Etomite Forums!

  • Member
  • PipPip
  • 216 posts

Posted 23 June 2006 - 06:09 PM

The .com address worked. No files, but I assume you knew that :) The computer that got the ip address is my web server. The computer on my desk wouldn't connect at all.

#19 Dean

Dean

    Loves Etomite Forums!

  • Admin
  • 4,787 posts

Posted 23 June 2006 - 06:14 PM

You aren't using the same ISP are you?

#20 Nutter

Nutter

    Likes Etomite Forums!

  • Member
  • PipPip
  • 216 posts

Posted 23 June 2006 - 06:21 PM

I'm on Road Runner and my server is at a data center in New Jersey.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users