Jump to content

dotnetic

Members
  • Posts

    1,070
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by dotnetic

  1. Install Process Why not try to create a database automatically if it does not exist? When I entered HTTP Host Names and the DB Auth failed, I had to enter this information again. Please do not delete data in input fields if something was entered incorrectly. Adding fields When I add a field, I want to add it directly to one or more templates. This is solved very cumbersome. It would be better if I get a list of all templates and select in which templates the field should be added. Deleting fields "This field can not be deleted because it is used by one or more template ( s ) ." It should be displayed, in which templates the field is used. New Option: Force delete field There should be an option to force delete a field. "The field $fieldname is going to be removed from the following templates a b c Are you sure to delete it? (yes)(no)" New Option: Force delete template This Template is used by 3 pages: Page 1 Page 2 Page 3 Are you sure to delete it? (yes)(no)" What should happen with pages that have this template currently assigned after removal? ( ) Delete them too (X) Assign a new template Creating new templates When i created a new template with template->new from the dropdown-menu i don´t want to get back to the overview page for templates. I want to edit my newly created template directly. So please redirect to the edit page instead. This is a different behavior to adding fields, which works as intended. What was that fieldname again? Please show the name of the field after the label if debug mode is on (or always?) Easier select field The option/label should be only divided by = If no label is assigned, display the option as label What do you think of these improvements?
  2. Transformed static Onepage Website http://t.co/JMLaFUmIJG into a dynamic one with #processwire in 5 hours. Adding sections is now so easy.

  3. I know this is a lil bit off-topic but most times i want to echo a variable prepended by an label or followed by a br tag. But the line with the variable and br should not be generated when the variable is empty. So i use function echoField($variable, $prepend='', $append = false){ if ($append === true) { $append = '<br>'; } if ($variable) echo $prepend.$variable.$append; } and output it with <?= echoField($pages->get("/einstellungen/")->telefon,'Telefon :',true); ?> <?= echoField($pages->get("/einstellungen/")->email,'E-Mail: ',true); ?> What do you think of this?
  4. RT @somartist: I just voted for ProcessWire! Help get @processwire packaged by Bitnami. You can vote at http://t.co/5g6Tgsj5YK

  5. Ich möchte eine LifeProof-Schutzhülle bei @caschysblog gewinnen, du auch? http://t.co/Phyh51daii http://t.co/N8eBDi0CvP

  6. +1 Animation is obsolete. Makes navigation much quicker.
  7. Did i mention that i love you? Thanks for this great feature
  8. Next Generation of Ultra Gesture Keyboard: TouchPal Wave! Use simple gesture to input a sentence! http://t.co/ad9FI5q3yz

  9. Another problem. If i set Hanna Code Text Formatter for the field body and then want to output the body field in my template via PHP, all other code from my Hanna Code snippet is overwritten. Only the field $page->body appears. To clarify, here is what i got: Field with the name body -> Text Formatter: Hanna Code Text Formatter Hanna code: !HannaCode:newsdetails:eyJuYW1lIjoibmV3c2RldGFpbHMiLCJ0eXBlIjoiMiIsImNvZGUiOiJlY2hvICRwYWdlLT50aXRsZTtcclxuXHJcblxyXG5pZigkcGFnZS0+dGh1bWJuYWlsKXtcclxuXHQkaW1hZ2UgPVwiPGEgaHJlZj0neyRwYWdlLT50aHVtYm5haWwtPnVybH0nIGNsYXNzPSdsaWdodGJveCc+XCI7XHJcblx0JGltYWdlIC49XCI8aW1nIGNsYXNzPSdwdWxsLXJpZ2h0IGltZy1wb2xhcm9pZCcgc3JjPSd7JHBhZ2UtPnRodW1ibmFpbC0+d2lkdGgoMjAwKS0+dXJsfSc+XCI7XHJcblx0XHRcdFx0XHRcL1wvICRpbWFnZSAuPVwiPGltZyBjbGFzcz0ncHVsbC1yaWdodCBpbWctcG9sYXJvaWQnIHNyYz0neyRwYWdlLT50aHVtYm5haWwtPmdldFRodW1iKHRodW1ibmFpbCl9Jz5cIjtcclxuXHQkaW1hZ2UgLj1cIjxcL2E+XCI7XHJcbn1cclxuXHJcbmVjaG8gJGltYWdlO1xyXG5lY2hvICRwYWdlLT5ib2R5O1x0In0=/!HannaCode here is the PHP for the Hanna Code: echo $page->title; if($page->thumbnail){ $image ="<a href='{$page->thumbnail->url}' class='lightbox'>"; $image .="<img class='pull-right img-polaroid' src='{$page->thumbnail->width(200)->url}'>"; // $image .="<img class='pull-right img-polaroid' src='{$page->thumbnail->getThumb(thumbnail)}'>"; $image .="</a>"; } echo $image; echo $page->body; template newsdetail.php <?php $hanna = $modules->get('TextformatterHannaCode'); echo $hanna->render('[[newsdetails]]'); ?> When i open the page, only the contents of the body field appear. No Hanna Code is actually used in the body field. Just plain text!!!! If i remove the text formatter for the body field, everything works fine. But sometimes i want to use Hanna Code in my body field as well. So how do i do that?
  10. Next Generation of Ultra Gesture Keyboard: TouchPal Wave! Use simple gesture to input a sentence! http://t.co/pUW9AQ3TsD

  11. Hey Ryan. Thanks for the quick fix Now the PHP example works, but why can´t we use Hanna Code directly in our template files just by using [[name_of_hanna_code_snippet]]? Are there performance issues?
  12. Is it possible to use Hanna Code directly in my template file or in PHP without using a field for it? For example Use directly: <?php include("./head.inc"); ?> <div class="container content"> <div class="row-fluid"> <a name="content"></a> [[newsdetails]] </div> </div> <?php include("./foot.inc"); ?> or with PHP: <?php include("./head.inc"); ?> <div class="container content"> <div class="row-fluid"> <a name="content"></a> <?php $hanna = $modules->get('TextformatterHannaCode'); $page->body = $hanna->render('[[newsdetails]]'); echo $page->body; ?> </div> </div> <?php include("./foot.inc"); ?>
  13. +1 for that feature. Take a look at modx, they implemented it this way.
  14. Hi @soma I have OpenSSL 1.0.1 installed for PHP, i used the update from petsagouris and now it works.
  15. I also get "File could not be downloaded.There seems to be a problem with downloading or writing the module." I am on a Ubuntu 12.04 OS. allow_url_fopen is on, permissions on /site/modules/ and /site/assets/ directories are 775 (also tried 777). But still no success Any suggestions?
  16. Hi, is there a solution to get all pages from my folder "features" where "field1" is smaller than "field2"? Is this possible with the find API? I tried it, with echo $pages->get("/features")->find("field1<field2"); but it did not work. Any suggestions how i can achieve this? Thanks in advance. Jens
  17. Knowledge Graph von Google: Warum Suchwörter nicht nur Suchwörter sind http://t.co/WS3SKmFD #interfacemedien via @interfacemedien

×
×
  • Create New...