Jump to content

Search the Community

Showing results for tags 'processwire api'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. 1. Hi, I find this guide: http://processwire.com/docs/tutorials/but-what-if-i-dont-know-how-to-code/part-1-pages-templates-fields-files/page4 here there'is write: "Open your template file which at the moment is completely blank and let’s write some PHP using the ProcessWire API to output the title field. For the moment I am not going to bother with niceties like html. Here is the breakdown of what we will do." <? Php echo $ page -> titolo ; >? But I don't understand how and where write this php code. Must I open the file .php on my desktop and write from there? Must I write on it by ftp, go into the server by filezilla? How to create a file .php in my pc? If I use notepad, the extension remain .txt and not .php Can I write the File Template on ProcessWire plattaform? 2. The guide to tell than: put the php code "You should now have a new link on the menu called Miy First Page." BUT I HAVE THIS NEW LINK TO NEW PAGE JUST CREATED, WITHOUT PUTTING NO CODE php anywhere. My .php file VACUUM THAT HAVE LOADED, is REMAINED EMPTY AND I SEE ANY LINK TO THE NEW PAGE PAGE OF DIRECTORS. So why DRIVING ADVISED TO WRITE THAT CODE ON FILE PHP TEMPLATE? 3. The guide to tell than: To prove that this is actually a proper page, go back to your template file and add the normal HTML page coding to it (You know, head, body and so on), leaving your little bit of PHP in the body tag. Maybe add <H1> tags before and after the PHP statement? Save that and refresh your browser and you now have a proper html web page with the page title displayed as H1. In case you are feeling lazy as hell, you can copy and paste the following, though why I am being so kind to you is beyond me! <html> <head> <title>Hello</title> </head> <body> <h1><?=$page->title?></h1> </body> </html> But Now, I write something in my new page, and I see all without having written anything in the Template File. I have to skip this part of the guide?
×
×
  • Create New...