Jump to content

IkBenBen

Members
  • Posts

    12
  • Joined

  • Last visited

IkBenBen's Achievements

Jr. Member

Jr. Member (3/6)

0

Reputation

  1. Thanks for the reply. I tried with the hooks but don't know how to use them (even after reading the documentation). Where do you place the "hook"?
  2. Hi all, I know this has been asked and answered multiple times... but I'm still having a hard time understanding this so forgive me for asking. In two parts of my website I would like to ignore the parent page and change the URL structure from: /services/list/page to /services/page and /articles/list/article to /articles/article How do I accomplish this? I'm sure the solution must be really simple. But for me being a beginner PHP coder, I just can't seem to get my head around it. Thanks in advance!
  3. Thanks. I tried adding/changing the content, but it also doesn't help. Where can I find the error log about the homepages?
  4. To answer your question anyway: Language paths are set and active and frontpage also has no child with the name "en".
  5. Thanks for your reply. Unfortunately there are no files in that cache.
  6. Hi all, I built a multi-langual Processwire (2.5.2) site 3 months ago and it was recently brought to my attention that the other languages for the homepage are not working anymore (showing a 404 not found). website.com <-- works website.com/en/ <-- does not work website.com/de/ <-- does not work website.com/anypagehere/ <-- works website.com/en/anypagehere/ <-- works website.com/de/anypagehere/ <-- works The problem is only on the homepage. If you go to any other page and select a different language from there it shows the right page (although when you click from another language on home, you're being redirected to the homepage in the default language with the default url: website.com/ ). I haven't changed anything since I built the site. I noticed that when I change the language under the homepage to anything but en or de, it works. For example website.com/en/ doesn't work, but website.com/e/ or website.com/sdksdssd/ does work (and shows the English translation). The problem lies with the en and de names. Does anyone know how to fix this?
  7. Sorry if this has been asked before but had no luck finding an answer so far on the forums, so here I go! I made a list that shows all the languages which works perfectly. My question now is, how do I exclude the (user's) language that's currently active from the list? For example, I'm viewing the English site, how do I exclude English from the list... Dutch English German ... so it only shows... Dutch German ... and when viewing the Dutch site excluding Dutch, when viewing the German site excluding German.. etc.. This is my code: <?php foreach($languages as $language) { if(!$page->viewable($language)) continue; // check if page not published for this language $url = wire('page')->localUrl($language); $title = $language->getUnformatted('title')->getLanguagevalue($language->id); $name = $language->get('language_name'); $location = $config->urls->templates; echo "<li>$title</a></li>"; } ?> Just started with Processwire so forgive me for asking a stupid question! Thanks in advance!
  8. Thanks. Still didn't work though. I guess I'll try to set something up myself using the code provided by Ryan here >
  9. Thanks cstevensjr so far for your help. I tried installing the module manually and through the Admin backend each about 10 times to no success. The module seems to not get noticed by Processwire. I sent Khan a PM but noticed he hasn't been on the forum for a few months so I hope he will see it in time. I will rewrite my problem more clearly just in case someone else is able to help me (and maybe others who will read this) get this module to work. I first succesfully installed the required dropdown module. Method 1) When I go to Admin > Modules > New and type in the class of "FrontendUserProfile" the module is found. I have the option to download the module. I get the confirmation "Downloaded ZIP file: https://github.com/orkhan/FrontendUserProfilesPW/archive/master.zip" and "Successfully copied files to new directory: /site/modules/FrontendUserProfile". I now get the message "FrontendUserProfile is ready to install" and a button "Install now". I click the button and am being redirected to the Admin > Modules > New page. The files are installed on the server but the module doesn't appear in the list with other modules I installed on the Admin > Modules > Site page. Method 2) I download the zip file from the Processwire website, unzip it, and upload it to the server with FTP. Then I go to Admin > Modules and click "Check for New Modules". None are found.I guess something is wrong with the module being noticed by Processwire or something. Does someone (with experience in building modules) maybe know how to fix this? I'm looking forward to using this module. Thanks in advance! Ben
  10. Sorry forget to mention that. Yes I had that one installed before I tried to install this module.
  11. Hi all, I'm new to Processwire and love it already (for someone without much PHP knowledge it looks understandable). I've been trying to install this module but with no success. I tried installing it through the Modules section in the back-end, and by downloading/uploading the files through FTP, but both methods don't work for this module. When I try with FTP I can't see the new module (after clicking "Check for new modules"). When I try through the Modules section in the back-end the files get downloaded and I can install the module. Once I click the button "Install" I'm being redirected to the modules page, but without getting a green confirmation (or error messages) at the top of the page, and the module is not in the list of other modules (although the files are succesfully downloaded onto the server). I'm using Processwire 2.4 (downloaded a week ago from the main website) and I'm using the latest version of the module (downloaded yesterday). I've already successfully downloaded and intalled some other modules (through FTP and through the Modules page). Does anyone knows how to fix it?
×
×
  • Create New...