-
Posts
7,529 -
Joined
-
Last visited
-
Days Won
160
Everything posted by kongondo
-
@celfred, regarding the optimisation, yes, please start a new topic. I, for one, I am curious why you have to load 5000 pages! .
-
URL Segment showing 404 when i tried to open page in browser
kongondo replied to Junaid Farooqui's topic in Dev Talk
By the way, strtok can lead to some unexpected results. Try this: $name = $sanitizer->pageName(strtok('about-us.html', '.html')); echo $name;// outputs 'abou' $name = $sanitizer->pageName(strtok('around-us.html', '.html')); echo $name;// outputs 'around-us' So, you might want to use something else (replace or regex, etc)- 6 replies
-
- 3
-
-
- seo
- urlsegment
-
(and 1 more)
Tagged with:
-
URL Segment showing 404 when i tried to open page in browser
kongondo replied to Junaid Farooqui's topic in Dev Talk
What @Robin S said. Good idea to sanitise that name though . I'm sure Robin just forgot. $name = $sanitizer->pageName(strtok($input->urlSegment1, '.html'));- 6 replies
-
- 1
-
-
- seo
- urlsegment
-
(and 1 more)
Tagged with:
-
URL Segment showing 404 when i tried to open page in browser
kongondo replied to Junaid Farooqui's topic in Dev Talk
That's because a dot (.html) is not considered a segment (I think?). Segments take the form of /a/b/c/, i.e. separated by forward slashes. I am not sure whether using the regex feature would allow for this. Have a look here. A different approach here as well:- 6 replies
-
- 1
-
-
- seo
- urlsegment
-
(and 1 more)
Tagged with:
-
Not sure about that one. Could be something to do with your server's time. It's hard to tell without knowing exactly how he's pulling in the facebook feed. Please start a new topic/thread regarding that question, thanks.
-
Hi @Eric7, Welcome to ProcessWire and the forums. Have a read here:
-
Disallow accessing page using template via it's url
kongondo replied to LimeWub's topic in General Support
There's a couple of approaches Unpublish you block pages: You will still be access them via the API with include=all in your -Page template. You would have to handle 404s in this case Redirect: Redirect access to block pages to -Page. SEO issues? Etc...(I've gone totally blank but there should be another strategy, I think ) -
Hmm...Tracy would have caught it, I believe .
-
I assume then that you did not have a debugger on then? . Would have saved you some headache.
-
Did you remember to activate pagination for the template of the page where you are using pagination?
-
So there's your problem then; $adresse_id is not being passed to callAdresse.php, for some reason. I've tested and it works just fine in my case. Edit Not sure where to go from here. Do you have a typo somewhere maybe? Debug errors?
-
Well that's strange. Hard to tell what's happening without seeing the whole context. Just to confirm, when the form is displayed, is the value of $adresse_id correctly output?
-
I was not referring to the display since you clearly stated the form displays. The issue is the other side, the server-side. I have never tried it, but I am not sure you can post to a relative URL like that. What is the server response (dev tools) after you post? What happens if you post to the full URL instead? i.e. /something/adressdaten/
-
Your form's action value does not look right: <form name="myform" id="myform" method="post" action="../adressdaten"> What is adressdaten?
-
Did u see this as well?
-
Hi all. For a while now been wondering how many would be interested in a backend and frontend shop catalogue built on top of PadLoper? I've previously spoken to @apeisa about this and his take is that there are no plans to develop PadLoper in this direction but he's happy to support such efforts. The gist of the backend shop catalogue is to provide one place (think ProcessModule) where you can manage your PadLoper products - add, edit, delete, track sales, etc without having to set up the underlying structure yourself. The frontend would be like a shop/webstore profile, a frontend cart basically, that's customisable. The shop would be 100% powered by PadLoper. This means that to use the 'shop catalogue' would require that PadLoper is installed. These are just loose ideas at the moment for a pro module. This might or might not see the light of day depending on feedback. Anyway, would love to hear thoughts, thanks.
- 10 replies
-
- 15
-
-
Updating $pages query via AJAX (for filters etc)
kongondo replied to a-ok's topic in General Support
ProcessWire will not allow you to directly access .php files in various folders, including /site/... See that post for the options available to you. -
Released: PadLoper (commercial eCommerce platform for ProcessWire)
kongondo replied to apeisa's topic in Modules/Plugins
I'll let others, especially @apeisa, chime in with more thoughts but I can attest that: Yes I am not sure, but I think it can be done Yes For all of the above, you would need to write some code. Nothing out of the box. For #3, see example here. -
Released: PadLoper (commercial eCommerce platform for ProcessWire)
kongondo replied to apeisa's topic in Modules/Plugins
There's a couple of showcased sites in the forums. RE frontend, there's nothing really like this is how a PadLoper shop would look like. This is because PadLoper is like ProcessWire - it gives you the tools to build whatever you want. My shop (see sig) uses PadLoper...but that is not a PadLoper template since nothing like that exists (although PadLoper ships with example template files to get you started). Backend: There's a couple of stuff that need to be setup (shipping, etc), but also, no, there is no online demo, to the best of my knowledge. -
Released: PadLoper (commercial eCommerce platform for ProcessWire)
kongondo replied to apeisa's topic in Modules/Plugins
Yes. You have 30 days -
Released: PadLoper (commercial eCommerce platform for ProcessWire)
kongondo replied to apeisa's topic in Modules/Plugins
Yes and Yes (last updated 12 Jan 17) . -
Updating $pages query via AJAX (for filters etc)
kongondo replied to a-ok's topic in General Support
Nothing dumb about the question. Of course you can still manipulate the $pages query per click. That's what you do here: if($config->ajax) { // process $trainingDetail here.. // ...some code // you page query here $results = $pages->find("template=basic-page, limit=10, sort=$trainingDetail"); foreach($results as $r) $array[] = $r->title; echo json_encode($array); exit; } // in JavaScript, do something with the JSON You need to be careful though about the server load in case there will be lots of ajax requests. Caching, client and/or server-side mitigates against that. Example Ajax request + $pages query in the Gif here.