Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/02/2018 in all areas

  1. Would be much easier to use html themes them wp ones. You can't avoid copy/paste html chunks, and there is many little things to handle like active classes on menus etc... very simple to do with pw, but requires some work and time. Processwire not adding any code to the front-end, so u have to build it ur self, thats one of the reasons pw is so great. It doesn't have any template system like drumlapress.
    3 points
  2. Unfortunately, this magazine has bitten the dust but they were gracious enough to have their entire back catalogue available for download. https://secure2.linuxjournal.com/pdf/dljdownload.php
    2 points
  3. This is for content, rather than templates/themes, but here it is: https://github.com/nicoknoll/MigratorWordpress
    2 points
  4. sigh... I must say some folks are quite good at marketing. I don't blame them. It's a free market. There's nothing I saw in this article that wouldn't be possible with PW (and without any extra modules either), more or less out of the box. What Magnolia calls fragments is apparently nothing more than PW's fields. But I have to hand it to them, they seem to know how to translate all that tech lingo to marketing speak.
    2 points
  5. Credits to Ryan - I didn't know about that detail and he added it to the blogpost while proofreading it Sorry I think I misunderstood you try $headline = 'Happy ' . date('Y'); $this->headline($headline); $this->wire('processBrowserTitle', $headline);
    1 point
  6. @bernhard going through your epic tutorial again and again, I discover stuff I overlooked the first time. e.g. I didn't know it was so easy to add an additional page to a module such as you describe @ https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/#hello-page2 Quick question: Do you know if there is a native PW method I can use here to define my own h1 title that looks a bit more human-readable? i.e. being able to display "My Second Page" instead of "Mysecondpage". I tried camel case and underscores for the function-name - didn't work.
    1 point
  7. Perfect, that's now working without error. Thank you for resolving this!
    1 point
  8. I've made a few migrations, not from WP, but the same method applies. First I copied the assets. Layout images, CSS, fonts, etc. Then I went to the site's homepage, copied the source, pasted on home.php and started cleaning up. With the code clean, I move the header and footer into separate includable files. You'll have to replace the menu links with a loop to grab those from the admin, change the path to the assets and so on. Then do the same for the next page. Copy from the source's frontend, paste on the template file, replace header and footer for the includes we've prepared when doing the homepage, and proceed cleaning up and replacing the hard-coded content with calls to the page's fields. It takes some time, but it's straightforward. As @lokomotivan pointed out, best is to start from an HTML template. Processwire is geared towards custom-made solutions, where as Wordpress, specially when using templates, is more about allowing the admin to customise the layout from within the CMS. There is no way of directly or automatically replicating the same features of a WP template in PW. But if you take an HTML template, trim it to your needs, then setup PW to have just the fields you need for what you're building, you'll get a much cleaner and easier to use CMS. You can do it in one or two days after you get the hang of it, depending of the site of course.
    1 point
  9. /** * Installer: Database Configuration * */ $config->dbHost = 'yourHost'; $config->dbName = 'dbName'; $config->dbUser = 'dbUser'; $config->dbPass = 'dbPass'; $config->dbPort = 'dbPort'; // usually 3306 is the default value I keep You just need to edit your site/config.php with your existing database values...or am I missing something in your question?
    1 point
  10. Not sure: http://www.linuxjournal.com/content/happy-new-year-linux-journal-alive
    1 point
  11. @bernhard thanks that's awesome! I was trying that attr() but eventually I discovered that if the button type="if differs from just button here, the _blank will not work" $repeaterBtn = $this->modules->get("InputfieldButton"); $repeaterBtn->attr("value", "Generate something"); $repeaterBtn->attr("type", "button"); // IF DIFFERS FROM JUST "button", IT WILL NOT OPEN NEW BROWSER TAB! $repeaterBtn->attr("id+name", "btn"); $repeaterBtn->attr("href", "/admin/page/edit/?id=1"); $repeaterBtn->attr("target", "_blank"); $repeaterBtn->addClass("customClass"); $event->return .= $repeaterBtn->render(); Thanks again both!
    1 point
  12. you can do like this: $pageArray = $this->wire('pages')->getById($_ids); $pdf->markupMain = ''; foreach($pageArray as $item) { $pdf->markupMain .= wireRenderFile($this->config->paths->templates . '/book2pdf/default.php', ["page" => $item]); }
    1 point
  13. Welcome to the forum @FireDaemon Did you read this page? https://processwire.com/docs/security/admin/ Yes. In fact, during install process you are asked if you want to rename it. But you can do it later also. You could try this module. Yes That's already in core: see https://processwire.com/docs/security/admin/#preventing-dictionary-attacks In a test-environment, you can further add stuff like .htaccess allow/deny rules, i.e. only allow access from certain IPs.
    1 point
  14. Sidenote: Even if you come across a template that is not behaving as responsive as you think it should, you can easily change it... case in point: I would expect the phone view to put the article (main content) first, not the sidebar. http://themes.semicolonweb.com/html/canvas/blog-single-split-both-sidebar.html
    1 point
  15. This is what I do. I find it easier to view the source (inspector) and rebuild from there, rather than work with the raw files from WP.
    1 point
  16. If you want to learn PHP framework, you can see the list here, PHP Framework list . You can develop any web application type using PHP framework. However, you have to develop your user interface from scratch, even for the Administration part. Wordpress or Joomla, is a CMS application. Drupal started as CMS, but at some point, they changed the direction not just as CMS. PW is unique though. It is not purely PHP framework nor CMS apps. PW gives you the flexibility to some extent to develop non-CMS apps. In PW you get the Admin page as a starting point. From there it is up to you wants to build Website or another type web apps. But you can't change the existing Admin page model.
    1 point
  17. $wire->addHookAfter('Inputfield::render', function (HookEvent $event) { $field = $event->object; if (substr($field->name, 0, 13) === 'repeater_item') { $page = $event->arguments(0); $id = str_replace('repeater_item_', '', $field->name); $submitID = "submitRepeaterItem_$id"; $form = wire('modules')->get("InputfieldForm"); $submit = wire('modules')->get("InputfieldButton"); $submit->attr("value", "Edit this repeater item as page"); $submit->attr('data-href', wire('config')->urls->admin . "page/edit/?id=$id"); $submit->addClass('pw-panel'); $submit->addClass('uk-margin-left'); $submit->attr("id+name", $submitID); $form->append($submit); $myForm = $form->render(); $event->return .= $myForm; } }); I've got this in ready.php... seems to work.
    1 point
  18. That's a first What does the system looks like? If you could post some screenshots I'm sure we could help you out. But you should start with some basic stuff like bernhard already described in his tutorial.
    1 point
  19. Most themes come in the plain HTML version, so not much use these days to convert a WP theme.. But, if you absolutely must use a wordpress theme, the easiest way is to copy the HTML that WP outputs and analyze/use that; looking at the source WP theme code is typically close to useless;
    1 point
  20. That's right. Lister was never meant to be used in the frontend. If you just want to use Lister to create a selector, you just turn on debug mode and you'll see a yellow-highlighted text at the bottom of the Lister result screen with your current selector, i.e. template=52, teamLangSkills=1084, address%=zürich, limit=25, sort=lastName, include=unpublished You can use the exact same selector of course in the frontend too. Not sure why you want to use Hanna Code for that. But in plain PHP, you'd just do: $selector = 'template=52, teamLangSkills=1084, address%=zürich, limit=25, sort=lastName, include=unpublished'; $pgs = $pages->find($selector); if($pgs) { $out = '<ul>'; foreach($pgs as $p) { $out .= "<li><a href='{$p->url}'>{$p->title}</a></li>"; } $out .= '</ul>'; echo $out; } I guess you can store this inside a Hanna block. I don't know how you can directly access a certain Lister bookmark selector, but I'm sure it's possible.
    1 point
  21. What version of PW are you using? Ryan fixed a redirect issue on the dev branch in early November. Does clearing your browser cookies resolve the issue?
    1 point
  22. $pageArray->has($page); http://processwire.c...er=has Also it doesn't matter if you add duplicates as PW will remove them anyway.
    1 point
×
×
  • Create New...