-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
[SOLVED] Add class to FieldtypeTable before outputting it
Soma replied to dotnetic's topic in API & Templates
I don't know of any other Fieldtypes that work this way. -
[SOLVED] Add class to FieldtypeTable before outputting it
Soma replied to dotnetic's topic in API & Templates
If you render the value of the field you get the table rendered by class TableRows. It's nothing to do with the Fieldtype or Inputfield render. So you can simply use the render function of the value == TableRows object and add your options. $value = $page->mytable->render(array("tableClass" => "uk-table")); Though nothing wrong with you str_replace. I don't get how that is bad but anyway. -
Well can't say without problems, cause the editor gets really unresponsive and it doesn't save anymore... well. Edit: well looks like it was hanging a lot and after couple minutes I was able to edit again as it seems it finally deleted all files, but it's not made for such large amounts.
- 17 replies
-
- images foreach
- images
-
(and 1 more)
Tagged with:
-
I just uploaded 300 images without problem. Sorry don't know.
- 17 replies
-
- images foreach
- images
-
(and 1 more)
Tagged with:
-
No. Upload via classic upload, or just 2-3 at a time.
- 17 replies
-
- images foreach
- images
-
(and 1 more)
Tagged with:
-
$page->fieldgroup->getField() does work for me. And no, $page->title is a property that does return a string and is not the field object. Since the field is in context of the template/fieldgroup it seems natural you get the field settings through it.
-
That's a bug in PW that's in there since years. I once tried to make sense of it but after hours of try and error I gave up. If you upload a bunch of images (only drag and drop), sometimes images get lost on the way, though they're uploaded they're not saved in DB. All issue reports end up having "not reproducible, needs more information, discussion". Ryan's too busy with new features than trying to track down those (understandable though if you can't reproduce).
- 17 replies
-
- images foreach
- images
-
(and 1 more)
Tagged with:
-
$page->fieldgroup... ?
-
That should help https://gist.github.com/somatonic/8323844
-
To me it's not so much about what chat or community software you're using. Open source or not, It's about focusing on stuff and the community itself. Having people that care and spend a lot of free time to contribute. There's seemed to be a real interest in the discord server I opened (which takes 2 clicks). There's easy way to add channels and voice chat. Lot's of people joined for a couple days and we had some discussion going on. But it seems pretty dead now. ? Something related: I was thinking the other day, how about making a stream on twitch.tv for web devs? I don't know how that would work out, but I've seen there's some doing it already.
-
No. Its a file field not a folder field.
-
Just want to note that in case of multi-instance usage $this->wire("config")->paths->templates != config()->paths->templates So in modules developement you should avoid using function API.
-
IP geolocation and redirect user to their language
Soma replied to Marco Ro's topic in Multi-Language Support
So if im in france ill see the french version and not understand anything and cant change it? Sorry happened to me and got really frustrated and simply left the service. -
IP geolocation and redirect user to their language
Soma replied to Marco Ro's topic in Multi-Language Support
For me it's the worst you can do, and I hate it when I get redirected to a language I don't want. Sometimes you can't even get to another language. Just don't ever do automatic redirection based on anything. -
Or you can even use the class name too config()->scripts->add(config()->urls->{$this->className} . 'scripts/createInvoiceButton.js');
-
config()->scripts->add(config()->urls->RockCRM . 'scripts/createInvoiceButton.js');
-
A friend wrote his own OS from scratch back 15 years ago. He was way ahead of competition and was telling the same things about how bloated and inefficient softwar3 and specially os's are. He's dad run a software company he also worked in but only got doubted and ignored somehow. He kept at it for almost 7 years until he proved everybody wrong. He could do things even seniored software guys got blown away. He's system was so small and efficient and only was about a couple Mb in size that would extract to some gb of data (ofc the apps) . He could install a whole computer network with 50 laptops in about 1m and boot them up all at the same time im 5s from his laptop. He was into clustering and had big things in mind. He's system they used for a central payment system that did run for +3 years without one single restart or outtage or problem. They were so impressed that they ordered more. Sadly he got fired by his own dad because of he work philosophie and had his problems. Unfortunately he died of cancer 11 years ago. His work kinda lost. Makes me sad and not a single day pass by without thinking of him. Yet 10 years later sadly nothing has changed in the industry. I'm so happy there's still people around who care.
-
No it's not fully supported.
-
[SOLVED] ERR_CACHE_MISS error when click back button
Soma replied to Krlos's topic in Getting Started
You should not use "post" but "get" for a searchform. This way it's not trying to resubmit the form. The design pattern when using "post" for Forms usually is PRG https://en.wikipedia.org/wiki/Post/Redirect/Get -
*moved to dev talk*
-
Backend complains about missing values after filling in hook
Soma replied to Susticle's topic in API & Templates
Your hook doesn't tell anything about how you manipulate the data. This works just fine for me in ready.php : $this->addHookBefore("ProcessPageEdit::processInput", function (HookEvent $event) { $form = $event->arguments("form"); if($form->get("lat")) { $this->input->post->lat = 12; } }); -
Something like https://processwire-recipes.com/ ?
-
Importing pages and empting trash incredibly slow...
Soma replied to NorbertH's topic in General Support
I have a ~40k CSV rows import/sync that runs for almost an hour. And it's not even importing, just syncing. If you use the API to load and cycle through lots of pages it is slow, there's no real way around it except doing it in SQL directly. -
Disable A Language Whilst Translators Work On It
Soma replied to swampmusic's topic in Multi-Language Support
Just to correct, if you have edit right and a language or page is unpublished you still can see it if logged in. It's just that maybe something like the language nav that wouldn't show the switch link for that language, but it can be coded to be seen by editors.- 4 replies
-
- 2
-
-
- tranlators
- deactivate
-
(and 2 more)
Tagged with:
-
This return the correct url for me $user->editUrl(true);