Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
[solved] syntax error: unrecognized tag 'metadata'

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
capaio
Smarty n00b


Joined: 04 Jul 2013
Posts: 3

PostPosted: Thu Jul 04, 2013 4:00 pm    Post subject: [solved] syntax error: unrecognized tag 'metadata' Reply with quote

hello, and thanks in advance for all the help you can give me

i get this error(s)

Quote:
string 'Smarty error: [in template:20 line 9]: syntax error: unrecognized tag 'sitename' (Smarty_Compiler.class.php, line 590)' (length=118)
string 'Smarty error: [in template:20 line 9]: syntax error: unrecognized tag 'title' (Smarty_Compiler.class.php, line 590)' (length=115)
string 'Smarty error: [in template:20 line 12]: syntax error: unrecognized tag 'metadata' (Smarty_Compiler.class.php, line 590)' (length=119)
string 'Smarty error: [in template:20 line 15]: syntax error: unrecognized tag 'stylesheet' (Smarty_Compiler.class.php, line 590)' (length=121)
string 'Smarty error: [in template:20 line 52]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)' (length=117)
string 'Smarty error: [in template:20 line 53]: syntax error: unrecognized tag 'anchor' (Smarty_Compiler.class.php, line 590)' (length=117)
string 'Smarty error: [in template:20 line 64]: syntax error: unrecognized tag 'cms_selflink' (Smarty_Compiler.class.php, line 590)' (length=123)
string 'Smarty error: [in template:20 line 70]: syntax error: unrecognized tag 'menu' (Smarty_Compiler.class.php, line 590)' (length=115)


i tried to find some solution, all I found is a thread about brackets, but my template seems to be ok

this is my template

Quote:
{download}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
{* Change lang="en" to the language of your site *}

<head>

<title>{sitename} - {title}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}

{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}

{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}


{literal}
<!--script language="JavaScript" type="text/JavaScript" src="uploads/javascript/scroll.js"></script-->
<script language="JavaScript" type="text/JavaScript" src="uploads/javascript/scroller.js">
</script>
<script type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}

//-->
</script>
<!--[if lte IE 6]>
<style type="text/css">
/*#pagewrapper {width:expression(P7_MinMaxW(720,950));}*/
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
{* The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Left sidebar + 1 column" *}

</head>

<body>

<div id="pagewrapper">

{* start accessibility skip links *}
<ul class="accessibility">
<li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
<li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
</ul>
{* end accessibility skip links *}


<hr class="accessibility" />
{* Horizontal ruler that is hidden for visual browsers by CSS *}


{* Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "For template: Left menu + 1 column" *}
<div id="header_cnt"><div id="header_sx"><div id="header_dx">
<h1>{cms_selflink dir="start" text="$sitename"}</h1>
<hr class="accessibility" />
</div></div></div>
<div class="menu_hor">
{if $customcontent_loggedin > 0}
{if isset($customcontent_memberof_utenti) }
{menu items="home,archivio,pdf,giornale" template='minimal_menu.tpl'}
{/if}
{else}{menu items="home,archivio,abbonati,giornale" template='minimal_menu.tpl'}{/if}


</div>
<hr style="clear:both;" />
{* End Header *}


{* Start Search *}
<div id="sub_header">
<div id="search">
{show_news browser='news' template="cerca.tpl" news=$smarty.get.news searchfield="Title,Summary"}

{*search lang="it_IT"*}
</div>
</div>
{* End Search *}


{* Start Breadcrumbs }
<div class="breadcrumbs">
{breadcrumbs starttext='' root='Home' delimiter='>'}
<hr class="accessibility" />
</div>
{ End Breadcrumbs *}
<div id="emunit" style="position:absolute;width:1em;"> </div>
<!--div id="scroller"><p id="tag">{global_content name='prova'}.</p></div-->
<div id="scroller"><p style="display:none;" id="sText">{global_content name='prova'}</p></div>
<script language="JavaScript" type="text/JavaScript" src="uploads/javascript/marquee.js">
</script>
{* Start Content (Navigation and Content columns) *}
<div id="content">

{* Start Sidebar *}
<div id="sidebar">

{* Start Navigation }
<div id="menu_vert">
<h2 class="accessibility">Navigation</h2>
{menu template='simple_navigation.tpl' collapse='1'}
</div>
{ End Navigation *}


{global_content name='giornale'}

{global_content name='login'}
{global_content name='banner'}
</div>
{* End Sidebar *}


{* Start Content Area *}
<div id="main">{assign var=opt value="news"}
{if $smarty.get.news} <div style="float: right;">{print showbutton=true script=true options="`$opt`=`$smarty.get.news`"}</div>{/if}
<br style="clear:both;" />
<!--h2 class="content">{title}</h2-->
<div id="top">
<p id="controls"></p>
</div>
{content} <br />

<div class="hr"></div>


<hr class="accessibility" />
</div>
{* End Content Area *}
{* right sidebar*}
<div id="right_sidebar">
{show_news browser='news' template="generale_list.tpl" field_name="Data" type_order="desc" category="Regione"}
{show_news browser='news' template="generale_list.tpl" field_name="Data" type_order="desc" category="Provincia di Cagliari"}
{show_news browser='news' template="generale_list.tpl" field_name="Data" type_order="desc" category="Cagliari"}
{show_news browser='news' template="generale_list.tpl" field_name="Data" type_order="desc" category="Elmas"}

<div id="news">
{*news number='3' detailpage='news'*}
{*cms_module module='FormBrowser' browser='news' template="list.tpl"*}
{show_news browser='news' template="list.tpl" field_name="Data" type_order="desc"}
</div>

</div>

{global_content name='banner-destra'}

{* right sidebar*}
</div>
{* End Content *}

{global_content name='banner-center'}
{* Start Footer. Edit the footer in the Global Content Block called "footer" *}
<div id="footer">
{global_content name='footer'}
</div>
{* End Footer *}


</div>{* end pagewrapper *}
</body>
</html>


where is the error? thanks


Last edited by capaio on Fri Jul 05, 2013 8:19 am; edited 1 time in total
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 4656
Location: Hamburg / Germany

PostPosted: Thu Jul 04, 2013 6:06 pm    Post subject: Reply with quote

Looks like that $smarty->plugins_dir does not point to the folder with application specific tags.
Back to top
View user's profile Send private message
capaio
Smarty n00b


Joined: 04 Jul 2013
Posts: 3

PostPosted: Fri Jul 05, 2013 8:05 am    Post subject: Reply with quote

yes!! many thanks! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP