Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Editable keywords in a template 1

Status
Not open for further replies.

MarkRobinson

Programmer
Feb 18, 2000
112
0
0
US
Beginner's Question.
Default keywords/page names are included in my template. I would like to be able to edit these on a page-by-page basis.
I don't see how to make an editable area in the html screens.

Thanks,

Mark Robinson
 
so which one is it?
keywords meta tag or the name of the page?
or is it both?
they should be editable by defualt...look into your code and see where the editable section/region is definied...it should have excuded the section above the head tag.....
post the few 1st line so your template code.
ALl the best!

> need more info?
:: don't click HERE ::
 
Thanks!
I've pasted the top code here.... but, if it's easier, the template itself is at:
There are editable regions called cornerphoto, ad, and body.

I appreciate your help!



<html>
<head>
<title> Dog Cat and Handicapped Pet Care Products Services Support and Classifieds
for handicapped elderly and disabled dogs and cats and families</title>
<meta name=&quot;keywords&quot; content=&quot;handicapped pets, handicapped dogs, surgi-sox, surgisox, animal bandages, harnesses, carts, dog wheelchairs, dog care, disabled pets, elderly dogs, incontinent dogs, pet health, dog sling, dog slings, adoptions, walkabout, adopt dog, animal rescue, dog adoption, classifieds, used pet supplies, used dog wheelchairs,hip dysplasia, degenerative myelopathy&quot;>
<meta name=&quot;description&quot; content=&quot;Products Services Support and Classifieds for dog care for Handicapped Disabled and Elderly Pets and their families.&quot;>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
... java code
</SCRIPT>
</head>
<body bgcolor=&quot;#ffffff&quot; background=&quot;../background/side5.gif&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; onLoad=&quot;MM_preloadImages('../_borders/Buttons/blshop.gif','../Template/but1_r1_c2_f3.gif','../Template/but1_r1_c2_f2.gif','../Template/but1_r2_c2_f3.gif','../Template/but1_r2_c2_f2.gif','../Template/but1_r3_c2_f3.gif','../Template/but1_r3_c2_f2.gif','../Template/but1_r4_c2_f3.gif','../Template/but1_r4_c2_f2.gif','../Template/but1_r5_c2_f3.gif','../Template/but1_r5_c2_f2.gif','../Template/but1_r6_c2_f3.gif','../Template/but1_r6_c2_f2.gif','../Template/but1_r7_c2_f3.gif','../Template/but1_r7_c2_f2.gif','../Template/but1_r8_c2_f3.gif','../Template/but1_r8_c2_f2.gif','../Template/but1_r9_c2_f3.gif','../Template/but1_r9_c2_f2.gif')&quot;>
<div id=&quot;Layer1&quot; style=&quot;position:absolute; left:166px; top:165px; width:613px; height:1160px; z-index:1&quot;><!-- TemplateBeginEditable name=&quot;body&quot; -->
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<!-- TemplateEndEditable --></div>
<script language=&quot;JavaScript1.2&quot;>fwLoadMenus();</script>
<table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot;>
<tr>
<td width=&quot;40&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;40&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;6&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;39&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;39&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;14&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;7&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;7&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;188&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;188&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;188&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;7&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;7&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;1&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
<td width=&quot;51&quot; height=&quot;2&quot; valign=&quot;top&quot;></td>
</tr>
<tr>
<td colspan=&quot;5&quot; rowspan=&quot;3&quot; valign=&quot;top&quot; align=&quot;left&quot;><a href=&quot;../products.htm&quot;><!-- TemplateBeginEditable name=&quot;cornerphoto&quot; --><img name=&quot;corner&quot; src=&quot;&quot; width=&quot;160&quot; height=&quot;120&quot; alt=&quot;&quot;><!-- TemplateEndEditable -->
<!-- fwtable fwsrc=&quot;cover.png&quot; fwbase=&quot;cover&quot; fwstyle=&quot;Dreamweaver&quot; fwdocid = &quot;1150171497&quot; fwnested=&quot;0&quot; -->
</a></td>
<td width=&quot;14&quot; height=&quot;104&quot; valign=&quot;top&quot;></td>
<td height=&quot;104&quot; colspan=&quot;9&quot; valign=&quot;top&quot;><img src=&quot;../hpbanner.gif&quot; width=&quot;600&quot; height=&quot;80&quot;><br>
<font size=&quot;2&quot; color=&quot;#0000FF&quot; face=&quot;Arial, Helvetica, sans-serif&quot;>Products,
Services, Support &amp; Classifieds for Handicapped Pets, their Families,
and Friends.</font></td>
</tr>
<tr>
<td width=&quot;14&quot; height=&quot;10&quot; valign=&quot;top&quot; bgcolor=&quot;#0000FF&quot;></td>
<td height=&quot;10&quot; colspan=&quot;9&quot; align=&quot;left&quot; valign=&quot;top&quot; bgcolor=&quot;#0000FF&quot;><img src=&quot;../spacer.gif&quot; width=&quot;645&quot; height=&quot;10&quot;></td>
</tr>
<tr>
<td colspan=&quot;9&quot; rowspan=&quot;2&quot; valign=&quot;top&quot; bgcolor=&quot;#FFFFFF&quot;><img src=&quot;../background/topline.png&quot; width=&quot;620&quot; height=&quot;4&quot; align=&quot;top&quot;>
<select name=&quot;Products&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot;>
<option selected>All Products</option>
<option value=&quot;../Mobility - Harness.htm&quot;>Harnesses</option>
<option value=&quot; Lift Carrier</option>
<option value=&quot;../wheelorder.htm&quot;>Cart Information</option>
<option value=&quot; Carts</option>
<option value=&quot;../boots.html&quot;>Booties</option>
<option value=&quot;../petstep.htm&quot;>Travel Ramps</option>
<option value=&quot; Ramps</option>
<option value=&quot;../prod02.htm&quot;>Always Dry Bed</option>
<option value=&quot;../halo/halo.htm&quot;>Health and Healing </option>
<option value=&quot;../belts/champ.htm&quot;>Seat Belts for Dogs</option>
<option value=&quot; raw food</option>
<option value=&quot; Healing Massage</option>
<option value=&quot; Natural Health</option>
<option value=&quot; Reading</option>
<option value=&quot; Health
OPC</option>
<option value=&quot; Herbal Flea Control</option>
<option value=&quot; Eyewash</option>
<option value=&quot; ointment</option>
<option value=&quot; Urinary support</option>
<option value=&quot; C
Suppliment</option>
<option value=&quot; skin support</option>
<option value=&quot; Shirts</option>
</select>
<select name=&quot;menu1&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot;>
<option value=&quot; selected>All
Services</option>
<option value=&quot; Books</option>
<option value=&quot; Healing Massage</option>
<option value=&quot; Natural Healing</option>
<option value=&quot; &amp;
Resources</option>
<option value=&quot; a Vet</option>
<option value=&quot; a
Rehab Clinic</option>
<option value=&quot; <option value=&quot; </select>
<select name=&quot;menu2&quot; onChange=&quot;MM_jumpMenu('parent',this,0)&quot;>
<option value=&quot; selected>All
Support Areas</option>
<option value=&quot; Board</option>
<option value=&quot; Gallery - Add Yours</option>
<option value=&quot; Rainbow
Bridge</option>
<option value=&quot; Service</option>
</select>
</td>
<td width=&quot;51&quot; height=&quot;35&quot; valign=&quot;top&quot;><img name=&quot;top_corner_right&quot; src=&quot;../images/cover/tcr.png&quot; width=&quot;39&quot; height=&quot;42&quot; border=&quot;0&quot; vspace=&quot;0&quot; hspace=&quot;0&quot;></td>
</tr>
<tr>
<td colspan=&quot;5&quot; valign=&quot;top&quot;><p><a href=&quot;../food/force.htm&quot; onMouseOut=&quot;MM_swapImgRestore()&quot; onMouseOver=&quot;MM_swapImage('faqs11','','../_borders/Buttons/blshop.gif',1)&quot; ><!-- TemplateBeginEditable name=&quot;ad&quot; -->
<!-- TemplateEndEditable --></a></p>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; width=&quot;125&quot;>
<!-- fwtable fwsrc=&quot;but1.png&quot; fwbase=&quot;but1.gif&quot; fwstyle=&quot;Dreamweaver&quot; fwdocid = &quot;742308039&quot; fwnested=&quot;0&quot; -->
<tr>
<td><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;124&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;1&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td rowspan=&quot;9&quot;><img name=&quot;but1_r1_c1&quot; src=&quot;../Template/but1_r1_c1.gif&quot; width=&quot;1&quot; height=&quot;224&quot; border=&quot;0&quot;></td>
<td valign=&quot;top&quot;><a href=&quot; target=&quot;_top&quot; onClick=&quot;MM_nbGroup('down','navbar1','but1_r1_c2','../Template/but1_r1_c2_f3.gif',1);&quot; onMouseOver=&quot;MM_displayStatusMsg('Go Back to the Home Page of HandicappedPets.com');MM_nbGroup('over','but1_r1_c2','../Template/but1_r1_c2_f2.gif','../Template/but1_r1_c2_f3.gif',1);return document.MM_returnValue&quot; onMouseOut=&quot;MM_swapImgRestore();MM_nbGroup('out');&quot; ><img name=&quot;but1_r1_c2&quot; src=&quot;../Template/but1_r1_c2.gif&quot; width=&quot;124&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;HandicappedPets.com&quot;></a></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;25&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td valign=&quot;top&quot;><a href=&quot; target=&quot;_top&quot; onClick=&quot;MM_nbGroup('down','navbar1','but1_r2_c2','../Template/but1_r2_c2_f3.gif',1);&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_1,125,240);MM_displayStatusMsg('Products for Handicapped Pets');MM_nbGroup('over','but1_r2_c2','../Template/but1_r2_c2_f2.gif','../Template/but1_r2_c2_f3.gif',1);return document.MM_returnValue&quot; onMouseOut=&quot;FW_startTimeout();MM_swapImgRestore();MM_nbGroup('out');&quot; ><img name=&quot;but1_r2_c2&quot; src=&quot;../Template/but1_r2_c2.gif&quot; width=&quot;124&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;Products&quot;></a></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;25&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td valign=&quot;top&quot;><a href=&quot; target=&quot;_top&quot; onClick=&quot;MM_nbGroup('down','navbar1','but1_r3_c2','../Template/but1_r3_c2_f3.gif',1);&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_2,125,260);MM_displayStatusMsg('Services for Handicapped Pets');MM_nbGroup('over','but1_r3_c2','../Template/but1_r3_c2_f2.gif','../Template/but1_r3_c2_f3.gif',1);return document.MM_returnValue&quot; onMouseOut=&quot;FW_startTimeout();MM_swapImgRestore();MM_nbGroup('out');&quot; ><img name=&quot;but1_r3_c2&quot; src=&quot;../Template/but1_r3_c2.gif&quot; width=&quot;124&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;Services for Handicapped Pets&quot;></a></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;25&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td valign=&quot;top&quot;><a href=&quot; target=&quot;_top&quot; onClick=&quot;MM_nbGroup('down','navbar1','but1_r4_c2','../Template/but1_r4_c2_f3.gif',1);&quot; onMouseOver=&quot;window.FW_showMenu(window.fw_menu_0,125,285);MM_displayStatusMsg('Support for Families and Friends of Handicapped Pets');MM_nbGroup('over','but1_r4_c2','../Template/but1_r4_c2_f2.gif','../Template/but1_r4_c2_f3.gif',1);return document.MM_returnValue&quot; onMouseOut=&quot;FW_startTimeout();MM_swapImgRestore();MM_nbGroup('out');&quot; ><img name=&quot;but1_r4_c2&quot; src=&quot;../Template/but1_r4_c2.gif&quot; width=&quot;124&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;Support for Caretakers of Handicapped Pets&quot;></a></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;25&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td valign=&quot;top&quot;><a href=&quot;../class/index.htm&quot; target=&quot;_top&quot; onClick=&quot;MM_nbGroup('down','navbar1','but1_r5_c2','../Template/but1_r5_c2_f3.gif',1);&quot; onMouseOver=&quot;MM_displayStatusMsg('Buy and Sell used Equipment for Handicapped Pets');MM_nbGroup('over','but1_r5_c2','../Template/but1_r5_c2_f2.gif','../Template/but1_r5_c2_f3.gif',1);return document.MM_returnValue&quot; onMouseOut=&quot;MM_swapImgRestore();MM_nbGroup('out');&quot; ><img name=&quot;but1_r5_c2&quot; src=&quot;../Template/but1_r5_c2.gif&quot; width=&quot;124&quot; height=&quot;25&quot; border=&quot;0&quot; alt=&quot;Classifieds&quot;></a></td>
<td valign=&quot;top&quot;><img src=&quot;../Template/spacer.gif&quot; name=&quot;undefined_2&quot; width=&quot;1&quot; height=&quot;25&quot; border=&quot;0&quot;></td>
</tr>
<tr>
<td valign=&quot;top&quot;
 
