Jump to content

chuguruk

Members
  • Posts

    13
  • Joined

  • Last visited

chuguruk's Achievements

Jr. Member

Jr. Member (3/6)

2

Reputation

  1. Hey, Any clue how to use MapMarker field in front end? I've tried to fill it, but it doesn't process coordinations.. Thanks!
  2. I would if I was sure that this modue is causing problem, but as I wrote - "I don't know why", and @Pavle is facing the same problem with different module. I have installed this module on different instance of PW 3 and all seems to work fine (althrough it's an upgrade from 2.7).
  3. I have tried to install this module on PW 3.0.17 - it doesn't want to install. Asks for "LazyCron" which is istalled (core). Any chances for an update? I had to install LazyCron manually and it works now - sorry!
  4. No, I didn't use that module, but I've installed FrontEnd User which is not working anymore I don't know why. I will wait for next version as my site is in early development.
  5. No, but You can see that guys are working on this field: https://github.com/ryancramerdesign/ProcessWire/commits/devns Which version of PW do You have? Mine is 3.0.17. Latest is 3.0.18
  6. I've tried segments but didn't know I have to turn it on in template.. Thanks!
  7. Hi there, Goal: user profile visible as: http://mysite.com/username So far visible as: http://mysite.com/user.show?user=username 404 template: <?php $username=$input->get->user;?> <? $hello = $users->get($username); echo $hello->name; echo $hello->id;?> I have added this to .htacces RewriteRule ^[A-Za-z-]+/([A-Za-z0-9-]+)/?$ user.show?user=$1 [NC,L] But it doesn't work. It would be much better to not use 404 template.. Any idea how to get this working? edit: I've added page and template "show" with the above code. I have added this code to header.inc <?/** * This hook modifies the default behavior of the Page::path function (and thereby Page::url) * * The primary purpose is to redefine blog posts to be accessed at a URL off the root level * rather than under /posts/ (where they actually live). * */ wire()->addHookBefore('Page::path', function($event) { $page = $event->object; if($page->template == 'show') { $event->replace = true; $event->return = "/$page->name/"; } });?> Seems like I'm missing something as it doesn't work for me. And I can't access users path anyway as it's restricted, right?
  8. How to add/remove css classes to rendered form? I want to change how it's rendering, I can hide <li> through css, but how to add another class to form input field?
  9. Yeah, already tried that. Doesn't work. This is my simplified code: <?php $source = $pages->get("/programs/"); $programs = $source->children(); foreach($programs as $program) {?> <tr class="gradeX"> <td><?=$program->title?></td> <td><?=$program->computer?></td> //shows page id <td><?=$program->computer->title?></td> //doesn't show antything <td class="center">4</td> </tr> <?}?> "computer" is a page select field in program template connected to computer page. I can: show computer page id manualy put that id in $computer = pages->get(2893); and echo it's title <?=$computer->title?> I can't: make that automaticIt should be working: <?=$program->computer->title?> but it doesn't show anything. Any ideas?
  10. Hi there, I have no clue how to resolve this problem: There is list of pages with users There is list of pages with devices In device template i have field "page" to select proper user In front end I have table where I'm looping through devices displaying title and user id. Problem: I can't display user name. <?=$device->user?> is displaying id of user (1114) <?php $user_name = $pages->get(1114); echo $user_name; ?> is displaying name correctly (not loop) <?php $user_name = $pages->get($device->user); echo $user_name; ?> - not working How to display user name?
  11. Hello, I have blank blog pages after installation. It seems to be ok in admin panel, I can add posts etc, but all blog pages are blank for the user. What can cause this problem? How to reinstall this module? Kind Regards
×
×
  • Create New...