-
Posts
1,359 -
Joined
-
Last visited
-
Days Won
49
Everything posted by flydev
-
I feel really sorry. I have had some problems in recent months that have caused my brain to stop working .. And so I hesitated to launch the module knowing I could not give support. Anyway, I'm better and I resume the development as soon as I have my internet connection operational (should be good for monday). Sorry again guys!
-
Hi @antpre and everyone. I lack time in recent days but the module should be available to the public the next coming week!
-
This morning, after some adjustments and tests, the module run smoothly on ProcessWire 2.7, 2.8 and 3.x.
-
Installing it right now!
-
Just a small update: I managed to get the module working without Composer. All SDKs can be downloaded separately and you can choose which one Cloud Service to use or even not use any at all. And some precisions : What is the primary goal of this module and how it works? This module is a backup utility. It make a package which contain a full database dump + full website. The package can be saved locally or/and uploaded to a FTP server, GoogleDrive, Dropbox or AmazonAWS. is it compatible with PW2? Guess not. With 2.8 yes. ProcessWire 2.7 need to be tested as now every SDKs can be downloaded separately. But it already works for saving package to a local folder. I don't use composer. Any other way to install? Just download the SDK you need. I'm on windows. Will PWcron run? Without any problem. Look at this answer to set up it: http://stackoverflow.com/questions/7195503/setting-up-a-cron-job-in-windows What are google/dropbox/AWS needed for? Only needed to upload a package to their service. How can I restore the website? Is it possible to rebuild mine website on a other server? Yes but you have to do it manually. You unzip the package (the zip file), upload your website, import you SQL database, adjust settings in config.php and tadaa, it works. The final goal of the module is to automate this process, but is not yet implemented.
-
Hi and welcome to the forum. You can find some thread in the forum about settings default language if your site is multi-language (?) but I assume here is not the case. How I see the thing : you can develop your front-end in pure Arabic without altering the back-end naturally. I mean the back-end will stay as default in english and writing the front-end (your templates) in all Arabic language is up to you. To help you to get started with RTL front-end, take a look at this series of 2 articles at Mozilla : https://hacks.mozilla.org/author/nefzaoui/
-
You can just install it like any other module. Once installed, click on the save button then the "Backup Now" button, no other steps required If you still have problem using it, please feel free to post your issue in the dev topic or PM me, I will help you with pleasure.
-
I can send you the module Duplicator for testing purpose if its urgent. I will just ask feedbacks .
-
The session is started automatically and ready-to-use from your templates.
-
Ok, I think I got what you mean. Yes it will be reset to 0. Just forget what I said before. Instead of having $session->set('count', 0) in your template, set it in _init.php : if(!$config->ajax) $session->set('count', 0); So, if you refresh the page, the $session->count will be reset to 0, if the page is called by AJAX then $session->count is incremented.
-
because $limit = 1 in your selector, no ? As you get only one news, $count is not incremented in your foreach loop..
-
What's the thing you do not understand ? Did you tried to follow this post ? There are another example: A tutorial where you can took inspiration for processing your form : And a ton of references there: https://encrypted.google.com/search?q=processwire+contact+form
-
Keep in mind that there a are other better ways to achieve this. You should read this tutorial made by @kongondo : Anyway, to continue with the repeater and to add tags to your aforisms you could create a new template "aforisms_tags" and a page in the PageTree called "Aforisms Tags", assign the template "aforisms_tags" to this new page; And add some children to this page: tag1, tag2, tag3... Then you create a new field of type PageReference , set the option Input Field Type to "AsmSelect" and set the option Parent to the new created page "Aforisms Tags". Then you add the field to your "aforisms_repeater". Illustration : There is the code : $aphorisms_list = ''; $tags = ''; foreach($page->aforisms_repeater as $aforism) { $aphorisms_list .= "<li>"; $aphorisms_list .= $aforism->aforisms_title; foreach ($aforism->aforisms_tags as $tag) { $tags .= "<span class='tag' style='margin: 3px; color: red;'>"; $tags .= $tag->title; $tags .= '</span>'; } $aphorisms_list .= "{$tags}</li>"; } $content .= "<ol>{$aphorisms_list}</ol>";
-
Surely, but I don't get what you mean by one or more topics fields, could you explain a bit further whats your needs and/or show us what you already tried ? Maybe are you talking having an aphorism with a reference to a page in the PageTree ?
-
Welcome to the forum @Cengiz Deniz About your question, you could use a Repeater for the aphorisms in your template. First read this doc : http://processwire.com/api/fieldtypes/repeaters/ , you should get an idea on how repeaters works. So for your example, you could make a new text field called aphorism_title and a new repeater called aphorism_repeater. Finally you add the text field 'aphorism_title' to the repeater. You should end up with something like that : In your page template, you add the repeater field you just created, and add some aphorism to it : Then in the template code, a simple foreach loop will do the job to show all the aphorisms in a list: <h3>ÖzlüSözleri</h3> <?php $aphorisms_list = ''; foreach($page->aphorism_repeater as $aphorism) { $aphorisms_list .= "<li>{$aphorism->aphorism_title}</li>" } ?> <ol> <?php echo $aphorisms_list; ?> </ol> Hope its clear enough, you can adapt it depending the output strategy you use, but do not hesitate to ask more information. Good luck!
-
Hi @MaryMatlow Can you please tell me the version of ProcessWire ? Yes, you have to copy and/or modify the function bsRenderCarousel(); For instance, you could use a repeater to pass datas to the function. Let's say we create a repeater with the three following fields: image_carousel, heading, heading_description and insert the repeater with the name 'carousel' in the home template. In _func.php, add this function : Then in the home template, make the array and call the new function with the new array as parameter : // render the carousel //$content .= bsRenderCarousel($page->images); foreach ($page->carousel as $key => $value) { $datas['images'][] = $value->carousel_image; $datas['headings'][] = $value->heading; $datas['description'][] = $value->heading_description; } $content .= bsRenderCarouselFromArray($datas); Result:
- 39 replies
-
- 4
-
- responsive
- bootstrap
-
(and 3 more)
Tagged with:
-
It is mainly to test different servers configuration as currently the AmazonS3 implementation is quite stable. And I found a way directly in the AmazonAWS console to create accounts and sharing keys for users. Anyway thanks for the suggestion, maybe I will give a try by curiosity
-
How to create a GoogleDrive service account step-by-step Edited the 2017-02-18 Go to https://console.developers.google.com Create a new project: Enable the API: Create credentials: Select "New service account" Click on Create and save the JSON key file Click on Manage service accounts : Copy the service account ID : Configure Duplicator by copy/pasting the service account's email and the content of the JSON key file :
-
In before complete answer, the first thing I see is : What the doc say: When you put in the new /wire/ directory, make sure that you remove or rename the old one first. If you just copy or FTP changed files into the existing /wire/ directory, you will end up with both old and new files, which will cause an error.
-
This is a good question, my bet go on an upload with a regular user and the files moved by root user..
-
Has anyone installed Processwire on Amazon EC2?
flydev replied to modifiedcontent's topic in General Support
Did you added the directive to the apache virtual host ? -
Has anyone installed Processwire on Amazon EC2?
flydev replied to modifiedcontent's topic in General Support
Which profile did you try to install on your fresh ProcessWire installation ? I will reinstall it from scratch and will give you all the process into an hour or so. -
Has anyone installed Processwire on Amazon EC2?
flydev replied to modifiedcontent's topic in General Support
Try to empty the database and remove the content of /var/www/html then upload a new copy of ProcessWire. After that give permission to apache: chown -R www-data:www-data /var/www/html Now try to reinstall ProcessWire. If it doesn't work then reinstall the whole thing Sorry for the short answer i am on mobile. -
Has anyone installed Processwire on Amazon EC2?
flydev replied to modifiedcontent's topic in General Support
Yes. And the setup is : Ubuntu 16.04 Apache 2.4.18 MySQL 10.0.29-MariaDB PHP-7 ProcessWire 3.0.52 add this directive to your VirtualHost in /etc/apache2/sites-available/000-default.conf : <Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> -
Hello, I am looking for beta-testers with Amazon S3 account Please PM me.