Jump to content

jon9china

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by jon9china

  1. I currently test changes to my javascript and templates by setting up some 'dummy' pages and 'dummy templates', and uploading everything to the server. Is there a way to replicate my site on my local machine, so I can do away with keeping track of versions of my templates and other complexities? I will be working on a Mac. The easier the solution, the better, as I am not well versed with back-end technologies at all! Thanks!
  2. Thanks. I see there are all kinds of levels of sophistication you can go to. Nice.
  3. Thanks for this kixe. Can you tell me, where is the code where you 'call the file via API' to be placed? In the template file? I was looking for a solution where I can simply put an audio player (native controls are fine) at any spot on my page, within any text. I don't want the audio to be tied to region specified in a template. I did find a solution using the Hannah code module which seems to be great. But I was curious if there is a simpler way, such as a way to include html tags for audio or video that don't get stripped out of a textarea by the editor, by using some syntax or setting or something like that.
  4. I did solve this using a simple PHP Hannah code bit. Still finding my way around Processwire basics. I'm curious if this solution is somewhat overkill?
  5. Is there a way to insert instances of audio files (playable when viewed) using the textarea field? If 'no', then what is the way to include playable mp3 files without having to specify in a template file where they might occur? Thanks for helping out a newbie! Jon (edited: I am going to try to do this using the Hanna Code module - is this a recommended solution?)
  6. ok, Thanks for the help once again. That last link led me to something that was helpful. I think I'm getting a little foothold now. This is the resource that was of most direct help for any other newbies struggling with a 'main.php' or 'main.inc' setup (as opposed to the 'beginner' profile install that breaks things up into head and foot.inc) https://processwire.com/docs/tutorials/how-to-structure-your-template-files/page4 Really great community here!
  7. Thanks for the response! Is my understanding correct, that what I can do is recreate the parts of _main.php in a new 'main.inc' file, or divide the code in main.php into 'header.inc' and 'footer.inc' and then include those in my new template file, with my own html sandwiched in there? Or, a different strategy, don't meddle with main.php and create 'mypartial.inc' and then in my template file: <?php include("./mypartial.inc"); But if I do this second strategy, how do I ensure my code shows up in the region of the page that i want it (between nav and footer)?
  8. Hello, a newbie question: How do I create a template that includes some fixed html (and also a javascript file). I followed the planets tutorial which was very helpful for grasping some basic concepts, but does not seem to be totally applicable to my profile, at least. I have the Zurb Foundation profile which makes use of a _main.php (attached) and _init.php Thanks in advance for any help! _main.php
×
×
  • Create New...