Jump to content

Search the Community

Showing results for tags 'pw'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. Hello, Processwire its present in Cpanel's Softaculous https://www.softaculous.com/apps/cms/ProcessWire But It's not present in Plesk APS. I think it's a good idea to create such aps and sent it to plesk for including them in their aps system. here is some info that I found. http://download1.parallels.com/Plesk/Doc/en-US/online/plesk-aps-overview/index.htm?fileName=69262.htm http://doc.apsstandard.org/2.1/start/ http://kb.sp.parallels.com/en/115664 anyone has any experience creating aps packages?
  2. http://isit.pw/?url=www.processwire.com Oddly tells is not using processwire
  3. As you may know Wordpress is famous for the diversity of its themes. Should Processwire begin promoting the creation and possibly selling custom site profiles. like wordpress themes a site profile will have all the configurations for ready to go websites. this could enable a masification of processwire for people that wants a simple solution pre configured and working out of the box.
  4. Hello, I was thinking that some modules use custom fields. The problem is that they could conflict with already existing fields on the site. example: you module wants to use a field named "category", but the site already stores a "category" field that has a different implementation, other field type, etc. The solution I think is simple, just add a prefix to the fields that the module uses. three letters and a underscore before the field name. example cls_category But its prettier to call "$module->category" than "$module->cls_category" This will be solved using a simple module just for hooks that is installed alongside our module. $wire->addHookProperty("Page(template=cls_mymodule)::category", function(HookEvent $event){ $page = $event->object; return $event->return = $page->cls_category; }); We are adding a property hook that simplifies the field name. This way it can be called like $module->category also the template names are prefixed. Please tell me if there are other ways thanks.
  5. As some may now, the admins on tuts plus declined making a course on processwire :C Here´s the link http://tutsplus.uservoice.com/forums/248750-what-would-you-like-to-learn/suggestions/6769150-using-processwire-for-web-development So, Maybe we should make our own course?. I found this website for making such courses. https://usefedora.com/ I hope someday, more people will know the joy of processwire
  6. Hello friends, I have been using the wireRenderFile() function a lot. Since the inclusion of the wireRenderFile() method I made all my websites using this pattern. This is a medium post that I made explaining it. https://medium.com/@clsource/the-wire-render-pattern-806bf6d6097a?source=featured---------1 All the files will be uploaded here https://github.com/NinjasCL/wire-render-pattern
  7. Hello, i am developing one web application in PW and my customer want to know that does PW support all security measures in OWASP? this is just for their website security and they want to be sure that their CMS is safe. i hope many of you are aware of this and help me in this. Thanks
  8. 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.
  9. Hello, I'm Just wondering if the Newsletter system is made in Processwire or they use other solutions. like mailchimp. I think should be a fun project making a newsletter system, that powers the processwire newsletter. Using systems like http://mandrill.com/ making a newsletter app becomes more straightfoward I think.
  10. Would be extrememly interested to hear if many people work on PW sites with git and what setups / strategies they use? Thanks
  11. Hello, Today a client told me he want a site similar to this http://thecoffeekit.com/ Yes, my first option is PW of course. but I'm wondering what tools can be used. For those who don't speak spanish the site is a subscription based service that brings you coffee to your home or office. so they have this page http://thecoffeekit.com/orders/802BA39F/pricing?plan=PLAN-500G when you select how much coffee you want, get the price and then select your product. anyone knows a jquery plugin, or share some suggestions or thoughs? I would really appreciate it thanks
  12. I am a complete noob in PW and have zero knowledge on how to use bootstrap. Just installed a fresh installation of PW with pwbootstrap3 site profile. GF's dad ask me to make a website on their new company. Pretty basic business website. Tried Wordpress and can't figure out how to make my own themes as GF's dad told me a specific design layout of the front end which is freakin hard to do in WP for a noob like me. Using a theme with bit of css modification in WP makes me feel highly unsatisfied still with the results. Had to finish the site for atleast in 2 months time. Where can I find a complete tutorial step by step guide on how to make a website using just PW or with pwboostrap3 site profile? So I can make the website quick. Preferably, the type of tutorial that will just shove the steps straight on my mouth. GF's dad look up to me like a PRO I.T. Highly Extremely Pressured.
  13. Hello, I think that an option inside templates that could limit the number of childrens that a page could have, maybe is useful in certains conditions. it´s that possible or I have to rely on hooks? thanks.
  14. Hello, I always put some kind of prefix to fields like some user fields usrFirstName usrLastName but I would like to name them more like firstName lastName so when using a page like this $user = $pages->get('/users/clsource'); I can do this $user->firstName and not this (more ugly way) $user->usrFirstName Yes I know this is already possible, but when you handle a lot of fields, some fields collide with the same name but with different output and format. Is there a way to make a namespace or something, so using prefixes is no longer necessary? In PW you can organize fields inside categories, could be that I can have multiple fields with the same name, but whitin different categories. and see them sorted inside the template field selector by categories? Thanks!.
  15. Hello, since my post about RESTful Processwire https://processwire.com/talk/topic/7159-rest-helper-for-processwire/ was quite popular (thanks for showing it in the newsletter by the way ) I'm planning to include some of the helper code inside the PW core and then make a pull request in the hopes that merges with the current dev branch. So far I have identified 3 files that I should modify /wire/core/WireInput.php So I can add a "params" method in order you can have any params for any request method get post, put delete etc. /wire/core/WireHttp.php So I can add method to send put delete patch requests, etc. and get JSON output /wire/config.php So I can add more fieldContentTypes and Header types for the response. In the same file however, you got this /** * ajax: This is automatically set to TRUE when the request is an AJAX request. * */ $config->ajax = false; Where I can find the code to set this? So I can add $config->post = false; $config->get = false; $config->put = false; $config->delete = false; And set them when a page is requested when a verb is used to call an endpoint. Thanks!
  16. Hello, I have the following question. I want to separate a big system into smaller sub systems, each with a separate pw setup. The question is: how can I access the wire('pages') of another pw installation?. example: a big system that handles users and mail sending. the users system "A" is a pw setup in directory users/ the mail sending system "B" is another pw setup in directory mails/ both systems are in the same machine and directory. inside the "A" system I want to know how many emails an user have sent. so the "A" system request this information to the "B" system. It is possible to just import index.php from system "B" and access its wire('pages') variable? or the only way is using something like a REST API?. Thanks in advance.
  17. http://www.owengildersleeve.com/ - illustrator (built by CodeByBoy and edited by myself) http://ciaraphelan.com/ - illustrator (built by CodeByBoy and edited by myself) http://thehackneypeddler.co.uk/ - vintage bike shop (built myself)
  18. Hello to everyone in here I was browsing around on your forums and can see that the best way to get the answers to my questions seems to be just making a post and asking! I am looking into creating a villa rental website and have fallen in love with http://www.villasofdistinction.com/ which I found out have been created using PW! I have basic knowledge of HTML but no real knowledge in programming in more details and more complicated, hence the reason why I wanted to ask if PW is something that I will be able to use? I believe that when creating a website containing several villas in different areas the best way to do this and to allow customers to browse and search through the villas based on different criteria, PW seems to be the right place to go. BUT would this be something I can do? Or does it require a lot of programming knowledge and I would be better off trying to use Wordpress, Joomla or such? I look forward to hearing your opinions.
  19. Introduction Dear community. As some of you may know I've been busy creating a MVC Module for Processwire. I've finished quite a bit of it and I am now ready for a tutorial on a quick website to get you started! For this tutorial I am using a clean install of Processwire 2.3 and my Module 0.2.4 Get the module at Github http://github.com/hawiak/mvcmodule . Main focus of the module is to split logic from design without losing the flexibility of Processwire we all fell in love with. Alright lets get started. Installation Once you have the module downloaded we are going to install it, we need the MvcModule folder in the /site/modules folder. And we need the AppController in the /site/templates folder (You can find the AppController in the /site/templates folder) Once you've put the folder in there we are going to install the module, check for new modules and you'll see MvcModule Click on it and hit install to install the module. Once you've installed the module you'll see some configure settings and you'll notice a new tab on your admin. But click submit, dont forget this or all the paths WONT WORK! Setting up your home controller Ok we are ready to set up our first controller. To easily set up your template to enable MVC we are going to the MVC tab in your navbar. You'll notice a button saying " Create controller" Click on "Create controller" and for this tutorial we are going to use the home template, select the home and click "Create". If everything is correct you will see this: Now we are done in the process side of it and we'll get into the coding. Get your favourite code editor open and lets create our controller. Open the /site/templates/home.php file in your editor. Remove the code thats in there completely. And save it. For the module to work with the template file we need to create a class called HomeController and extend AppController. like so: <?php class HomeController extends AppController{ } Creating Views and layouts If you go to your websites homepage you'll see something along the lines of: Thats because by default you will need an Index method, a home method for your controller, so lets create one! <?php class HomeController extends AppController{ public function index(){ } } Lets try it again! Oops... Well it seems like we're missing a view, so lets create the view, we first need to create a folder with called Home (the same as the controller name but start with capital) And in that folder we'll create a file called index.tmpl Now of you run it you'll see that you are not quite done yet you'll see something like this: I promise after we create the layout we are done. So lets create a folder called layouts and a file called layout.php in there. Displaying data Now we're done with the setup and we can start coding, lets say you want to get the content fromt he field body on your page displayed? Well thats easy put this in your index method. $this->set('body', $this->page->body); What this does is that it sets a variable in the view we can use called body so all we need to do to display this is go to our view. And add {{body}} to the view. Now go and refresh your page! oh wait... nothing shows up...? Oh yes we use Twig template engine we need to add this to our layout.php {% block view %} {% endblock %} (Yes yes I know its complicated for just a simple task but trust me you'll love it later!) Refresh your page and check it out! You'll see that the text is displaying but the markup isn't really working, we need to use the |raw extension in order to make this work, so change the index.tmpl content to this {{ body|raw }} Use |raw for all the HTML markup, always. Styles, scripts and snippets Now this is quite boring, I know but lets start doing some interesting stuff, lets implement Bootstrap! go and download bootstrap at getbootstrap.com Once you've downloaded create a folder in /site/templates called "assets" the dist copy the bootstrap.min.css out of /dist/css to /site/templates/assets/styles and /dist/js/bootstrap.min.js to /site/templates/assets/scripts/ Now we want to use this, MvcModule has some great options for this! Change your HomeController to this <?php class HomeController extends AppController{ public $scripts = array( '1' => 'bootstrap.min.js'); public $styles = array( '1' => 'bootstrap.min.css'); public function index(){ $this->set('body', $this->page->body); } } Now go over to your layout and change the contents of your layout to this: <head> {{ this.render_headers()|raw }} </head> {% block view %} {% endblock %} You'll now see your style (If not try going to the MvcModule configure settings and remove the first / from /site/templates/assets) Now we forgot to include JQuery, so lets download jquery at jquery.com We need to put that in the /site/templates/assets/scripts And we need to put it in the array, you can just do that as follow: public $scripts = array( '2' => 'bootstrap.min.js', '1' => 'jquery.min.js'); The number in this array indecates the order on which the scripts will be loaded. Now you should see something like this! Now lets create a navbar with all the pages using the bootstrap navbar component. To do this we will create a snippet create a folder called snippets in /site/templates and a file called navbar.php Lets first create a variable with all the pages in the index method $this->set('menu', $this->pages->find('/')); Lets now create our snippet, lets just create this first in our snippet navbar.php <nav class="navbar navbar-default" role="navigation"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> </ul> </div> </nav> We need to tell the controller to use this snippet we do that by using an array. Change your controller to the following: <?php class HomeController extends AppController{ public $scripts = array( '2' => 'bootstrap.min.js', '1' => 'jquery.min.js'); public $styles = array( '1' => 'bootstrap.min.css'); public $snippets = array( 'navbar' => 'navbar.php'); public function index(){ $this->set('body', $this->page->body); $this->set('menu', $this->pages->find('/')); } } And change your layout to this: <head> {{ this.render_headers()|raw }} </head> {% block navbar %} {% endblock %} {% block view %} {% endblock %} You see that I created a block here and called in Navbar. The snippets content (that we assigned to navbar => file_name) will be put in this block! So lets now use our variables and the Twig template engine to the fullest! Change the navbar.php snippet to: <nav class="navbar navbar-default" role="navigation"> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> {% for item in menu %} <li class=""><a href="{{ item.url }}">{{ item.title }}</a></li> {% endfor %} </ul> </div> </nav> You see we use a for loop here and use the PageArray menu here and generate the menu here. You can use the variables in the view as well. Setting a title Lets set a title, this is fairly easy, lets define a variable in our controller that will be the same for every view in this controller public $title = "Home controller"; Now go to your layout.php and do add this to the head: <title>{%block title %}{% endblock %} {{ this.controller.title }}</title> Now as you can see we created a block, what this allows us to do is create the same block in the view like this: {% block title %}Index{% endblock %} And you will see that your title is "Index Home controller". This is because the title block replaced the title block in the layout file. Views Inside views you still have access to processwire objects and even to the MvcModule as you've seen with render_headers(). The view template used is Twig, check out more here http://twig.sensiolabs.org/doc/templates.html This is a basic setup for a website with MvcModule. I will extend this tutorial and update it whenever needed!
  20. Sorry but i can't set up a new role called 'editor' where i want to this role have permission to edit and create new content to the site; i manage to apply the edit feature with the module "PageEditPerUser" made by ryan but i need to apply the same for create. How can i do this? EDIT: i found this Edit template -> access tab -> and "activate" page view / edit / add child permissions for each roles there. But i need to add acces to each template i have to each roles? Regards,
  21. I am tasked at making a decision on a platform/CMS to rebuild a large casual gaming portal. It will host over 1000 flash games, and we're planning to introduce HTML5 games as well in 2014. I have a series of questions, and if the members on here could help me out, it would be greatly appreciated: - Can PW handle a large db of flash and/or html5 games reliably? - Do you see any issues importing a MySQL db that contains this game related data? - Any recommendations on how to map a functional spec specific to PW? Thanks, I am new to PW, and would appreciate some feedback. / Kal
  22. Hi, I have a question about PW. For developing totally custom applications/extensions, maybe parse some data from other site or whatever, you should need to build new module. I reckon modules are extensions to PW. It is said that PW is CMF (Content management framework), that shows when you use it's API. But is it also any kind of framework for PHP, that comes in handy, when developing custom applications? Such as is Codeigniter or CakePHP? Or must be code written in pure PHP? Thanks. Best regards, Franci
×
×
  • Create New...