looks good!
to edit meta tag simply go to code view or split view...click on the tag -anywhere in the line

<meta name=&quot;keywords&quot; content=&quot;handicapped pets, ......
<meta name=&quot;description&quot; ...

: Ctrl+F5 to edit the tag or simply work in code view and tye them manually
your regions are defined correctly!

Now for the original question...well the answer is NO, you can not define the TItle and keywords to be editable regions because they are not regions/segments of the page content ....editable regions are more for the content editing....that is why they are meta tags.....to my understanding.
and u can fake it by:
Code:
<!-- TemplateBeginEditable name=&quot;PAGE TITLE&quot; -->
<title>Dog Cat and Handicapped Pet Care Products Services Support and Classifieds for handicapped elderly and disabled dogs and cats and families</title>
<!-- TemplateEndEditable -->
but what is the point as you can edit this directly into the &quot;Title:[ ]&quot; window anyways.....
You can pull the names.description from he DB in dynamic pages but not in static HTML
All the best!

> need more info?
:: don't click HERE ::
 
Well, ALmost.
When I call up a page that uses the template - the tags are geyed out. Can't seem to edit them in the code view.

are you suggesting that I insert code:
<!-- TemplateBeginEditable name=&quot;PAGE TITLE&quot; -->
<title>Dog Cat and Handicapped Pet Care Products Services Support and Classifieds for handicapped elderly and disabled dogs and cats and families</title>
<!-- TemplateEndEditable -->

