When I try to create articles, after I enter the basic info and send it (but before the page to actually enter the article) I get this message:
Warning: main(/usr/local/apache/htdocs/include/inc_tmpl/article.editsummary.tmpl.php): failed to open stream: No such file or directory in /home/wrmetro/public_html/include/inc_lib/article.editcontent.inc.php on line 226
Warning: main(): Failed opening '/usr/local/apache/htdocs/include/inc_tmpl/article.editsummary.tmpl.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/wrmetro/public_html/include/inc_lib/article.editcontent.inc.php on line 226
If you're following along with this tutorialas I am, you will type all the tags as they appear in the screen snap shots. The problem is that one of the tags is missing a quotation (") at closing. So if you copy as is, there might be a problem with the results.
The line missing the quote is <div style="color:#333333;padding:20px;"> in the "main" box of the template window.
Hello Oliver,
apologies, I need this information to get started working on a simple project, I was trying to create a template, and is it possible to assign a template to different articles? I hope you could help..
Thank you so much
It depends on how you structure your articles. Every structure level can have a custom template. You can place only a singe article inside a structure level.
In addition every article and content section can have custom designed elements/behavior.
Usually there is one main template which defines the basic document structure, CSS and JavaScript and so on. Then you define how it looks in detail. Header slider here, big picture there and so on. Think of it like a puzzle.
On top of everything you have direct access to all rendering by PHP.