Jump to content

Frank Vèssia

Members
  • Posts

    584
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Frank Vèssia

  1. wow, i didn't know about this...thanks
  2. Hi, I need to select pages with a specific selector, going back to parent and find values inside two pagefields. I can obtain pages with first pagefield like $pages->find("parent.pagefield.name=value"); but I need to go deeper with $pages->find("parent.pagefield.pagefield.id=value"); Any idea how to get this? -------------------------------------------- Solved in this easy way: $var = $pages->find("pagefield=value"); $pages->find("parent.pagefield=$var"); That's why I love PW
  3. @joer80 I think the purpose of this module is exactly to avoid certain users to access to the standard PW admin, it's not an issue.
  4. As i wrote before the only error i get is: Uncaught ReferenceError: initPageEditForm is not defined. Anyway right now I solved installing the AdminThemeReno, therefore It was something related with the admin/modules cache which I was not able to delete in any usual way...strange thing, reactivating the default theme i get again the issue...
  5. I'm wondering what's the best practice (in terms of performances) for obtaining total values. For example in my site I show to my users some stats based on their activities, like uploaded photos, total friends etc...I usually get this totals using a simple $pages->find("...limit=2")->getTotal() Could be more effective instead having a specific field just for the total, increasing its value on each action ? Of course with this solution I have to update this value on each user action...so I don't know if it's worth it...
  6. @renobird, awesome....I just used your hook directly in my module...so it's working fine. Thanks
  7. It's for the admins (superuser), other users access only in the front end. I just want a different page after login, in this dashboard I have a lot of stats about the site so it's cool the have these info right after login, having the page tree every time is not the best.
  8. Is there a way to have different "home page" after login into the PW admin? I'm creating a module with a dashboard and I would like to go directly there after I login into PW and not into /page
  9. I'm sorry guys but it's not a question of cache...and I certainly didn't open a thread for asking how to refresh a page or empty the system cache
  10. 2.5.3. A couple of autoload modules. hard reload? I don't know this procedure
  11. Hi, I have a problem with the admin interface, at certain point the wiretabs stopped working, if I click on any tab I get nothing, so I can't open collapsed tabs. I tried to remove all installed modules, remove any custom css and jquery from the site, also export the entire site profile and import with a fresh install, but nothing... I attached a picture for better understanding, you can see the down arrow icon is also attached to the label... in some pages i get this jquery error: Uncaught ReferenceError: initPageEditForm is not defined. any suggestion?
  12. I have a social network made in PW with +40k users registered, my solution was to create a template for the profile, having some important fields directly to the user template like gender, city (fields I can use for a search so it's good they stay inside user template) and additional info into the profile, linked to the user with a page field.
  13. Nice module, how can I translate the error messages or change the default?
  14. I love the new module ProcessWire Config, I'm already using it in a lot of my projects where I used to write manually all configs I needed. I think could be nice to extend a little bit more the definitions of the fields, like: 1 - add field width (site_title = text = Site Title = Description = 50%) 2 - add integer fields 3 - add images fields
  15. hi Wanze, this system is awesome but I'm getting some issues working with the "Global template file" option, probably i didn't get the right purpose of this. my setup is: "templates/views/" for the path "tpl" for the extensions this works good as long as i use files like home.php + home.tpl but when i set "main" for the Global template file (or should write main.php??) i get just blank pages. Can you please provide an example of the correct use of this option and file structure ?
  16. Great module. It's possible to use the module working just with API ? I mean, creating pages with images and files not from the admin but via code.
  17. In my social network this could be useful for users want to make some pages protected and decide who can view the page based on roles, for groups, pictures, or events etc....right now i make this with bare code, so having a module is always nicer and of course users can't go in admin panel so i need some api implementation
  18. This is awesome. It's possible to set a protected page via API?
  19. Yes images are the only difference, thanks horst I will take a look
  20. Hi guys, I have a photo website, where a photo page (containing an image field) is showing a pixelate version for not loggedin users and the regular photo for loggedin users. There is a way to cache this content twice and show it to the right users? Or show the cached content only for loggedin or not loggedin users? Because right now if I use the regular template cache it happens for example that a loggedin user sees the pixelate version, probably cached by a not loggedin user which visited the page before him and viceversa.
  21. Sometimes i get this error: Page: /post/ User: loris Error: Exception: Can't save page 0: : Pages of type NullPage are not saveable (in /home/cuckold/public_html/wire/core/Pages.php line 514) which is impossible for me to solve because that file is very long and save() is performed many times. There's a way I can spot the exact line, some debug setting maybe or log? Thanks
×
×
  • Create New...