Jump to content

Jacek

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jacek's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. I need some help with my project. I'm trying to create a site dedicated to board games. It will be in a part a recommendation system, a directory and an exchange platform. I want every user to have ability to create custom lists of games. I've got a page called board games. Its children are singular games. Now I don't know how to implement this many to many relations. These are my constraints: 1. Each user can create a custom list (similar to a common wish list) of games listed in the catalogue. Each list will have a title of his choosing and a status (punblic/private) . For example: My favorite 10 strategy games. 2. Some lists must be hard-coded, predefined, and common to all of the users without any ability for users to edit or delete them (editable field) 3. Each game on the user's list needs to have some additional fields of various types. For example: my comments, my rating... 4. I want to have an ability to display: *each list a game is listed on *all lists of a given user 5. Each user can place every game from the directory on multiple lists. If it was a database, I think I would create one table for users yet another one for games. I would implement many-to-many relation using another table containing user and game ids with additional fields: list name, comment, rating etc How can I reflect this structure best in PW?
  2. I'm coding my first module now. I've just managed to add a button to the page edit form but am not content with its placing. Is there any way to place it just next to the input field? I've marked the desired place with the arrow on the attached screenshot. My current code: $this->addHookAfter('ProcessPageEdit::buildFormContent' , $this, 'addButton'); public function addButton($event){ $form = $event->return; $f =$this->modules->InputfieldSubmit; ... $form->insertAfter($f, $form->get("bgg_id")); } "bgg_id" is the name of the targeted field.
  3. Thank you Macrura. I've tried all of these suggestions and nothing helped, except editing InputfieldImage.js in the following manner: // Initialize Upload /*if(useAjaxUpload()) { initUploadHTML5(''); } else { initUploadOldSchool(); }*/ initUploadOldSchool(); Now I can add images (without any progress bar of course). I select one, save edited page and a thumbnail show up. I consider it temporary solution. On the basis of this upload I presume neither of the suggested php settings (max_post_size, max_execution_time, max_memory) is the main cause of my problem. I've contacted my hosting provider and wait for their response. phpinfo() doesn't display any security_mode settings.
  4. I use the standard Image field and can't upload any image. The loading bar reaches the end very quickly then the loading icon/graphic just continues to spin. My php.info for you to see. Any ideas how to fix it?
  5. Thank You Bernhard, it's great. Exactly what I was looking for! Than You Abdus, I think I will make use of it too.
  6. Hi, is there any way to create and fill not only a name of a site referenced in a page reference field but all its fields (according to the template it is based on)? In Drupal I would use the References Dialog module:
×
×
  • Create New...