-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
nested foreach loops break html nesting
Martijn Geerts replied to berechar's topic in Getting Started
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 replies
-
- 4
-
-
- multiple loops
- nesting
-
(and 1 more)
Tagged with:
-
New ProcessWire admin theme on dev branch
Martijn Geerts replied to ryan's topic in Themes and Profiles
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. -
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.
-
@lundi: http://processwire.com/api/
-
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';
-
Integrating a member / visitor login form
Martijn Geerts replied to thetuningspoon's topic in General Support
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. -
Hi Neeks, It's fixed in the latest update (week ago).
-
Howto: add a banner that rotates pictures ?
Martijn Geerts replied to motionmindz's topic in Getting Started
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. -
Howto: add a banner that rotates pictures ?
Martijn Geerts replied to motionmindz's topic in Getting Started
http://bxslider.com/ is the best open source slider I know. -
getLanguageValue($lang); gives me complete <HTML>
Martijn Geerts replied to Soma's topic in General Support
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. -
I wished unpublished users are visualized with a strikethrough in the admin. The reason: this topic
-
getLanguageValue($lang); gives me complete <HTML>
Martijn Geerts replied to Soma's topic in General Support
$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. -
getLanguageValue($lang); gives me complete <HTML>
Martijn Geerts replied to Soma's topic in General Support
I don't understand how $page->isChanged() can be triggered at all on Pages::saveReady. -
getLanguageValue($lang); gives me complete <HTML>
Martijn Geerts replied to Soma's topic in General Support
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. -
I'm not shure but it was something like: $pages->save($page, array('quiet' => true));
-
<qoute>What's more, on Italian keyboards you don't have the ` sign.<quote> You must hate MODX then
-
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.
-
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>"; }
-
Cool
-
Request in-page editing / create.js / create.php
Martijn Geerts replied to felix's topic in Modules/Plugins
<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. -
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.
- 1 reply
-
- 2
-
-
$page->selected_user <-- holding the assigned users as page reference. if( $user === $page->selected_user ) { echo "users own page"; }
-
Quite small. Dutchmen activity on this forum is even less.
-
Goed werk Jeroen !