Jump to content

thetuningspoon

Members
  • Posts

    691
  • Joined

  • Last visited

  • Days Won

    6

Community Answers

  1. thetuningspoon's post in Setting the value of a Page field with the API when the value contains a comma was marked as the answer   
    I figured it out. The problem was that I didn't have a Title field for the page I was trying to reference. So how it was working at all, I don't know. I'm now using the Title field to store the company name instead of a separate company_name field. No issues with commas or periods.
  2. thetuningspoon's post in Output based on second level was marked as the answer   
    If I'm understanding correctly, it sounds like all you need to do is pull the title of the parent's parent page. So, something like this:
    <?= $new->parent->parent->title ?> For the current item should output the title of the site page.
    Or:
    <?= $new->parents->get('template=sitePageTemplateName')->title ?>  might work if you don't want to have to specify exactly how many levels above your site page is. That will search all parents of the page until it finds the one with the specified template.
  3. thetuningspoon's post in Can't type into CKEditor when it's blank (Chrome only) was marked as the answer   
    Yeah, I've been trying to "figure it out" for 2 days... 
    EDIT: Okay, I got it! The problem is that I was using display: flex; on the body element, which was also getting imported into my contents.css file. I changed this to display: block; and we're good to go.
  4. thetuningspoon's post in how do I implement support for iframe in HTML mode? was marked as the answer   
    Hi ozznixon,
    The settings for TinyMCE are located in the field settings for whichever field you want to add this capability to. So, for the body field, go into Setup > Fields > body. Then go to the "INPUT" tab and click on "TinyMCE Advanced Configuration Options".
    You'll want to edit the valid_elements to allow for iframes. I don't know off the top of my head how to do this... but if you're okay with allowing ALL elements, you can replace everything in the field with *[*] and that will allow iframes along with everything else. I usually do this although some people would caution against it... It really depends on how much power you want to give your editors.
  5. thetuningspoon's post in Can't Login to ProcessWire Site Anymore was marked as the answer   
    Thanks, resetting the passwords through the API worked:
    http://processwire.com/talk/topic/490-how-to-reset-your-password-how-to-enable-the-forgot-password-function/
×
×
  • Create New...