Jump to content

oliverx

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by oliverx

  1. I created a pull request. Cheers Oliver
  2. Hi Pierre-Luc, first, thank you for this nice module! I added a new variable 'noBackend' which allows to test if the page requested belongs to the backend. As I configure the language for login user explicitly, I wanted to have a possibility to prevent admin pages from being redirected, without using a GET parameter. Shall I send you a patch? Cheers Oliver
  3. Thank you for clarification, @soma! I solved my problem by creating an 'ajax' template which contains my code and a page using this template that is a child of a hidden tools page. So this is something along the lines of what @SteveB described. Cheers Oliver
  4. Just adding and summarize again: Like @owzim above described, I setup: a ProcessModule named ProcessSlider created an admin page 'slider' with the above Processmodule assigned I set the permission of the module (getModuleInfo) to 'page-view' the '___execute' method delivers my ajax requested html content the page get called by '/admin/slider/?pageid=<id>' So my question is: Why I keep getting redirected to login page, when not logged in as superuser? I was under the impression, that setting the module permission to 'page-view' is sufficient. And technically speaking, I'm always logged in as guest, if I'm not logged as someone else, am I not? To clarify, I don't want to extend my admin interface, just want to deliver ajax content to everyone that looks up that particular page. Regards Oliver
  5. Hello all, I know this topic is pretty old, but hopefully there will still be an answer. I have a page that reloads some images by ajax call to be used in lightbox slideshow. So I took the ProcessHello module from Ryan and adapted it as he described. I then created a page under admin with the admin template and assigned my processmodule. Put my code in the ___execute() function and off it went: public function ___execute() { $pageid = $this->input->get->pageid; $page = $this->pages->get($pageid); $out = "<div class='sliderContainer'>"; $out .= "<div class=\"royalSlider rsDefault sliderInLightbox\">"; foreach($page->solution_img as $image) { $out .= "<a class='rsImg' href='{$image->url}'></a>"; } $out .= "</div>"; $out .= " <script> jQuery(document).ready(function($) { /* initialize slider as usual */ $('.sliderInLightbox').royalSlider({ imageScaleMode: 'fill', keyboardNavEnabled: true, video: { autoHideControlNav: true } }); }); </script> "; $out .= "</div>"; return $out; } However, only when I am logged in as admin. As a guest user, I get redirected to the login page. Is this supposed to be for admin tasks only? Can I have Processmodules in userspace? Or should I go the way SteveB described? Regards Oliver
  6. Thank you for your quick answers. LostKobrakai was right, it had nothing to do with permission but was a multilanguage problem. I was under the impression, that the default language, being english, is somehow carved in stone. Because I wanted german to be my default language, I therefore installed german, made it hidden and locked, so that it would not appear in pages. The trouble started as I configured the guest user to use that hidden language. Now I have deleted german as a separate language and dropped the german translation files onto the default language. That seems to work so far.
  7. Hello, I develop a site with processwire. It's my first one with this cms and so far I like it very much. However, I get a strange behavior. In Firefox, I get a blank root page when not logged in as admin. Getting a sub-page is no problem. Apache access log shows a 404 error. In Chrome, I always get a blank root page, no matter if logged in or not. Getting a sub-page is no problem. Apache access log shows a 404 error. The site is not in /var/www but below my home directory. My apache config looks like: <VirtualHost *:80> ServerName af-processwire.localdomain ServerAlias af-processwire ServerAdmin oliver@localhost DocumentRoot /home/oliver/workspaces/audio-frames/processwire <Directory /home/oliver/workspaces/audio-frames/processwire/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel debug CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> My config.php (What I think is relevant): $config->chmodDir = '0775'; // permission for directories created by ProcessWire $config->chmodFile = '0664'; // permission for files created by ProcessWire $config->httpHosts = array('af-processwire'); Permissions are: owner: oliver (me, with write access) group: www-data (Apache, with write access) What's going on here? Is this something of a rooting problem? Regards Oliver
×
×
  • Create New...