Page 1 of 1
Content Tag needs to go where in Home Template
Posted: Mon Mar 14, 2011 1:04 pm
by fr0z3ng33k
This is the message I get when trying to update my homepage text:
No default content block was detected in this template. Please ensure that you have a {content} tag in the page template.
I edited the text a month ago, haven't touched this page since. Now I am receiving this error. Anyone know where I am to put the content tag?
Here is the top of my home template code as well.
<!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">
<head>
<title>Title Here</title>
<meta name="description" content="Text goes here." />
<meta name="keywords" content="fun, exciting, intense" />
<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW, ARCHIVE" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>{sitename} - {title}</title>
{metadata}
<link rel="stylesheet" href="css.css" type="text/css" />
<link rel="stylesheet" href="dropdown.css" type="text/css" />
</head>
Re: Content Tag needs to go where in Home Template
Posted: Mon Mar 14, 2011 7:21 pm
by Dr.CSS
You need to put it somewhere between </__body> <__body>, all templates need one default {content} tag, if you need to have something besides Content: where it shows you can always use the label='Some Text to Show what it is' parameter...
Re: Content Tag needs to go where in Home Template
Posted: Mon Mar 14, 2011 8:28 pm
by fr0z3ng33k
Dr.CSS I think my issue is is that the person who built the site wrote in the Content box NOTHING GOES HERE. So when I add {content} it puts that all over my homepage. It also add's the content box in the Edit Content section with that writing. Yes I know I could remove the text, but it still messes up other text on the home page. The 2 boxes that are in Edit Content are FRA Inforrmation & PlanTools Information.
What I did was {fra inforrmation} {plantools information} all this did was made the text in plantools box enlarge to like font size 40 and out of it's table.
I never had this issue with 1.9.3 since the last time I edited this page was Dec. Do you have any other suggestions that might work, or do you need me to supply you with anything else?
Thanks again
Re: Content Tag needs to go where in Home Template
Posted: Tue Mar 15, 2011 3:24 am
by jmcgin51
paste your entire page template; just the head doesn't really provide any useful information
Re: Content Tag needs to go where in Home Template
Posted: Tue Mar 15, 2011 12:20 pm
by fr0z3ng33k
The work-around I found was to downgrade to 1.6.6 to edit the home page since for some reason it doesn't request the {content} tag. Maybe this is a bug in this patch along with 1.9.4..
Re: Content Tag needs to go where in Home Template
Posted: Tue Mar 15, 2011 1:31 pm
by jmcgin51
just call {content assign='junk'} at the top of your template.
Also, if you put your CSS in a stylesheet to separate content and presentation, it will allow you to let designers edit the CSS without monkeying with (i.e. probably breaking) your page template.
Re: Content Tag needs to go where in Home Template
Posted: Tue Mar 15, 2011 3:06 pm
by fr0z3ng33k
jmcgin51 wrote:just call {content assign='junk'} at the top of your template.
Also, if you put your CSS in a stylesheet to separate content and presentation, it will allow you to let designers edit the CSS without monkeying with (i.e. probably breaking) your page template.
So put {content assign="junk"} in the <head> or under </__body>. How do I go about placing this code (CSS) into a separate content like you mention above. I apologize for being new to this.
Re: Content Tag needs to go where in Home Template
Posted: Tue Mar 15, 2011 6:29 pm
by jmcgin51
fr0z3ng33k wrote:
So put {content assign="junk"} in the <head> or under </__body>.
Shouldn't matter. You can put it at the very top of your template if you want.
fr0z3ng33k wrote:
How do I go about placing this code (CSS) into a separate content like you mention above. I apologize for being new to this.
Take your style rules (anywhere you have style="xx"), and create a new stylesheet, and link it to the template. Then you can give someone permission to edit the stylesheet, without giving them permission to edit the template.
Re: Content Tag needs to go where in Home Template
Posted: Tue Mar 15, 2011 6:32 pm
by fr0z3ng33k
jmcgin51 wrote:Take your style rules (anywhere you have style="xx"), and create a new stylesheet, and link it to the template. Then you can give someone permission to edit the stylesheet, without giving them permission to edit the template.
The {content assign="junk"} worked perfectly, thanks again. I'll try out the new stylesheet as well.