into this (from index.htm)

<html><!-- InstanceBegin template=&quot;/Templates/hp5.dwt&quot; codeOutsideHTMLIsLocked=&quot;false&quot; -->
<head>
<title> Dog Cat and Handicapped Pet Care Products Services Support and Classifieds
for handicapped elderly and disabled dogs and cats and families</title>
<meta name=&quot;keywords&quot; content=&quot;handicapped pets, handicapped dogs, surgi-sox, surgisox, animal bandages, harnesses, carts, dog wheelchairs, dog care, disabled pets, elderly dogs, incontinent dogs, pet health, dog sling, dog slings, adoptions, walkabout, adopt dog, animal rescue, dog adoption, classifieds, used pet supplies, used dog wheelchairs,hip dysplasia, degenerative myelopathy&quot;>
<meta name=&quot;description&quot; content=&quot;Products Services Support and Classifieds for dog care for Handicapped Disabled and Elderly Pets and their families.&quot;>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
 
no no...tdont insert code into the file created from template but rather on your .dwt template file edit the head:
Code:
<html>
<head>
<!-- TemplateBeginEditable name=&quot;doctitle&quot; -->
<title>Dog Cat and Handicapped Pet Care Products Services Support and Classifieds for handicapped elderly and disabled dogs and cats and families</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name=&quot;meta_tags&quot; -->
<meta name=&quot;keywords&quot; content=&quot;handicapped pets, handicapped dogs, surgi-sox, surgisox, animal bandages, harnesses, carts, dog wheelchairs, dog care, disabled pets, elderly dogs, incontinent dogs, pet health, dog sling, dog slings, adoptions, walkabout, adopt dog, animal rescue, dog adoption, classifieds, used pet supplies, used dog wheelchairs,hip dysplasia, degenerative myelopathy&quot;>
<meta name=&quot;description&quot; content=&quot;Products Services Support and Classifieds for dog care for Handicapped Disabled and Elderly Pets and their families.&quot;>
<!-- TemplateEndEditable -->

