Page 1 of 1
Problem with globalcontent:footer when using "user defined tags"
Posted: Wed Oct 18, 2006 9:07 am
by moiv
Hi,
I want to insert content from a database into my pages. I have created a new "user-defined tag" with my php code and without the php quotes. And in my page I have inserted my {user-defined tag}. The php code works and the relevant data ís properly displayed one the page. However in the footer section I get this error message:
string(61) "Smarty error: unable to read resource: "globalcontent:footer"" string(61) "Smarty error: unable to read resource: "globalcontent:footer""
I haven't altered anything regarding the footer tag in the template and the problem occurs both when I try it on a new content page , when I try it on an existing default page and if I try to insert the tag in the template.
Any help to solve this problem?
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Thu Oct 19, 2006 4:01 am
by Dr.CSS
That usually means that it's not there to be read, have you deleted it or changed the name of it?
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Thu Oct 19, 2006 9:34 am
by moiv
mark wrote:
That usually means that it's not there to be read, have you deleted it or changed the name of it?
Well that is exactly the problem I don't understand - I haven't touched anything else. I have only defined the tags and inserted them on the page. As soon as I delete the tag, the footer is displayed without an error message?
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Fri Oct 20, 2006 1:13 am
by Dr.CSS
Any chance you could post the template code?
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Fri Oct 20, 2006 3:10 pm
by moiv
mark wrote:
Any chance you could post the template code?
Thank you - I have pasted it below. This is the original template code, apart from minor changes of titles. I have just discovered that the template code is automatically altered when I enter the tag into the relevant page. Apparently the footer part (typed in bold at the end of the template code) disappears when I use the tag? How can this be avoided?
{sitename} - {title}
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{literal}
=b){nw=b+"px";}if(w
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
{/literal}
{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}
{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}
{cms_selflink dir="start" text="$sitename"}
{breadcrumbs starttext='You are here' root='Home' delimiter='»'}
Navigation
{menu template='simple_navigation.tpl' collapse='1'}
Nyheder
{news limit=3 detailpage='news'}
{print showbutton=true script=true}
{title}
{content}
{anchor anchor='main' text='^ Top'}
{cms_selflink dir="previous" label="Previous page: "}
{cms_selflink dir="next"}
{global_content name='footer'}
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Fri Oct 20, 2006 3:20 pm
by moiv
Sorry - I don't know why it appeared as I wrote in the last reply. I have just made another test and the template stayes unaltered when I insert the tag on the page. So the template code is excatly as it appears after the tag has been inserted.
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Mon Jan 22, 2007 6:13 am
by dmizer
i'll bump this with a hearty "me too". i don't see a solution posted yet, and searches have not revealed any other possible solutions.
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Thu Feb 01, 2007 11:11 am
by webropa
Hi All,
I dont know if this will help you, but, I was getting the "string61" error and found that thanks to Member "aravenwood" that the problem was I was inserting data from an outside database.
I inserted the required tables from that database into CMS database and renamed the tables with the "cms_" prefix and that solved the problem for me.
Re: Problem with globalcontent:footer when using "user defined tags"
Posted: Sat Aug 02, 2008 6:51 pm
by OOpabloOO
Hi all,
I've got the same problem here. I'm using CMSMS 1.3.1, and the template is the same for all pages...
I cannot move the tables inside cmsms db nor renaming them.
Should I consider this a bug and reporting it into the dev section?
Tnx