Dear Folks ,
 

I  have a website that is template driven and i use EmbperlObject for that.
The problem is that all the pages share the same template (that is of course expected!)
and they also share the  <title/>  ,  <meta name="..."  content="..." /> tags also.
the latter is expected of EmbperlObject  but is  causing problem in my website.

One would suggest  I  put a meta.html file in each folder where i want the override
the template defaults.
 

But my problem is that under the same folder i require different META , TITLE tags
for different files!  and if a put a meta.html in one folder all the files in that folder
have the same meta tags that does not solve my problem ..
 

As a workable solution what i have done  in my template is
================================================
[-
($dir,$filename) = $ENV{SCRIPT_FILENAME} =~ /(.*?)\/(\w+)\.(\w+)$/;
-]
[$ if (-e "$dir/$filename.meta") $]
[- Execute("$filename.meta") -]
[$ else $]
[- Execute('index.meta') -]
[$ endif $]
================================================

what it does is say a folder of mine contains files a.html , b.html , c.html
the meta tags is expected in a.meta  , b.meta , c.meta  , a.meta can contain
say
 

==============================================
<title>Carpet Export promotion Council,CEPC,Indian carpet fair 2002,CEPC fair,In
dia,carpet trade fair,CEPC trade fair,floor coverings exporters,carpets manufact
urers</title>
<meta name="description" content="Carpet Export promotion Council,CEPC, organize
r of Indian carpet fair 2002, CEPC trade fair with a view to provide the carpets
 exporters,floor coverings exporters,carpets,rugs & dhurries manufacturers,expor
ters from India, a worldwide approach">
<meta name="keywords" content="Carpet Export promotion Council,CEPC,Indian carpe
t fair 2002,CEPC fair,India,carpet trade fair,CEPC trade fair,floor coverings ex
porters,carpets manufacturers,indian carpets trade fairs,rugs exporters,floor co
verings manufacturers,india,trade show,cotton,silk,woollen carpets export,indian
 tradefairs,rugs and dhurries exporter,cotton dhurries manufacturers,suppliers,b
usiness expo,trade exhibition,india tradefairs,floor covering exporter,rugs manu
facturer,dhurries suppliers,export import,trade-india">
===================================================================================

What i wanted to know is is there any other preferred method for
solution to my problem  or am i in the right track?

Regds

Rajesh Kumar Mallah.
 

Reply via email to