next time u create a page from template title and keywords will be editable.
and will look automatically like u posted:
Code:
<html><!-- InstanceBegin template=&quot;/Templates/DELETE.dwt&quot; codeOutsideHTMLIsLocked=&quot;false&quot; -->
<head>
<!-- InstanceBeginEditable name=&quot;doctitle&quot; -->
<title>Dog Cat and Handicapped Pet Care Products Services Support and Classifieds for handicapped elderly and disabled dogs and cats and families</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name=&quot;meta_tags&quot; -->
<meta name=&quot;keywords&quot; content=&quot;handicapped pets, handicapped dogs, surgi-sox, surgisox, animal bandages, harnesses, carts, dog wheelchairs, dog care, disabled pets, elderly dogs, incontinent dogs, pet health, dog sling, dog slings, adoptions, walkabout, adopt dog, animal rescue, dog adoption, classifieds, used pet supplies, used dog wheelchairs,hip dysplasia, degenerative myelopathy&quot;>
<meta name=&quot;description&quot; content=&quot;Products Services Support and Classifieds for dog care for Handicapped Disabled and Elderly Pets and their families.&quot;>
<!-- InstanceEndEditable -->

These &quot;regions&quot; really dont mean anything in web design...this is nothing but a feature used by DW-keep that in mind. I have never really liked this feature as I find it more annoying to edit than helpful...but it does work. Perhaps I am oldfashined but I see nothing wrong with Save As.. :)
Anyhow, this should work for you!
All the best!
All the best!

> need more info?
:: don't click HERE ::
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top