franciccio-ITALIANO Posted October 12, 2019 Share Posted October 12, 2019 Hi, I'm building a static site locally. Now I transferred it online, to do some testing, but I saw that to make it work with processwire, I have to change some parts of the hmtl paths and all the images. In the future I'll still change a lot of things locally, and the idea of making transformations on each page every time to make it work with processwire makes me shudder. You program used to create local sites, modify them, and transfer the changes instantly to the online website, without rewriting the code parts? I hope my question is clear. Is it clear? Link to comment Share on other sites More sharing options...
Mustafa-Online Posted October 13, 2019 Share Posted October 13, 2019 @franciccio-ITALIANO How do you link assets (images, css ..etc)?? - share some code so we can help Link to comment Share on other sites More sharing options...
bernhard Posted October 14, 2019 Share Posted October 14, 2019 On 10/12/2019 at 9:49 PM, franciccio-ITALIANO said: I hope my question is clear. For me: Unfortunately no ? Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted October 14, 2019 Author Share Posted October 14, 2019 22 hours ago, Mustafa-Online said: @franciccio-ITALIANO How do you link assets (images, css ..etc)?? - share some code so we can help for example: in online processwire site: <!-- FONTAWESOME STYLE CSS --> <link href="/site/templates/styles/assets/css/font-awesome.min.css" rel="stylesheet" /> <link href="/site/templates/styles/assets/css/font-awesome.css" rel="stylesheet" /> <link href="/site/templates/styles/assets/css/animate2014.css" rel="stylesheet" /> <link href="/site/templates/styles/assets/css/font-awesome-animation.css" rel="stylesheet" /> <link href="/site/templates/styles/assets/css/text-changing.css" rel="stylesheet" /> In local pc: <!-- FONTAWESOME STYLE CSS --> <link href="assets/css/font-awesome.min.css" rel="stylesheet" /> <link href="assets/css/font-awesome.css" rel="stylesheet" /> <link href="assets/css/animate2014.css" rel="stylesheet" /> <link href="assets/css/font-awesome-animation.css" rel="stylesheet" /> Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted October 14, 2019 Author Share Posted October 14, 2019 I must change every code manually for template file, by ftp-cpanel I develop html file in local-pc, and for online I must rewrite all Then... there is also the api processwire! Link to comment Share on other sites More sharing options...
dotnetic Posted October 14, 2019 Share Posted October 14, 2019 Instead use <link href="<?php echo $config->urls->templates; ?>styles/assets/css/font-awesome.min.css" rel="stylesheet" /> and place them in the same folder on your local PC. Or you modfiy the url path to the templates folder in your site/config.php Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted October 18, 2019 Author Share Posted October 18, 2019 Ok, but... the file in local pc are .html The template files on processwire are .php So, I must change the estensions files manually... every time I change template, for each template. I would like update all the site witc 1 clic or few clic bye ftp filezilla. It is possible? Exist a program for develop a site html-css and charge all online instantanelly? Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted October 18, 2019 Author Share Posted October 18, 2019 For each update I must recreate the .php file on cpanel or by ftp filezilla... it is an enormus losting time Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted October 18, 2019 Author Share Posted October 18, 2019 I need a program for see php file as it was html file... by browser Link to comment Share on other sites More sharing options...
dotnetic Posted October 21, 2019 Share Posted October 21, 2019 Your development environment should have the same prerequisites as on your server. You should have a local web server like Laragon (on Windows) or Xammp installed, and also mirror/replicate the ProcessWire installation with the database from your live server. Then you can make modifications to these local files and upload them to the live server as they are. No conversion needed anymore. I would recommend you to use a translator like deepl.com if you are not very good with english, so your questions can be understood better. 1 Link to comment Share on other sites More sharing options...
franciccio-ITALIANO Posted October 27, 2019 Author Share Posted October 27, 2019 Thanks Jens Martcsjh, I'm following both of your suggestions ;) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now