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>
Content Tag needs to go where in Home Template
-
- Forum Members
- Posts: 59
- Joined: Thu Mar 03, 2011 4:47 pm
Re: Content Tag needs to go where in Home Template
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...
-
- Forum Members
- Posts: 59
- Joined: Thu Mar 03, 2011 4:47 pm
Re: Content Tag needs to go where in Home Template
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
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
paste your entire page template; just the head doesn't really provide any useful information
-
- Forum Members
- Posts: 59
- Joined: Thu Mar 03, 2011 4:47 pm
Re: Content Tag needs to go where in Home Template
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..
Last edited by fr0z3ng33k on Tue Mar 15, 2011 6:33 pm, edited 2 times in total.
Re: Content Tag needs to go where in Home Template
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.
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.
-
- Forum Members
- Posts: 59
- Joined: Thu Mar 03, 2011 4:47 pm
Re: Content Tag needs to go where in Home 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.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.
Re: Content Tag needs to go where in Home Template
Shouldn't matter. You can put it at the very top of your template if you want.fr0z3ng33k wrote: So put {content assign="junk"} in the <head> or under </__body>.
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.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.
-
- Forum Members
- Posts: 59
- Joined: Thu Mar 03, 2011 4:47 pm
Re: Content Tag needs to go where in Home Template
The {content assign="junk"} worked perfectly, thanks again. I'll try out the new stylesheet as well.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.