welp, here i go again.i am working on makingit so each category page has its own title, in regards to the selected category.
instead of one page title for all categories.
works pretty well, except for one thing, it ends up looking like this in the title bar at the top of the browser page:
Fakesitename <!--antiques-->Antique Furniture
which is ok, but if i could get it to display is like:
Fakesitename Antique Furniture
so im trying to get it to display everything but the "<!--antiques-->", as i cant seem to hide it
that would be great. this is the code i am using:
print qq~
<SCRIPT type="text/javascript">
<!--
document.title="$config{'sitename'} $category{$form{'category'}}";
// -->
</SCRIPT>
~;
i have tried different combos of the:
$category{$form{'category'}}
like:
{$form{'category'}} (shows the category like in the config though, so cant use)
$category (adding just this, cuts the site off, so cant use this)
any ideas on a good combo to use to display the category title at the top of the browser page?
print qq~
<SCRIPT type="text/javascript">
<!--
document.title="$config{'sitename'} NEED HELP WITH THIS PART-->$category{$form{'category'}}";
// -->
</SCRIPT>
~;
THANK YOU VERY MUCH FOR ALL YOUR HELP!
shnippy