Sign in to follow this
Followers
0
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By rjgamer
Hi guys,
the field "redirect_last" of type DateTime got not updated. The update on the field "redirect_counter" works and got saved.
Does anybody know what I did wrong in my code?
if ($input->urlSegment(1) === 'redirect') { $page->of(false); $page->redirect_last = time(); $page->redirect_counter += 1; if ($page->save('redirect_counter')) { $session->redirect($page->website_url, 302); } } Thanks.
-
By theoretic
Hi there! And thanks for Processwire!
I have an interesting task which i cannot fulfill as i want. Maybe someone could help me please?
Let's imagine a simple page structure of this kind:
Category 1
+ Item 1.1
+ Item 1.2
Category 2
+ Item 2.1
+ Item 2.2
My task is to attach some items to more than one category, at least to show some items on different frontend category pages. With PW, it's a piece of cake. I've just created a field called Items (of type Page Reference) and attrached it to Category template. Since i have lots of items inside each category i preferred to use Page Autocomplete input for my Items field. The pages available for autocomplete are restricted by a very simple selector:
template=item
It works like a charm. But later i decided to make this autocomplete even smarter and to exclude current category children items from it. I tried to update my selector this way...
template=item,parent!=(page)
...and oops, this broke my selector. My autocomplete founds nothing. Sorry, i had to replace the square braces by () because of this forum limitations, i swear i'm using square brackets in real-life selector!
What am i doing wrong? And is there any way to include current page info in autocomplete-related selectors? Thanks in advance!
-
By Vineet Sawant
Hi,
I'm trying to import some heavy data into Processwire, but I'm not sure what would be the best way to do it.
Usually I use CSV to Pages plugin, but this time the data is too heavy(~40k rows with 10+ columns of excel sheet), thus this plugin can't help.
I also tried Tasker plugin but I can't seem to go through the setup itself, it requires some template setup but I'm totally clueless about how to do it, so that plugin is not of any use either.
I wanted to know from you guys how you do it and in future what would be the best way to migrate thousands of rows of data in to PW.
Thanks.
-
By hellerdruck
Hi all
I need to export all the texts from a website to a translation company (as json or csv or txt...). How can this be done? Of course manually, but this website is huge and it would take me years...
Also, as a second step, importing the translation ...
Any ideas anyone? Tutorials? Plugins?
Thanks for your help.
-