tires
Members-
Posts
226 -
Joined
-
Last visited
Everything posted by tires
-
Oh no ... there is another redirect issue i have to solve. There are two domains that should point on the same site. One of them should redirect with 301 to the main domain. I tried so add this code in the htaccess-file but without success: RewriteCond %{HTTP_HOST} !^http://www.myseconddomain\.de$ [NC] RewriteRule ^(.*)$ http://www.mymaindomain.de [R=301,L] i added this lines here: ... # ----------------------------------------------------------------------------------------------- # OPTIONAL: Redirect users to the 'www.' version of the site (uncomment to enable). # For example: http://processwire.com/ would be redirected to http://www.processwire.com/ # ----------------------------------------------------------------------------------------------- RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{HTTP_HOST} !^http://www.myseconddomain\.de$ [NC] RewriteRule ^(.*)$ http://www.mymaindomain.de [R=301,L] # ----------------------------------------------------------------------------------------------- # OPTIONAL: Send URLs with non name-format characters to 404 page # Remove this section if it interferes with URLs of any other software you may be running. # ----------------------------------------------------------------------------------------------- ...
-
Ok. Perhaps that info should be mentioned somewhere ... Now that i know these issue i can either use a subdomain for developing or do the redirects later on the live server. So no problem! Thanks for your help and the great module!!!
-
Thanks a lot for your fix!!! In the meantime i possibly found where the problem is. My installation is not in the root but in the www.mydomain.de/the/path/to/my/dev I think i should have to put this path in the source an destination (/the/path/to/my/dev/{id|pages}/) field. Is that right? When the site is in the root unter www.mydomain.de everything works as i should!!!
-
Thanks for your answers!!! Of course i entered the url without a leading slash!!! {id|pages}/ In the overview it is displayed correct. If i open the settings once again, the error is displayed an there is the leading slash! Should i try to change the code in the module anyway? Here is a screenshot of the overview page:
-
Hi! The version is 2.5.3. The displayed error is (translated form german): "destinationUriUrl: Error found - please check if the url is valid." The error is only displayed if i open the jumplink settings once again. There was no error displayed when is saved it ... Here are the screenshots:
-
Thank you Mike for your detailed answer!!! I tried your proposed configuration but without success. Here is what i entered: Jumplink Source: index.php?id={id} URI/URL: {id|pages} outputs an "destinationUriUrl" error than i entered: http://www.mydomain.de/mypath/to/processwire/{id|pages} Mapping Collections (collection name "pages") Mapping Data: 33=products 36=contact 37=imprint ... Can you find the error? Thanks!!!
-
Thanks for your answers!!! I tried both modules (redirects and jumplinks) but they don't work for me. And for SEO reasons i would like to have 301 redirects. So i think the best place for the redirects is the htaccess file. How do you handle this?
-
Hi! I just redesigned a website and switched from another cms to processwire. Now i want to redirect the old urls to the new pages ones using 301 redirects and htaccess. I read a few posts an tried a few things but it doesn't work. My htccess file looks like that: ... # If any conditions above match, isssue a 403 forbidden RewriteRule ^.*$ - [F,L] RewriteRule ^index.php?id=33$ /products/ [R=301,L] RewriteRule ^index.php?id=36$ /contact/ [R=301,L] RewriteRule ^index.php?id=37$ /imprint/ [R=301,L] # ----------------------------------------------------------------------------------------------- # Ensure that the URL follows the name-format specification required by ProcessWire # ----------------------------------------------------------------------------------------------- RewriteCond %{REQUEST_URI} "^/~?[-_.a-zA-Z0-9/]*$" ... For example: The old product page url was "index.php?id=33" and i want to redirect this to the new "/products" page. But that doesn't work? Can you tell me where is my error? Thanks and regards!
-
Thanks once again!!!
-
Thanks for your answers! Ok, i see this is a little complicated and not intended to do for fields in pw. I hoped that there is a possibility to set this preset text/code/file in the fieldsetting (or in the template field settings). Is there a reason not to implement this feature in pw?
-
Thanks for your detailed anwers! If i understand you right, the system is pretty save. And i have to be careful with my template code and where userinput (comments, search etc.) happens. Right? As i just read here https://processwire.com/talk/topic/9565-upgrade-from-2524-to-2525-broke-the-site/ updates may cause problems with modules. Or is that a rare exception?
-
Thanks for your answers! I am not an htaccess expert, but i also considered this way. Did you have some experience wiith this? I don't understand this part. I see the urlSegments output the parts of the url. Should i set the image path as base url? Do i have to output the image path via urlSegments? Could you explain this approach? Thanks a lot and best regards!
-
Good evening. Is there a way to preset a value for a field (textarea). This value shold be printet if there isn't anything entered in the field? Thanks an regards!
-
Thank you for your detailed answer!!! Is there a way to just change the url in the imagetag without changing the real filepath? Also for SEO reasons i would like to have it a bit like this: <img src="images/holiday/locations/newyork.jpg" />
-
Ok, so to make the template path to "www.domain.com/tpl" i have to write something like: $config->urls->templates = "/tpl"; Is that right? Where do i have to insert this code? Concerning the imagepath, i know that i don't have to write the path on my own. But i want the img-tag to look like this: <img src="images/myimage.jpg" /> Is this possible? Many thanks and best regards!
-
Yes! Hanna is exactly what i am looking for! The str_replace is also pretty cool! I think the default templating way don't work in this special case. Because i have a pretty long text that comes from a textarea an i want to add words in there. For example: everytime the word "ball" is mentioned i want to have a placeholder befor this word that adds the headline ("red" or "blue" or "yellow") field. So on the page the word is displayed as "red ball". Thank you!!!
-
Hello once again! I wonder if i can change the path (or folder) to the image/file directory? So that the url of my uploaded image in the sourcecode is not the default "site/assets/files/1234/myimage.jpg" but something like ""myprettyshortpath/myimage.jpg". And how about the path to the template directory? Can i change this for example from the dafault "site/templates/styles/style.css" to "styles/style.css"? Many thanks and best regards!!!
-
@horst: Thanks! Good to know. But when i want to update (because of bugfixes or new features) do i have to fear from uncompatibility to some older modules? What are your experience? @cstevensjr: Ok, but all the coding i do in PW is "echo" fields and some "for each" an "if". So i think that should be pretty save!? The question is, if PW is pretty save also?
-
Thanks a lot for the answers!!! A few further questions: What about the compatibility of (older) modules with an newer/updated PW version (as known in drupal)? Or is there no risk? Is there a way to update the core or the modules automatically or with a click just out of the backend (as known in wordpress)? (I saw that the ProcessWireUpgrade module do this) Is PW so absolute save or so small that actually no one tries to hack it? ;-) By the way, is there a maintenance-mode in PW that i can switch on while performing updates? (I found this module http://modules.processwire.com/modules/maintenance-mode/) Many thanks and best regards!
-
Hello! I saw that there was a new PW update (2.5.24) on march 27th. My general quastions - as a pretty processwire newbie - do i have to update all my PW-sites immediately because of security reasons? What would be your advice? How dangerous is it not to do an update? How do you handle this? Is there a way to automate the updates? Many thanks and best regards!
-
Hello! I wonder if i can use some kind of placeholder for page-fields in a textarea (in this case with ckeditor)? The plan is, to put some text/code in a textfield that looks like this: <div> <p> The headline of the parent page is: <?php echo $pages->get("/somepage/")->theheadline; ?> The headline of this page is: <?php echo $page->theheadline; ?> </p> </div> Is there a way to do so? Or a do i have to install a additional module? Many thanks and best regards
-
Hi Adrian, thanks once again! I tried out the modul. For me it seems a bit "excessive" to create a new page for every single "headline/link/caption/image"-combination. But this is only/best way to handle this in processwire?
-
Hello Adrian, thanks a lot for your answer ... and for your welcome Can i use this module also in 2.4? Or is there a simular module for 2.4? What if i need more than just an image, headline or textblock. In my case i need an headline, link and a caption for every image. Is this also possible with this module?
-
Hi! I am searching for a module to create different fields on a page in free order. For example i want to have 3 fieldtypes: for a small picture, a big picture and a headline. Than i will create on my page something like this: Headline Small picture Big picture Small picture Small picture Headline ... etc. On an other page the order of fields should be totally different: Big picture Small picture Headline Headline Headline ... etc. This is basically the way to create content in typo3 and others. Is there a module that let my do this? Thanks for your answers! tires