franciccio-ITALIANO Posted July 8, 2015 Share Posted July 8, 2015 Hi, I read this: http://processwire.com/docs/tutorials/but-what-if-i-dont-know-how-to-code/part-1-pages-templates-fields-files/page3 but I don't understand how create Files Template by the amministration pannel. I must create the files .php on my pc and charge it by ftp on server? Thanks, I'm italian Link to comment Share on other sites More sharing options...
Martijn Geerts Posted July 8, 2015 Share Posted July 8, 2015 Welcome franciccio, Quick and dirty: A template is a wrapper for fields. When you create a Page you must assign a template to it. So a template is a page 'factory' that makes all fields available to the page. When you want to show the page in the browser the template needs a template file. So the template file is optional but needed when you want to produce output. And yes you're right, when you need the page to be visible you need to create a template file in the /site/templates/ folder and name it the same as the template plus the php extension. Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted July 8, 2015 Author Share Posted July 8, 2015 Thanks! But then I have to write my own hand the "Template Files" and upload it via ftp to / site / templates? See I do not understand anything about programming languages and markup for the web browser! I should learn to write a "File Template" to do readable templates created by me or any of processWire Template is already automatically readable by the web browser? Sorry if it seems is not understanding anything, but I started a few days! you can create and / or load the "File Template" platform ProcessWire instead of from the outside via ftp? Link to comment Share on other sites More sharing options...
Macrura Posted July 8, 2015 Share Posted July 8, 2015 yes, you have to craft your template files and you do need access to the FTP. You can use exisiting HTML/CSS templates and then integrate the calls to the Processwire API within those. Link to comment Share on other sites More sharing options...
davo Posted July 9, 2015 Share Posted July 9, 2015 Have a read of this: http://www.w3schools.com/html/default.asp Then use php to output some of those statements like this. just try creating a file named mypage.php with the following content: <? php echo "<h1>The title of the page is....</h1>; echo $page->title ; ?> You'll then need to apply in processwire that template to a page you make. Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted July 10, 2015 Author Share Posted July 10, 2015 Thanks now proceed to study the tutorials because now it's all turkish Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now