-
Posts
1,306 -
Joined
-
Last visited
-
Days Won
13
Everything posted by Juergen
-
Hello at all, I use the new select options fieldtype and I want to output all avaliable options on a frontend template. In my case I want to use it as a list of all kinds of events (internal event, external event,....). With the API calls provided in the documentation I am only be able to output the selected option (fe internal event) but not the whole list. Is there a way to ouput all options fe in a foreach loop? Best regards Jürgen
-
Stefan, this is awesome. I have updated the module and at the moment I have not detected any problems. I am still testing it further more. Thanks so much!!!!
-
Hello Stefan, thanks for your contribution (and the awesome module too). Yes it would be great to get the possibility of multilanguage support. At the moment I dont need this function immediately. I am not very familiar with hooks in processwire so I will wait until an update Next time I will post it under the right section, I`ll swear Thanks and best regards Jürgen
-
hello Henning, as I understand you correct: you mean to create more than one instance of the pdf creation button depending on the language? Mmmhh, I will try this tomorrow but this could be a possible solution. It has to create a pdf file for each language - at the moment only on pdf-file is created (independent of the language). Best regards jürgen
-
Hello @ all, I have setted up a multilanguage site and the Pages2pdf module provides the pdf for a page only in one language. Has someone tried to get one pdf-document for each language and how? I cant figure out how this could be achieved (if it is possible). Best regards Jürgen
-
Whitespace at the beginning of the source code leads to problems
Juergen replied to Juergen's topic in General Support
Thank you for your prompt answere!! Yes I know that this could be tricky to find out. As I mentioned I use the sitemap module to create a sitemap in a xml format. This module produces a pure sitmap.xml file. So in this case there cannot be included something before. This module has worked for a long time but now there is also a whitespace at the beginning of the XML opening tag (http://www.juergen-kern.at/sitemap.xml). So in this case I have no influence on creating the output code (no include errors and so on) . This module produce the xml markup code on its own but the whitespace is still there. -
Hello @ all, I couldn´t find the cause why I am always getting a white space at the beginning of my source code. <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="de"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="de"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="de"> <![endif]--> As you can see there is a white space before the doctype declaration (<!DOCTYPE html>). This leads in pages with RSS-markup to errors, because whitespaces are not allowed there. I have not included anything before!! I dont know when this problem started. I use the sitemap module on my site which produce a XML-page. This module was working for a long time without problems. But in the past I always get errors because of the whitespace. It seems that the whitespace problem started either with an update or with the installation of a module. Unfortunately I cannot figure out what the cause could be. Has someone discovered the same behaviour on his site or has someone an idea how to find out the cause of this problem. Best regards Jürgen
-
I have also tried get the RSS feeds working, but in my case I have always a problem with the XML-Syntax: <?xml version='1.0' encoding='utf-8' ?> <rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1/'> <channel> <title>RSS Feed</title> <link>http://www.juergen-kern.at/de/newsfeed/</link> <description>This feed shows the most recent items that have been published.</description> <pubDate>Wed, 04 Feb 2015 14:37:18 +0100</pubDate> <ttl>60</ttl> </channel> </rss> As you can see before the opening XML tag there is a white space and this leads to an error. I dont know where this whitespace come from because i didnt include a header file or something like that. It is only a pure php.page (according to the example from Ryan). Has anyone the same problem?
-
How to change output markup of images added by editor
Juergen replied to Juergen's topic in General Support
Finally I made it with Jquery manipulation. It is not the most elegant way but it works quite well. -
How to change output markup of images added by editor
Juergen replied to Juergen's topic in General Support
Hello Joss and Adrian, Thanks for your answeres! @Joss I can do the same with php string replace or preg replace and this will be cacheable, so this is not the way that I want it to do. @ Adrian I have tried this module yesterday, but I also want to add some additional divs for CSS3 effects. This module can only add additional classes so this is also not the right solution. I havent figured out where the markup will be produced (which file is responsible for the output). This could also be a possible solution: To change the markup where it will be produced. Best regards Jürgen -
Hello @ all, I use the CKEditor and I want to change the output markup of inserted images, but I dont know where. The standard output for unlinked images: <img alt="Wüste" src="/site/assets/files/1471/desert.150x0-is-pid1468.jpg" height="113" width="150"> I want to change it to: <img class="thumbnail" alt="Wüste" src="/site/assets/files/1471/desert.150x0-is-pid1468.jpg" height="113" width="150"> or for linked images: <a title="" data-original-title="" href="/site/assets/files/1471/desert.jpg"><img alt="undefined" src="/site/assets/files/1471/desert.150x0-is-pid1468.jpg" height="113" width="150"></a> I want to add lightbox2 attribute <a class="thumbnail" title="" data-original-title="" data-lightbox href="/site/assets/files/1471/desert.jpg"><img alt="undefined" src="/site/assets/files/1471/desert.150x0-is-pid1468.jpg" height="113" width="150"></a> Is it possible to change the output without php-manipulation on the template?
-
Repeater field and visibility rule storage problem
Juergen replied to Juergen's topic in General Support
Issue already well known (https://github.com/ryancramerdesign/ProcessWire/issues/803#comments) - so thread closed. -
How to output overwritten field labels in site template
Juergen replied to Juergen's topic in API & Templates
Thanx for the ultra fast response. Works quite well -
Hello at all I have overwritten the label of the body field in various templates, but if I try to output it in the site template I always get the initially label name. The output code: <?php echo $page->fields->get('body')->label;?> The initially label of my body field is "maintext" and this will be outputed. In my teammember template I have overwritten "maintext" with "About me" but I always get "maintext" as the label and not "About me". Can someone point me into the right direction of outputting the overwritten label?
-
Repeater field and visibility rule storage problem
Juergen replied to Juergen's topic in General Support
Hello Macrura, dependencies and repeaters work as expected. The link to the topic provided is no longer valid for the new version. It is from February. In the latest version it is possible to use repeaters and dependencies. The fields will be shown or hidden depending on field values. I have only used it with equal (=) and not with larger or less (<,>), but with equal there is no problem. Only the storage of these repeater fields is the problem and this is not depending on js (it is PHP). Nevertheless thank you for your contribution. Best regards Jürgen -
Hello @ all, I have a problem with a repeater field and the storage of its values. Some of the fields in the repeater field have dependencies - so the are only visible if a specific field has as specific value. All the fields with dependencies in the repeater field will not be stored - all the others are stored quite well. So this must be a problem due to the dependency. I use the latest Processwire from Github! Has someone made the same experience? Maybe it could be a bug? Best regards Jürgen
-
Thanx so much. It works like a charme
-
Hello @ all! Question: Is it possible to change the title (name) of the short cut menu in the backend admin? Currently it only shows the template file name (fe if the template file name is "news.php" it shows the name "news" in the short cut menu. I want to change it to fe "add news". I have a multilingual site so changing the name by changing the template name is not an option. Best regards Jürgen
-
The cron job triggers the event calendar at the moment, so it checks if the event is out of date and then it unpublish it (schedule module). I have also planned to trigger the newsletter subscriptions. I use Mailchimp for the newsletters. At the moment the list of subscribers/unsubscribers will be triggered via the newsletter form from the frontend. If there is a change (subscription or unsubscription) and the submit button will be pushed the list will be sent to Mailchimp to get the list always up to date. But this only works for the frontend at the moment. If I change a newsletter subscription in the backend it will not work at the moment because nothing triggers the sending of the changes to Mailchimp. Server ist Apache.
-
Hello at all, I am not a skilled PHP-expert so the question will be easy for all the experts out there. I use a cron job and there will be the possibility to trigger it in various intervals (minutes, hours, days,...) Question: Does it makes a huge difference in case of the performance if I use an interval of every minute (server load) on a small site. At the moment I cannot feel a difference but the site is not public (maintainence mode). Which interval is recommended? Best regards Jürgen
-
Hello at all, I want to hide the option checkbox to "hide the page in search and lists" checkbox for a specific user role in backend, but I cant figure out how it should be done. For example: This option should only be visible for administrations but not for managers. Please take a look at the image below. I know that I can add various fields to the permissions (page-edit, page-publish and so on). So there must be a way to add this hide in list permission too, but I dont know how. Can someone point me into the right direction because I only want to offer the possibility to unpublish a page to the customers. Thanks in advance Jürgen
-
Yes, I mean that.
-
Thanks Soma, this was what I am looking for. Unfortunately there was no hint in the explaination of $sanitizer->username($value) that this is dpreceated in 2.4.
-
First of all, its not a big problem. I have created a custom registration form. For the username field I have used the sanatizer api before storing the username in the database. $username is the variable from the form input after submit (Post) I sanatize it like this: In the guidelines there is the following statement: So far so good, but sanatizing the username value changes all big letters [A-Z] to small letters [a-z]. So it doesnt allow big letters in the username. It is not a big deal, but big letters should be allowed according to the statement. Does anyone made the same experience. PS: I use the latest stable version of PW. Addition: it also changes the "@" into "-" .
-
Thanx Kobra Kai, i will see whats going on in the "wild out there" and if I will track some "bombing" I will try your advice. At the moment I start only with one throttle login and hope the best