Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Titles on index category pages.


72 replies to this topic

#61 pauldarthvader

  • Community Member
  • 82 posts
  • Real Name:Paul Spiers
  • Gender:Male
  • Location:UK

Posted 08 March 2005, 15:30

Hi Guys

I followed most of the steps, but got a little stuck on

Quote

Then after the breadcrumb ->add insert


QUOTE 
$page_title = $model['products_name'];

I could not find the line

Quote

breadcrumb ->add insert
in the file.
I'm pretty sure on the last past after this, but not tried it yet.

Thanks in advance.
Paul
Regards
Paul

#62 Stevis2002

  • Community Member
  • 223 posts
  • Real Name:Steve

Posted 09 March 2005, 12:47

Do you know how you change the text (HEADER_TITLE) from 'Let's see what we have here', to the name of the category you are in at the time?

Thanks,
Steve

#63 Paulie

  • Community Member
  • 61 posts
  • Real Name:Paul C.
  • Location:Bronx, New York

Posted 10 March 2005, 02:57

Stevis2002, on Mar 9 2005, 08:47 AM, said:

Do you know how you change the text (HEADER_TITLE) from 'Let's see what we have here', to the name of the category you are in at the time?

Thanks,
Steve

<{POST_SNAPBACK}>


Check out the Page Heading Title contribution which can be downloaded here:

http://www.oscommerce.com/community/contributions,1908

#64 Paulie

  • Community Member
  • 61 posts
  • Real Name:Paul C.
  • Location:Bronx, New York

Posted 14 March 2005, 10:56

I added the code to use with STS and everything works. However, is there a way to put customized title and meta tag descriptions on the main index page?

Thanks,
Paul

#65 Paulie

  • Community Member
  • 61 posts
  • Real Name:Paul C.
  • Location:Bronx, New York

Posted 22 March 2005, 23:15

Can anyone help me with the problem below?

Paulie, on Mar 14 2005, 06:56 AM, said:

I added the code to use with STS and everything works.  However, is there a way to put customized title and meta tag descriptions on the main index page?

Thanks,
Paul

<{POST_SNAPBACK}>



#66 petsk

  • Community Member
  • 100 posts
  • Real Name:Peter

Posted 23 March 2005, 17:05

Paulie, on Mar 23 2005, 01:15 AM, said:

Can anyone help me with the problem below?

<{POST_SNAPBACK}>


Take a look at the Header Tag Controller v1.0 contribution, or you could add the meta info to you sts template instead.

#67 jbennette

  • Community Member
  • 50 posts
  • Real Name:Joseph
  • Location:Salem, OR

Posted 23 March 2005, 23:07

petsk, on Feb 20 2005, 04:50 PM, said:

To use this tip/trick whit STS 2.01 (simple template system) you need to do the following:

1. In the template file, default named "sts_template.html" in the includes folder, you need to remove any <TITLE>Any Title Text</TITLE> code, if there are any.

2. Open your template file (default named "sts_template.html" in the includes folder), search for this code:
Edit the echo command line, eg this line:
echo "<title>" . TITLE . "</title>";
 
Replace above line whit:
echo "<title>YOUR STORE NAME - $page_title</title>";

:D

Cheers,
Peter

<{POST_SNAPBACK}>


Peter,

Your mod will work fine so long as you make it to the correct file.

The correct file is the sts_display_output.php file - NOT the sts_template.html file.

Best,
JB :thumbsup:
Steep learning curve? Hell, I don't even know enough to formulate a stupid question!!

#68 petsk

  • Community Member
  • 100 posts
  • Real Name:Peter

Posted 23 March 2005, 23:14

jbennette, on Mar 24 2005, 01:07 AM, said:

Peter,

Your mod will work fine so long as you make it to the correct file.

The correct file is the sts_display_output.php file - NOT the sts_template.html file.

Best,
JB :thumbsup:

<{POST_SNAPBACK}>


Oh :huh: I'm sorry about that, my misstake of course, thanks for the correction JB! :blush:

#69 WadimCo

  • Community Member
  • 3 posts
  • Real Name:Korovin Vadim

Posted 29 December 2010, 17:29

Sorry, I do not very speak English.
Read on this forum the word "benith"
"Add benith"
What does this mean, I could not translate this word.
I understand:
Change to, Add below, REPLACE, but what is the "Add benith" not like I can not understand.
Maybe someone can tell what this means? This means adding code before or after a specified finding the code, or replace? What it is "benith"? It is a below?
Thank you.

#70 Jan Zonjee

  • Team Member
  • 7,001 posts
  • Real Name:Jan Zonjee
  • Gender:Male
  • Location:the Netherlands

Posted 29 December 2010, 17:31

View PostWadimCo, on 29 December 2010, 17:29, said:

What it is "benith"? It is a below?
"benith" is not an English word. Most likely "beneath" is meant and that means below as you correctly assumed.

#71 WadimCo

  • Community Member
  • 3 posts
  • Real Name:Korovin Vadim

Posted 29 December 2010, 18:14

Probably this is some kind of shorthand, or composed of two words, a word that is not translated, but that knowledge of the language people understand. This is probably a vulgar dialect, or some kind of term. This word occurs on the third page of 58 topic

View Postpetsk, on 04 March 2005, 14:56, said:

Toni,

Look after the "<title></title>" tags in index.php
Paste "<?php echo $page_title; ?>" between the two tags.
If you don't have any <title> tags at all, create them benith the <head> tag

Hope this helps

So i asked here. But before that, many times i've seen this word in describing the installation of the downloaded modules. Tried to translate here translate.google.com automatic language detection, with English, with German, but not as failed.
Thanks again for the very fast replay!!

#72 pdcelec

  • Community Member
  • 606 posts
  • Real Name:Paul Clifford
  • Gender:Male
  • Location:UK

Posted 29 December 2010, 21:57

View PostWadimCo, on 29 December 2010, 18:14, said:


Thanks again for the very fast replay!!
should be reply!!!

#73 kliksys

  • Community Member
  • 22 posts
  • Real Name:Dutch
  • Gender:Male
  • Location:Atlanta, GA

Posted 02 April 2011, 17:19

View PostEthan1701, on 31 March 2004, 00:10, said:

I implemented Alex's idea, and it works great, with one exception: when on the front page, instead of the title being 'MYSTORE', it is now 'MYSTORE - '.
In order to fix this, make the following small changes:

Whereever you added $page_title, such as

replace it with

And then, in Index.php and in product_info.php, place the following:

or better yet,

(Though I haven't tried the second option, in ought to work)

This way, the hyphen is part of the variable, and isn't displayed when not needed.

-Ethan

Hi Ethan,

When you make the above change the space between the store name and page title is gone, so the title is now joined to the store name. I'm sure this is a simple fix but being a novice I have no idea what the fix is?
Knowledge is useless, unless transferred.