-
Posts
217 -
Joined
-
Last visited
Everything posted by Vineet Sawant
-
Alternative to creating pages for temporary data storage
Vineet Sawant replied to Vineet Sawant's topic in Getting Started
Hi diogo, I was thinking about the notifications that PW's admin theme uses. I guess you are talking about the same thing, ain't you? I will try your suggestion on a staging pw installation. Yesterday I gave up and wrote sql queries (which I absolutely hate to do) to store all the activity in a table called activity. Then once they are shown to user, I change the activity status to read from unread. Since it's a different table, I don't have to worry about wasting page ids. Thank you all for your inputs. -
Alternative to creating pages for temporary data storage
Vineet Sawant replied to Vineet Sawant's topic in Getting Started
What exactly is WireCache and where can I read more about it? Yes, I guess I should make a table to store notifications. -
Alternative to creating pages for temporary data storage
Vineet Sawant replied to Vineet Sawant's topic in Getting Started
Thanks for your reply renobird. No, topics are permanent unless owner of the topic deletes it. The temp pages are for notifications which I want to give to the owner of the topic if someone comments or does any of other activities like adding post to favourites etc. So basically, it's like facebook's notifications. Consider you post a photo & people are comments & liking the picture, how am I to give you notifications? I've to store all this comments/liking activity somewhere right? I've figured out a way to store comments & likes, it's just the notifications of it, which is a temporary thing, that I've to figure out. It can be done by creating temp notification pages and add them to a notifications page array field of the post and then just check the notification status and show user the unread pages as notifications. But this way I'm wasting hell lot of page IDs. Which would be an inefficient thing to do, right? So that's where my question comes from, how do I manage temporary storage? May be PW should provide temp pages other than usual pages with all the same features. Sorry for the long story. -
Hello everyone, I'm creating a large scale application which will be used by thousands of people. Part of of the application requires storing temporary information about user's activities. For example, if user comments on certain topic, notification of same should be given to OP and people following the topic. I thought I'd create a subpage with a repeater field having few fields like user id, timestamp & notification status, read/unread (I just don't see why using page table is better in this case, if someone can enlighten me, that'd be great.). But I've read that every repeater item is same as new page, so I'm really confused whether I should just start keeping temporary pages or use a page with repeater field. But for every topic, there can be hundreds of notifications, which I think will be a problematic situation in future. So I am looking for any kind of temporary storage that will not included creating pages. Writing logs to file could be done but i'm not sure how good solution is that and how reliable it'll be. I'd really like a good conversation with someone who understands PW, so I'm here. Thank you all.
-
Hello, I've a requirement where I need to have a list of pages using same template available on a page (site settings page) through page field. Basically what I need is, whenever a new page of specified template has been created, it should be automatically added to that pages list, just like home page has children. For example, I've a template called article. Articles are posted under /blog/ page. I've a site settings page which has a page field called articles_list which I use to manage articles list on some other page. This way I can manually chose what articles I want to show and in which sorting order. There's no specific sorting logic to this. So what I need is, whenever a new article is posted, it should automatically be appended on that articles_list page field so the site moderator can manually change the sorting without having to add page himself and then select the sorting. I've this weird requirement cause the site moderator can't see which new article has been added to the blog, he's just allowed to set the sorting. I hope I've clarified the requirement. I think I can use admin custom pages but it for some reason never worked for me. Thank. P.S. Forgot to mention that to add post or any other related task, I'm not using front-end, it's all through PW's admin panel.
-
@renobird, @BitPoet $json = file_get_contents($config->urls->admin.'page/search/for?template=basic-page'); This was the code I was looking for so I guess its is ProcessPageSearch that I was looking for.
-
I think I'll have to dig up my old machine and find that code. :/
-
Hello, I remember recently using processwire's built-in json API in one of the dev builds. I can't seem to find any kind of documentation of that now. Since I switched my machine, I can't even find that code again.(I've been searching for hours) Can anyone please point me or provide me any clue about the above said json api? It worked something like this: If you need to find any pages using template basic-page, you can get it as follows: http://example.com/processwire/?template=basic-page hit above and it'll return the json output. Thanks.
-
Processwire on AWS - routing issue
Vineet Sawant replied to Vineet Sawant's topic in Getting Started
Actually I've tried that already, no luck- 3 replies
-
- aws
- processwire
-
(and 1 more)
Tagged with:
-
Hello all, Hope you all are enjoying your weekend. Recently I shifted all my projects to Amazon's web service running a default ubuntu installation. We got almost everything working, some Drupal installations & Laravel etc. Even Processwire got installed correctly but it's just showing home page and nothing else. For example, I've a task management system that I use for personal projects management. It was working fine on my old hosting but on AWS, it's not showing me any pages except for static home page. If I try to access any virtual page or even the admin panel, it just shows me blank page with default HTML. I tried re-installing & fresh installations as well but it's still not working. Is there any specific change I need to make in HTACCESS? Thanks for your help.
- 3 replies
-
- aws
- processwire
-
(and 1 more)
Tagged with:
-
ProcessPageDelete Modules Manager Fieldtype Select MarkupSitemapXML ProcessForgotPassword
-
Hey, I might be able to help you, I love working on front-end. I've a good experience of working with PW, Textpattern, Drupal & Wordpress. Here's blog Let me know if I can help. Have a great day.
-
TL;DR : I'm looking to create dynamic forms which will take fields list from given template & create/save pages dynamically. Hello, I've been using PW for a while for creating web applications like ERP systems and similar applications which have tons of forms. So far I've been creating, processing & validating them manually. While researching I found this link which I found to be very helpful. Code given in that example allows user to create a form based on the fields of any page and save it, which is very cool. Based on that code I tried doing something like this: $p = new Page(); $p->template = "mytemplate"; //I've added few fields to this template $p->parent = "/someparent/"; $p->of(false); // make a form $form = $modules->get('InputfieldForm'); $form->method = 'post'; $form->action = './'; // add the page's fields to the form $form->add($p->getInputfields()); // add a submit button to the form $submit = $modules->get('InputfieldSubmit'); $sumit->name = 'submit'; $form->add($submit); // process the form if it was submitted if($input->post->submit){ $form->processInput($input->post); $p->name = date(dmYhisn); $p->save(); } It did create a page but without any data. I know this could be a very stupid thing to try, but I guess it was worth it. More research taught me that probably using ProcessPageAdd module I can create new pages. But I don't know how exactly that works. I'm looking for some guidance about modules & their use on fron-end. Thanks.
-
Thanks Pete. Are you talking about form serialization? That sounds like a cool concept that I should learn more about. Also, I've been reading few forum posts about using admin panel on public side. Is there anyway we can use admin panel with some more customization? Like there are times when field depends the input of the previous one. I'm not sure how can that be done on admin side. For example, in my invoicing system, when person is adding new client, he selects country, based on selected country, next field shows list of states, this goes same for cities and locality. Can we achieve something like this in admin panel? Even achieving this will help a lot and will reduce lots of work. EDIT: link updated with a better example!
-
Hello, I've been using ProcessWire for over a year now. It's wonderful to work with ProcessWire and enjoy the freedom it provides. I've used PW for tons of projects and now I've started using it for much complex projects such as invoicing applications and PM tools. The only problem I've faced so far is creating public side forms with tons of fields that need validation and processing. I've been doing it manually, writing jQuery validations, form processors and then using PW's API to store information coming from client side. It works but takes a lot of time. A friend of mine uses Drupal, he seems to be able to create client side application of same sort without having to manually process any form, with AJAX support too. I'm not complaining in anyway. I'm well aware that PW has a very strong backend that works just like(for me, even better than) Drupal. But it can't be given to public/client to use for doing form related works. I'm interested in knowing how others are handling this and what I'm doing wrong exactly? Have I missed something? I'm just looking to find a way to make forms processing less and less manual. Like I'll just create a template with set of fields, and some way to have a form of those fields created. Just like it happens at admin side. Thanks.
-
Project Management for Developers: How you do it?
Vineet Sawant replied to Vineet Sawant's topic in Pub
Hi Beluga, Thanks for sharing that link. Very interesting. I've made a basic PM tool using PW, I'll be expanding it little more for a client's project. I'll post it here once it's ready. For now it's just a simple task management system. If anyone's interested, feel free to contact me, I've a demo online which I'm using to manage my company's projects. Have a great day! -
@Ryan, Thanks Ryan. Right now I'm running two different installations of ProcessWire on same hosting, one is for their site and another is on a subdomain for the invoicing system. I'm definitely never going to run WordPress there as just like you described, I'm aware of possible security threats that WordPress comes with. @Zahari Majini, I like Siteground's Grow Big account, I've been using it for a couple of projects. That's a good one for all the premium services they've to offer. @all, Thank you all guys, I like how great this community is. A simple question leads to such knowledge sharing. Fortunate to be part of this community!
-
@Zahari Majini, hey, that's a really good read right there. Thanks for sharing, I really appreciate it. @all, Considering all the VPS vs Managed hosting solutions, their pros & cons, I've decided to just stick with managed hosting where there's a team of managers who are dedicated to manage my hosting. It'll be better for everyone I suppose as I'm a designer, I love to design, installing updates on server or adding new rules to firewall already sounds too technical to me, I'm better doing designing I've checked a few services. Siteground has always been my favorite one and their support is awesome. So I was thinking to upgrade to their dedicated hosting in near future. Just wanted to know any feedbacks about Siteground, has anyone had any issue with their service? I know I'm taking this little away from the actual question, sorry about that.
-
@Netcarver, Thanks for the great info.
-
Hello netcarver, You've got a point about forcing users to change their password frequently, I agree completely, cause I do the same myself. I've to really checkout your 2 factor authentication module. I was about to write my own mechanism but I guess you've saved me the effort, thanks a lot for that! About the VPS, would you suggest using AWS instead of shared hosting? I'm not very bright when it comes to hosting! Thanks a lot for the module & suggestion, I really appreciate your help!
-
Hey cstevensjr, thanks for your reply. Having Data Access Policy as well as disaster recovery plan is something I should be giving added attention to. Right now there's no written document of how the data should accessed or handled and a very basic disaster recovery plan as I've just implemented the system and it's being used by just the main branch, others will start using it once main branch gives it green signal, but that's going to happen very soon. I've set up Text & mail alerts for errors, system failures and invalid data entry cases where the forms are well validated. More will be set up once I collect more information as well as understanding about system and it's possible use as well as abuse. Both of these statements are very true, completely agree with you! Thanks again and have a great day!
-
Hello Craig, Thank you very much for your answer. I suppose you've covered almost everything, this should be a standard security checklist. Right now the system is on shared hosting, but we'll be moving it to VPS probably (if client agrees to pay for that ). I've already set roles so employees can only see the content created by them and allowed to them. Also the content editing has been restricted. I've used sanitizer for forms. I've to read more about CSRF protection. 2-factor authentication & forcing passwords change every alternate week is something I should be implementing on priority. Thanks again for teaching me new things today. Have a great day.