Jump to content

backes

Members
  • Posts

    40
  • Joined

  • Last visited

Posts posted by backes

  1. Currently I'm using the hidden/not hidden for navigation purposes. For example, the not hidden pages will be rendered in the primary navigation and the hidden stuff goes with specific page calls in several meta navigations.

    Or do you have any better workflow for the page structuring, that's also understandable by clients? :D

  2. Hey there,

    tried to install the module this evening, but got the following error at the installation:

    Error: Uncaught Error: Class 'Field' not found in /site/modules/MarkupSitemap/src/Utilities/Fields.php:49
    Stack trace:
    #0 site/modules/MarkupSitemap/MarkupSitemap.module.php(90): MarkupSitemap->createField('FieldsetOpen', 'sitemap_fieldse...', Array, true)
    #1 wire/core/Wire.php(380): MarkupSitemap->___install()
    #2 wire/core/WireHooks.php(698): ProcessWire\Wire->_callMethod('___install', Array)
    #3 wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(MarkupSitemap), 'install', Array)
    #4 wire/core/Modules.php(1688): ProcessWire\Wire->__call('install', Array)
    #5 wire/core/Wire.php(386): ProcessWire\Modules->___install('MarkupSitemap', Array)
    #6 /www/htdocs (line 49 of site/modules/MarkupSitemap/src/Utilities/Fields.php) 
    
    This error message was shown because: you are logged in as a Superuser. Error has been logged.

    I'm running the 3.0.77 dev branch!

    Thanks for the great module, by the way! 

    • Like 1
  3. Hey folks,

    I'm working on a multi language site (german=default & english).

    I have the strange problem, that the 404 for inactive english pages won't work the way I expected it.

    For example:

    I enter the following kind of URL in the browser: myurl.com/en/mypageslug/ which is inactive in the backend.

    The systems shows me parts of the german page and the language switch is also active on german. If I switch to english it opens the 404 page, which is the right one.

    If I log the accessed pages, it shows me the 404 page as url - but the content in the frontend isn't the 404 page! :(

    I hope that someone understands the problem and can help me with this strange behavior.

    As one check I already wrote a little module to interfere in the pageloading - but it won't do what I want neither...

    <?php namespace ProcessWire;
    
    class ProcessLanguageError extends WireData implements Module
    {
    
        public static function getModuleInfo()
        {
            return array(
                'title' => __('LanguageError'),
                'version' => '0.1.0',
                'summary' => __('Throws 404 error if the current page is not accessible in the chosen language.'),
                'autoload' => true,
                'requires' => array('ProcessWire>=3.0.41', 'PHP>=5.6.10')
            );
        }
    
        /**
         *
         */
        public function init()
        {
            // frontend hooks
            $this->addHookAfter("Page::render", $this, 'hookReturnError');
        }
    
        /**
         * @throws Wire404Exception
         */
        public function hookReturnError()
        {
            if (!$this->page->viewable($this->user->language)) {
                $this->log('failure');
              // the redirect show only a blank white page without any information...
                $this->session->redirect('http://www.google.de');
                throw new Wire404Exception();
            } else {
                $this->log('yeah baby');
                return;
            }
        }
    
        public function validatePage($page)
        {
            if(!$page->viewable($this->user->language)) {
                $this->log('error404');
                $this->session->redirect('http://google.de');
                throw new Wire404Exception();
            }
            return false;
        }
    
    }

    I appreciate any help!!! Thanks and greetings,

    Martin

  4. Hey Kongondo!

    Just bought the module! Awesome work!

    Only a little Problem: When using the Admin Theme Reno the Link to Media Manager won't work, because the main Links are not "linked" in the same way as in the regular templates.

    Two questions for my workflow:

    1. Whats the best way to view the image in the frontend? Are there any MediaManager related methods?

    2. Is there currently a way to categorize the images? Sometimes a bit more structure than tags only is even better! ;)

    Thanks! Martin

    • Like 1
  5. Hi,

    I have the same problem as Martin has:

    In our template "padorder" is a checkbox and Sanitizer::purify breaks the order. My version is padloper-2015-6-21....

    Hey J0sh,

    I "hacked" a little workaround into the module file, because I was too lazy to hook into the method! ;)

    Maybe it helps you until Antti has a finalized fix!

    foreach ($form as $f) {
        // Let's be extra careful here, since we can have all kinds of textfields in use
        if (is_string($f->value)) {
            $value = $this->sanitizer->purify($f->value);
            $this->order->{$f->name} = $this->sanitizer->entities1($value);
        } else {
            $this->order->{$f->name} = $this->sanitizer->entities1($f->value);
        }
    }
    

    Greetings!

    • Like 1
  6. Hello Claus,

    you need the following stuff in your template for padloper:

    <?php
    /* Cart Module */
    $cart = $modules->get("PadCart");
    /* Render Module */
    $cartRender = $modules->get('PadRender');
    ?>
    
    <?= $cart->renderPriceAndCurrency($cart->getProductPrice($p)); // Product Price formatting?>
    <?= $cartRender->addToCart($p, true);​ // Add To cart form, the second parameter tells the module if you want to have a input for the quantity ?>
    

    I hope this helps at your problem!

    Best regards, Martin

  7. Hello,

    I try to implement a checkbox into the order process that is required by default. The first step to add it is no problem. But when it comes to saving the order, the purify method blows it away. :( The call for purify is in PadCheckout.module:

    foreach ($form as $f) {
          // Let's be extra careful here, since we can have all kinds of textfields in use
          $value = $this->sanitizer->purify($f->value);
          $this->order->{$f->name} = $this->sanitizer->entities1($value);
        }
    

    The problem is, that the purify sanitizer does not allow the input, that comes from Fields like Checkbox oder Options... :(

    Is there already a workaround in a newer version of padloper or do I make a mistake?

    Thanks.

    Martin

  8. Yesterday I thought exactly about this procedure. I use several modules over and over again. And it's a hassle to download always the same modules, even when it's comfortable with ModulesManager.

    Now I don't have to think further, because you already did it! Great work, and obvious a real time time saver. So it fits perfectly in the ProcessWire galaxy! :)

    Thanks!

    • Like 1
  9. Hey guys,

    first of all, thanks for this awesome extension! I tried already some stuff with padloper, and it's really nice to work with.

    Now I have a small problem with filling the card by ajax. When I'm logged in as admin it works fine, but when I enter the page as guest the Ajax call reports a Error500 on /padloper/ajaxAdd.

    I recognized, that the "add to cart" works neither without Ajax. So the shopping process only works when the user is logged in.

    Is there already a fix for this?

    Thanks,

    Martin

×
×
  • Create New...