Jump to content

Martijn Geerts

PW-Moderators
  • Posts

    2,769
  • Joined

  • Last visited

  • Days Won

    31

Everything posted by Martijn Geerts

  1. It's not a bug, it's how list elements work. Now the browser tries to make something of it. list elements need an <ul> or for numbered <ol> echo '<ul>'; foreach($page->children as $child){ echo '<li class="A">'; echo '<ul>'; foreach($child->children as $book){ echo '<li class="B">'; echo '</li>'; } echo '</ul>'; echo '</li>'; } echo '</ul>';
  2. I have the same conflict right now for my current project. HTML5 boilerplate suggest just sticking to sans-serif, not specifying a font at all. The vision behind it is simple but clever. (maybe I go this route) Not assigning a font and let the system decide what font renders best. It's logical because the people who build the operating system did lot of font research.
  3. That is caused by Session Login Throttle. With code below you can force Session Login Throttle to delete the entries. And make the account work again. $u = $users->get('admin'); $u->of(false); $u->pass = 'type-in-your-pass'; $u->save(); just throw it somewhere in you template, and call it with a browser visit.
  4. @lundi: http://processwire.com/api/
  5. There's no frontend vs backend. Just don't give them page-edit permissions. Give them permission you've created yourself. Create a permission `frontend_edit` and create a role `member`. On the `member` select the `frontend_edit` permission and save the member role. After this you can assign this role to a person (user). --- In your templates you can use those like this: if(!$user->hasPermission('frontend_edit')) echo 'no permission'; if(!$user->hasRole('member')) echo 'user is not a member';
  6. There's no strictly front vs back logins. For front-end only, don't give them any of the default installed permissions, and only give him a guest role. Later on you can expand it, creating own permissions and roles ( sets of permissions ). You can work with these in your templates.
  7. Hi Neeks, It's fixed in the latest update (week ago).
  8. For the project I work on right now I choosed bxslider. Gonna check out owlcarousel now. (will continue with bxslider for this project don't want to have a multitude of sliders in 1 project ) Thanks Felix, it's looking great.
  9. http://bxslider.com/ is the best open source slider I know.
  10. Yesterday it took me at least 15minutes to strip <p> </p> out of an CKEditor field. Then I gave it up. Restarted apache, as it was not a browser issue. After that the issue was gone. Some how, now and then there are weird issues I can't explain.
  11. I wished unpublished users are visualized with a strikethrough in the admin. The reason: this topic
  12. $parent->absatz_text_index is reset in every loop to an empty string. So it only contains value from the $allchilds->last(), last sibling from $page.
  13. I don't understand how $page->isChanged() can be triggered at all on Pages::saveReady.
  14. BTW: Also wanted to note that I noticed when using TinyMCE and saving page without changing anything in the text it still throws message that body has been changed. Not sure what's about it and I think it is just confusing and has nothing to do with this I experience here. Experience the same over here with CKEditer (at least some dev versions ago). Looks like some js voodoo hits the contents and the purifier changes it back when saving. This results in some kind of vicious circle. Can test tomorrow.
  15. I'm not shure but it was something like: $pages->save($page, array('quiet' => true));
  16. <qoute>What's more, on Italian keyboards you don't have the ` sign.<quote> You must hate MODX then
  17. Never seen Simple grid before, but I like the classnames as they are easily created with PHP. I prefer to stay in PHP, not close and open it every time.
  18. A way of using columns what I like is: if you allow HorizontalRulers in your WYSIWYG you can spit the text with <hr> Every splitted text becomes a column with the code below: $body = str_replace('<hr />', '<hr>', $page->body); $columns = explode('<hr>', $body); $column_count = count($columns); if(count($columns)) { echo "<div class='grid grid-pad'>"; foreach($columns as $column) { $last = ($key + 1 == $column_count) && $column_count > 1 ? ' last' : null; echo "<div class='col-1-{$column_count}{$last}'>"; echo "<div class='content'>"; echo $column; echo "</div>"; echo "</div>"; } echo "</div>"; }
  19. <pwired>I think nowadays a cms should have included this from the start.</pwired> I disagree on this. I prefer well formed structural information, not the graphical representation in one situation. Content should have an independent value, not fixed to one distribution, so it can be used on a multitude of platforms. There are situation where in-page editing makes sense, but we should not forget there's high value in structural information.
  20. Maybe I don't understand what you're saying The halfsuperuser should be created in roles, not in permissions. Every role can have a multitude of permissions you want. You can set give access at Template level.
  21. I might be wrong here: What I find weird is: roles=company Roles is a Pagearray, so I think only a page ID or ID's separated with | would function here.
  22. $page->selected_user <-- holding the assigned users as page reference. if( $user === $page->selected_user ) { echo "users own page"; }
  23. Quite small. Dutchmen activity on this forum is even less.
  24. Goed werk Jeroen !
×
×
  • Create New...