Jump to content

moonwhaler

Members
  • Content Count

    14
  • Joined

  • Last visited

Community Reputation

4 Neutral

About moonwhaler

  • Rank
    Jr. Member

Profile Information

  • Gender
    Not Telling
  1. Solved: I used the wrong type of "$page" when trying to access the CURRENT viewed page. The result was always the "admin" template. Which led me to using the $pages->get($_GET[id]) thingy.
  2. Okay guys I am truly overwhelmed by your support. I think this is VERY rare nowadays. That really encourages me to support PW even more by buying some Pro modules soon. It's really, really good to have a community like this! @adrian: Thank you for you effort. After reading your code it gave me a more deeper understanding on where to put the hooks! @LostKobrakai: Your dedication is stunning. And you're right: the "init" PHP is only executed front-end wise. Thank you for opening my eyes! Basically, you're right. Adding this hook globally to all pages might seem too much, but Soma does a
  3. Hooking is harder than I initially thought. Maybe it's easier to "hide" the "add new" button on my PageTable field... But that is a question for another thread. Thanks!
  4. Hi everyone, after successfully solving the mystery "PageTable", I stumbled upon another one: removing the "add new" button from PageTable (in the template) via hooks. So, I read about hooks. I never implemented one myself, but tried using the "init" PHP file from the default site, but that didn't work out too well. So again I am a bit stuck in the process. Basically, I check if an array is empty. If it is, the PageTable field on my template shouldn't display the "add new" button. That's about it. Since PageTable is fairly new, I didn't find too much info about it. Maybe someone of you
  5. Thank you LostKobrakai! This works like a charm. One thing left though: when using "PageTable" and trying to add a new entry (Page) to the list, am I able to deny adding new "lineups" when there are no players / positions left to assign? Currently, I am able to add "blank" pages, since I have no more players in my Page selector. Thanks again!
  6. Hi guys, here's a short list of my fields: and my current page structure: Sorry, it's german for the most part, but maybe you get the idea. Basically, there is a page "game list", "player list", "jersey list", "position list". I already read that using simple "select" types is not recommended DB-wise, so I skipped that from the beginning. I mostly modelled the structure very similar to yours @LostKobrakai from the start. Apart from that, I really like the "custom PHP code" approach. I didn't really saw that when using "Page" as field type. I will try that ASAP. So thank you for t
  7. After playing around a bit with PageTable I don't think this is a really good alternative to Repeater fields. I understand that it may be better performance wise, but Repeater are superior in terms of user interaction. A PageTable (as far as I understand it) is "just" another way of adding sub-pages to a page and then displaying them in a table on the parent page. Repeaters, on the other side, are fast (looking at user input / UI wise) and responsive. Another thing is: I have to "name" a new page - in my case I have to name them "position1", "position2", etc. Repeaters don't need that (there
  8. Wow. This is a bit hard to digest for a PW n00b. I will try your solution (LostKobrakai) and see how this may turn out! Maybe I will come back to you in case I might be stuck somewhere... Thank you.
  9. Yep. It has to be some sort of "self-aware" selector. It should only display the names of the players / positions that not have been used yet. Only in the admin part.
  10. Hi there! The title may be a bit misleading, or at least it's how I tried to achieve something which may not be possible in that combination. But let's start from the beginning: I'm trying to create a football team & game manager with processwire. As someone who used Excel in all ways possible to manage every aspect of a football team (members, positions, games, etc.) and having used processwire for solely building websites in the past, I thought this has to work, too. And for the most part it does! Yet, I have a few things which may work even better and that's where I'm stuck. I cu
  11. Great! Thank you guys. Works like a charm!
  12. Hi everybody! As I may have already wrote, I really like processwire. After a short time of not knowing whether this thing is really able to get everything going (= bigger more complex sites), this slowly kicks of. Coming from MODx processwire really is a treat - and a lot faster! So now: I just tried adding a new field which I named "book_exhibit_year" used the type "Datetime" and tried setting the "Date/Time Output Format Code" to "Y" (year with four digits) and also did the same with "Date Input Format Code". My customer wants to add his own "books" as child pages and requires them to
  13. Really nice! What I am personally missing, though, is the possibility to add "local" images to the document/field. Currently, only "external" ones (HTTP) are supported. Just look at TinyMCE to see what I mean...
  14. Hi there! Just updated to PW 2.4 - without updating the ModuleManager to 2.x, which worked fine. After that I added JQueryDataTables and then updated to the latest ModuleManager that gives me "400 Bad Request - Request Header Or Cookie Too Large" now. I'm using a Nginx webproxy/server via HTTPS. The logs do not tell me much (access.log, error.log is empty): 1.1.1.1 - - [06/Mar/2014:11:48:56 +0100] "GET /processwire-admin/setup/modulesmanager/ HTTP/1.1" 400 242 "https://bs.somedomain.com/processwire-admin/module/edit?name=ModulesManager" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/
×
×
  • Create New...