Jump to content

jon9china

Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by jon9china

  1. Choose 'Fieldtype File' and set allowed format under details tab to mp3 or wav.

    call the file via API.

    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.

  2. 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?)

  3. 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!

  4. 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)?

  5. 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...