Jump to content

Luke Solar

  • Content Count

  • Joined

  • Last visited

Community Reputation

4 Neutral

About Luke Solar

  • Rank
    Jr. Member

Recent Profile Visitors

2,527 profile views
  1. Google Spent 2 Years Studying 180 Teams. The Most Successful Ones Shared These 5 Traits https://t.co/IvoU7MiSkB via @flipboard

  2. JIRA Tip of the day: How to define default values for create screens https://t.co/yeq7epBblK (with Workflow Essentials) @JIRA #jiratips

  3. I’m going to "Codemotion Berlin 2016"! Who’s joining? https://t.co/IOWmg1FcMn

  4. RT @samnewman: A very funny analysis of npm dependencies, via @2metres https://t.co/MHSj3loP8E

  5. The 5 Most Promising Frameworks of the First Half of 2016 https://t.co/i46jPe9mRm via @DZone

  6. RT @sjmaple: #IntelliJ finally overtakes #Eclipse in the war of the IDEs! //@jetbrains https://t.co/xEBbCeJ7Rt https://t.co/7DL6NLmcNM

  7. RT @TOABerlin: And we're live in 3..2..1. TOA16 is officially ON! Follow us on IG: TOABerlin, FB & Snapchat: TechOpenAir to keep updated on…

  8. For the Automatic Name I wrote another module. It adds "template_[id]" as the name. Only if its the only allowed template to add AND it has no template file associated. This is basically usefull to group entities. e.g. -- company -- address_list -- address_1 -- address_2 I hook into the ProcessPageAdd ___execute Method. Its the only hookable method in the Module. And all properties are protected. I didnt want to check allowedTemplates again with custom code so I made the function of the ProcessPageAdd Module "getAllowedTemplates()" public. The parent_id is also available in the
  9. Very nice - It was quite easy to add the 2 subpages. I added a Hook after 'save' and with $hookEvent->arguments[0] you get the page and add the Subpages if necessary Module Code: public function init() { // add a hook after the $pages->save $this->pages->addHookAfter('save', $this, 'createSubPagesForCompany'); } /** * Hook into the pages->save method and create two subpages if necessary * */ public function createSubPagesForCompany($event) { $page = $event->arguments[0]; $templates = wire('templates'); // only for template 'company' // create tw
  10. I did not use repeaters for these reasons: I need to access lists of addresses and lists of projects with full access to their parents. Filter them with different criterias (project start date, address discrict,..) I found it not really convenient to "search" through repeater fieldtypes. E.g.: latest projects (showing also the company name etc), list of ALL addresses on google maps with infowindow including data from the parent (company). When I have more then 5-10 items its not really good usability to have such a huge form. Somewhere its said that repeaters are not "infinitly scalable" bu
  11. Hello, I have a page structure as follows: - Company (only this page has a corresponding php template to show data) - Adresses - Street/ZIP #1 (template "address" without php file) - Street/ZIP #2 - ... - Projects - Project #1 (template "project" without php file) - Project #2 I would like to have the following workflow: 1. When I create a new Company, the pages "Addresses", "Projects" (only placeholders to structure data) should be created automatically. 2. When I add a Project or Address, the first step (Setting a "name", Selecting the only allowed tem
  12. Yes, true. But I think it really depends what someone is doing what hooks are considered useful. Although I think hooks for "Page" could be more useful then for "Module", but that really depends. A somewhat extended documentation on hooks may be useful and some sort of cookbook as it can be found in the HelloWorldModule. What are popular things you write hooks for?
  13. Is there a List of recommended / popular hooks in the meanwhile somewhere? Sorry, found it http://processwire.com/api/hooks/
  14. Great module! Exactly what I was looking for. Thanks a lot.
  15. Hello! I have pages of "companies", each company can have multiple addresses and multiple projects. I add them as sub-pages. To distinguish them I would like to preceed them in the List with "Address: " and "Project: " - in order to better distinguish them. Is it possible? At the moment I just use "template" to output the template name but would be nicer for the client to customize it further. Anyone knows how? Something like: Audi - Address: Somestreet. 99, 12053 City - Address: Another street 99, 12053 City - Address: Yetanotherstreet. 99, 12053 City - Project: XY 2011 - Project: T
  • Create New...