• Content count

  • Joined

  • Last visited

  • Days Won


justb3a last won the day on April 26

justb3a had the most liked content!

Community Reputation

614 Excellent


About justb3a

  • Rank
    Sr. Member

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
    Leipzig, Germany

Recent Profile Visitors

4,451 profile views
  1. Module

    // @see: https://github.com/somatonic/Multisite/tree/dev#good-to-know-some-variables echo $page->rootParent->id; ... should work
  2. Thanks @mr-fan: there was a little bug figuring out, whether the user is working in the backend or not (differentiate between int(0) und false ). The belonging JavaScript file wasn't loaded.
  3. It's not that easy to access only this field, you could add a class for every "InputfieldText" for example. But why not extending your CSS as @alexmercenary suggested? If you do not want to use an ID as CSS selector you could use classes as well. This is the default markup: <div class="form__item form__item--scf-website" id="wrap_Inputfield_scf-website">...</div> <div class="form__item form__item--scf-date field--required" id="wrap_scf-date">...</div> As you can see, every field gets wrapped using the class form__item--{fieldname}. Just extend your CSS: .hidden, .form__item--scf-website { display: none; visibility: hidden; }
  4. module

    This module uses namespaces which has been introduced with PW 3. I upgraded all my projects to PW 3.x, so I have no need to test and support older versions.
  5. module

    @Macrura Are you using the latest version? I fixed a little bug just a few weeks ago. Looking forward to merge your PR
  6. Hi, since extra fields aren't regular ProcessWire fields you cannot access the labels using `->getLabel()` method or `->label` property. The extra field labels are saved in the regarding field settings (table fields, column data) using json and looks like this: {"otherFieldSettings":"{\"cf_label\":{\"cf_label__location\":\"Location\",\"cf_label__location__1012\":\"Ort\",\"cf_label__custom__1013\":\"Paikka\"}}"} You can get the label using this functionality: $fieldSettings = $fields->get('images')->otherFieldSettings; $settings = json_decode($fieldSettings); echo $settings->cf_label->cf_label__location; As you can see there is no error handling or fallback strategy. Therefore I updated the module and added a method called getExtraLabel(). Usage example: // outputs something like: "Location: Munich" echo $image->getExtraLabel('location') . ': ' . $image->location; // outputs something like: "Ort: München" echo $image->getExtraLabel('location', 'de') . ': ' . $image->location;
  7. Hi, I spent the last days without a computer (holidays!!) so I didn't read my emails But the forum offers a lot of good advice and you're not the first one who asking this. So please have a look at the following posts / answers:
  8. module

    @ngrmm It's never a good idea to override somehing in the core or in a third-party module because if you update it your changes are overritten again. I updated the module and added an option in module settings to set the limit. @Tacolombardi <?php $events = $modules->get('FacebookEvents')->getEvents(); ?> <ul> <?php foreach ($events as $event): ?> <li> <?=$event['name']?> <img src="<?=$event['cover']['source']?>" alt="<?=$event['name']?>" /> </li> <?php endforeach; ?> </ul>
  9. module

    Have a look at your caches table. Search for name=Module.FacebookEvents. Delete this row. Furthermore you could have a look at your modules table where class=FacebookEvents, column: data.
  10. Version 1.0.0: [New] The module contains a Fieldtype Select Options Countries:
  11. I removed the date field label some days ago (@see Github issue). I didn't know that ProcessWire provides a way to skip the label. It's added to the develop branch, so it'll published with the next release!
  12. This is not how arrays work. Each key can ony exist once. EmailAddMessage is overwritten three times. The field isn't visible by default, because I don't want to add inline styles. Just trigger the field in your .css file and add display:none; there.
  13. The scf_website field must be there! Again: this field is used for spam protection. Please read the belonging documentation as described above, all necessary informations are there: If the fields does not match, you could have a look at your database. Table modules where class equals SimpleContactForm. Column data contains json, I guess the allFields value doesn't match anymore. Otherwise just reinstall the module and start with clean settings. To format the fields, you can pass options to adapt HTML structure as well as class names. Unfortunately not everything can be achieved using this. For really special needs you have to hook into the field render function. To get an overview of what's possible, have a look at the documentation: How to overwrite classes and markup.
  14. @BFD Calendar Could you please explain what you did exactly? It doesn't matter whether the module is installed via ProcessWire Module Interface or via Github (unless you checkout develop branch). As the documentation says, the scf_website field is used as honey pot check to prevent spam. In module settings you could add any existing field or create new ones by entering the names (comma-separated). Per default no fields are added, because I do not know which fields you need Furthermore: please have a look at the log file. If the form cannot be submitted, the reason will be found there.
  15. I fixed the typo, thanks for the hint. The translation string has been changed, some may need to translate it again! It started pretty simple (for private use only). Then I did the "mistake" to put it on Github . But if you don't need something special, I think/hope it's still pretty easy.