Jump to content

diogo

Moderators
  • Posts

    4,296
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by diogo

  1. Welcome to the forum Gas Creature (feels a bit strange to say this ) No, you can't do that. You can only put plain text on the fields, and also html in some (but try not to), but never php. Usually you wouldn't need to have this kind of dynamic content in such a place, because you will always know what is the type of planet when you fill the body (you are inside that planet's page, so you must know). If that need arises... and this would be only to prevent repetition, there are ways to do it in the template file with some more advanced functions http://php.net/manual/en/function.preg-replace.php
  2. You have to correct this: img src='{$sidebarAd->images->url} edit: Manfred had faster fingers
  3. diogo

    Roderigo / Maryla

    Coming from here http://processwire.com/talk/topic/3130-website-for-a-hotel-in-karlsruhe/?p=31239 Thanks, but the image that is on the menu is already great Roderigo, you are amazing!
  4. There is already a showcase in house. Why don't we let Lance do he's own independent thing with his own choices outside the pw oficial domain? It helps to spread pw to have such things outside the project and has the advantage of not having any kind of compromise in his chices (wish an official project inevitability has). I would gladly support this and submit my websites to your judgement Lance
  5. Welcome to the forum asosking. Can you post the piece of code that is giving you trouble? Since your question is so vague, we can't even know how much PHP you know, so I will assume it's not much. Can you tell us the result of doing this instead of page->title, to see if your php is working? <h1><?php echo "php is working" ?></h1>
  6. In my opinion it would make sense and it would be very useful.
  7. because of variable scope. The problem is not the get() method, but the variable $modules. You could pass it as a parameter of your functions, or use the equivalent wire('modules') instead, since functions are not affected by scope: $str .= wire('modules')->get( "ShoppingCart" )->renderPrice( $product->sc_price );
  8. oh, true... delete. I was thinking in reverse and trying to avoid that you would exclude a real "strong" in the text. Crossed my mind that it would work like: exclude strong if it has a < to the left... but that was dumb... Ryan, would it make sense to implement a selector that uses REGEXP?
  9. Hey Nico, great news I will most likely be in Frankurt most of July, but will be glad to help with what I can with the days you will be in Porto . Let's keep in touch.
  10. Right now I don't have an idea of when it will happen as making this wasn't in my plans, but I might dedicate some hours to this next week to finish. If I'm not wrong, this only searches for the binary data on the clipboard and uploads it as a file. So that must depend on how the application puts the data on the clipboard.
  11. Soma, I don't know if < and > characters can be included in the stopwords, but if so, the words could be "<table", "/table>" , "<strong", "strong/>"... You still have a problem with attributes, but those are not as easy to solve...
  12. Maybe we don't need to complicate. Since a new page will open, we don't need to prevent the click action because it won't be seen. I did this change on ProcessPageList.js and it works pretty well: //line: 403 $("a.PageListPage", $ul).click(clickChild) .dblclick(function(){ window.open($(this).siblings('ul').find('li.PageListActionEdit a').attr('href'), "_self"); });
  13. Related to what I told before, a very simple module: Creates a new field body_notags (I'm taking body for example but it could have settings to choose the fields) and on save passes the content of body through strip_tags() and stores it there. Then you just have to search on body_notags instead of body. Easy peasy.
  14. The pages field accepts a selector. It should do what you want as long as you use "include=all". I'm on mobile, so I can't test.
  15. diogo

    just another kraut :]

    Welcome Andy. Must have felt good to strike this from your to do list
  16. Thanks Soma, but for what I understood, this doesn't do the same thing that I suggested above. Or I'm getting everything wrong... it's possible...
  17. One way would be to store a stripped (strip_tags()) version of the content in another column on the field table, and search on that one instead.
  18. Thanks Nico, you managed to confuse me even more...
  19. Welcome to the forum Lorenzo. Good that you are motivated! About the credits system. I don't know how they do it usually, but to me the process seems very simple, and not different than any other sell. The user chooses the amount of credits -> the system calculates the price -> the user pays -> the system receives the payment confirmation and stores the credits in the user's account. Now you just have to choose the payment.
  20. I'm not sure to understand this. How do you do it? And what do you mean by child and parent templates?
  21. Not what you have in mind, but this could also be solved if the render() method would accept a parameter and pass it to the $page object template being rendered. Then you would just have to check for it on your template, and do whatever you would want with it. edit: :D unbelievable!! edit2: Just to make it clear that i posted this before your last post appeared to me, but my idea is that render() accepts any kind of parameter to be used as you wish in the template.
  22. You can define this on the template settings. Go to the advanced tab on the template page, and on the bottom you have "List of fields to display in the admin Page List". For finer control try @adamspruijt's module Page List Better Label
  23. In your case this has to be done with javascript. Using jQuery you could something like this: $('ul.nav li a').click(function(){ $(this).parent().addClass('active').siblings('.active').removeClass('active'); }); But this will only work when clicking the links, It won't change automatically as you scroll. For this you would have to test for the position of the elements on the screen.
  24. The problem is the quotation marks. You are interrupting the string by using double quotes inside of double quotes. Try this: echo "<li><a href='#{$child->name}' onClick='$.scrollTo( '#{$child->name}', 800 );'>{$child->title}</a></li>"; It even has a better color, hein? edit: the above code is wrong. Check horst's post below.
×
×
  • Create New...