guenter55
Members-
Posts
71 -
Joined
-
Last visited
Everything posted by guenter55
-
Hi @chuckymendoza you are right, I see that problem too and it´s realy a problem. I must think about. In my case it is a problem under the third path all others are secure. /geschaefte/nailcult/firmendaten/ Angebote/News /geschaefte/nailcult/angebote-news/ Bildergalerie /geschaefte/nailcult/bildergalerie/ Avene Beratungstag /geschaefte/sternapotheke/angebote-news/avene-beratungstag/ bearbeiten Neues Beitrag 6 /geschaefte/schutzengelapotheke/angebote-news/neues-beitrag-6/ bearbeiten
-
Hi. I think you got the solution till one year later , but to go sure for all, who read this: go to e.g. field Body/Input/ckEditor Settings Beautify Markup Toggles set Convert div tags to paragraph tags only that´s it! So, "return" makes a <p> Shift+return makes a <br> 2x shift+retrun makes a free line The source ist like this: <p>Das ist der Text</p> <p>Mit Return ist oben Leerzeile und nun mit shift+return in nächste Zeile<br /> jetzt 2x s+r<br /> <br /> ok</p> The result: Das ist der Text Mit Return jetzt und nun mit shift+return jetzt 2x s+r ok
-
Thank you very much again @adrian! You are right, I´m sure there must be a better solution than modifying the core, but your work is great. I dont tried it yet because I set the pagination in admin to a high it does not matter. the problem, this setting is over the hole site. This are the first steps in my project, so, when I need pagination otherwhere, I´ll take your core-code because your code can switch off pagination only for a specific branche. Here you can see in picture the running result:
-
Thanks for that, I tried it, I cannot see any difference? So I have two lists of many User-Pages, now I take the second list out of the root under home in a subfolder (extra branche). One branche are pages with only one site called visitenkarte, the other branche is geschaefte with user-pages that have childs. The templates in the branches are different and a same user can have edit permissions in the one branche and at same time edit and create permission in the second branche. That works wonderful! To do so I have added the name of second branche: if($p->parent->name != 'visitenkarte' && $p->parent->name != 'geschaefte') continue;
-
I will try it! I must admit that I dont realy understand that hooks in module. Is it possible to hide the pagination? Now user must turn the pagelist (only the numbers are displayed) to get his page. And thanks a lot for your helping!
-
You are great!! This seems to work for me. To hide all other branches under /home/ like visitenkarte, it´s correct to exclude this line, isn´t it? if($c->parent->name != 'visitenkarte') continue;
-
Ok, I got it, this is a very good solution, if I want as superuser, that editors should not see some branches of my admin tree! I also tried this, but therefore all user pages has to get a different role. Maybe my english is to poor to explain it exactly what I mean. Let me try it once more: Remember the picture of the admin page tree I had. In /visitenkarte/ are hundreds of pages each a vcard of a member, all that vcard pages have the same template with same role (in my case: only edit). Each page name is equal to the members user name for login. visitenkarte ...klipp ...benetton ... ...hundreds more For example the page klip get a login with username klipp and password and he have the role editor with permission page-edit. The same is for benetton and so on. When klipp log in he should only see in Admin tree his vcard /klipp/ to edit and not be able to see all the other pages in tree! This because, whenn there are hundreds of pages he must search through pagination until he find his page for edit.
-
Hi adrian, thanks for that modul! I´ve installed it, but I don´t know if we mean the same. In Tab of page your modul display Hide this page If checked, front-end viewing of this page will be limited to logged in users with one of the selected roles. In my post https://processwire.com/talk/index.php?...&qpid=84829 I mean backend-viewing=hiding from admin tree, so if the user is logged in to edit his user-site he only should see in backend the page(s) he is allowed to edit (or create...). All other branches (except home) should be not even listed. So let me ask you before I try - I just a little confused about the words "front-end viewing" ?
-
User edits/adds/move only his own page
guenter55 replied to chuckymendoza's topic in General Support
@adrian Thank you very much for helping. That sounds very good, i´ll try it tomorrow morning. -
User edits/adds/move only his own page
guenter55 replied to chuckymendoza's topic in General Support
Hi! On my project I have a similar problem and your are right, it looks like good but only solong you want to have only the permissions edit! Let us have a look at the following screenshot: there is /visitenkarte/ with 133 User-Pages, they all have the same template and the same role (edit). In this case the Example-User schwabegger has another page on root with more then one site and another template. All others in /visitenkarte/ can have admin to their only 1 page. You see schwabegger can edit, create... and (the list is too long to show this in picture), he also comes withe a page under /visitenkarte/ schwabegger/ which he only can edit! And others such as klipp with the same template, he only can view. First I had the same as you, if you not only want to have the one permission to edit but also create or more, the user were still able to edit the other users pages. So I made a deeper look and the solution maybe in the right combinations of roles and permissions to that. It is a little bit difficult to explain that, but I´ll try: Remember: user schwabegger has a page in root with different template and role with different permission, in root he can also create (make children). User schwabegger also has a page like the others in /visitenkarte/, all have the same template and come with the same role (in visitenkarte) but only permission edit. Ok - the pages Home give to the most others only the permission view /visitenkarte/ himselve has only permission view (from parent) all the user-pages like /klipp/ have the same template with role editor and permission from parent (view) + the Page Edit Per User Permission!! this makes it editable even though the page permission from parent is only view! /schwabegger/ (root) have other templates and the page /Angebote/news/ has a extra role redakteur with permission create Now, this works fine as it is! But - and that´s I think what you mean @chuckymendoza - if there are other (user)-pages (here in root) which must have the same templates (and more permissions than only edit), the admin of /schwabegger/ can edit the other pages! Till now I can´t find a way to solve this - I hope somebody else could explain a solution!? The other problem is that for such sites all pages are viewable. The Modul HiddenAdminPages maybe make sense for a few pages. I think there must be a function in core of processwire to say like "only editable pages are viewable". Please let me know, if there is a way to do so! -
User edits/adds/move only his own page
guenter55 replied to chuckymendoza's topic in General Support
Hi, you can give user 1 a specific role, e.g. myeditor. To do so, go in admin to Access/Roles and create a new role named myeditor. Then go to the new role and give the permissions you want: page-view, page-edit, page-move and so on. Go to Users/myeditor and assign the role guest and myeditor. So you have the modul Page Edit per User, you can assign in addition under Pages user may edit the Page. For User 2 ... you only have to choose the page you want him to edit. At the end all users have their own page (or more if you want) and the other pages only can be viewed. My choice is to install one more modul: hidden-pages, because if a user should be able to edit only his page, I dont want that he can see all the other user-pages. With this modul installed you find under Roles/myeditor the section pagelist_hidden, where you can choose all the pages, this user with this specific role may not see! -
@ceberlin, you can solve this very easy in source: /public_html/site/modules/ProcessPiwikAnalytics/ProcessPiwikAnalytics.css add this code: #content .container > form, #content .container > .ui-helper-clearfix > form { top: 30px !important; }
-
Hi, great Modul, thanks! I installed it on 2.5.3 and cannot set to multisite tracking, after saving it´s disabled again.
-
Hi daniel-not-dan, It´s exactly the same problem in my PW 2.3.5 with pixlr-module (even with new version), there seems to be no solution till now, but you get edited images in your PW in this way: 1. take Pixlr Editor (not Pixrl Express) 2. make in Editor what you want and go to Save... 3. in save-dialog choose my computer 4. upload the edited image to PW In PW you have the original image + the new edited image. Two steps more but work! Edit: I loaded it again from Github/dev-Branches and since 6 days ago works now perfect!! Thanks to PavelGIX!! But if you want keep the original, try above!
-
Hi BernhardB, on my PW 2.5.3 only the left Button to pixlr works correct, this pixlr-version has an Save as... so I first must save my edited image on my computer and load again in PW. It´s the same issue as daniel-not-dan described in detail above in Post #21. Do you get this solved? Edit: New verson since 6 days on Github/dev now work perfect!
-
Good work, and sooo fast! SUPER! thanks The two buttons appear, but by going back it kills the image in image-field and set it to 0 bytes. It works when I save in pixlr to "my computer" and load again. This will keep the original image - but it´s not what the user expected. It would be perfect if you can solve this issue?!
-
hi, I installed the PixlrEditor in PW 2.5.3 but it dont work. No buttons near image-field on hover like in earlier versions. Is there a chance to get it work? best regards
-
Thanks for answer! You are right! But "why simply, even if you can have it with difficulty..." (I hope it is in english what I mean in german...) Now, just for interest. I think it would be a cleaner codedesign. As it is a code from mindplay.dk I still hope he maybe give a solution to that.
-
That was my first simple solution, but I think it is better in the function or foreach loop. Here my full code: <?php // function für Menü function visit(Page $parent, $enter, $exit=null) { foreach ($parent->children() as $child) { call_user_func($enter, $child); // wir müssen jene Kinder ausklammern, die nicht wirklich Untermenüs sind! // no childs that are not really childs (submenus) or such I dont want! if ($child->numChildren > 0 && $child->title !== 'Zimmer' && $child->title !== 'Ferienwohnungen') { visit($child, $enter, $exit); } if ($exit) { call_user_func($exit, $child); } } } ?> <nav id="navigation" role="navigation"> <div id="main-menu"> <!-- <ul><li><a href="/">Home</a></li> --> <!-- dont want it here --> <?php visit( $pages->get('/') , function(Page $page) { //echo '<li><a href="' . $page->url . '">' . $page->title . '</a>'; // make the current page and only its first level parent have an active class if($page === wire("page")){ $class .= ' active'; } /*if($page === wire("page")->rootParent || wire("page")->parents->has($child)){ $class .= ' active'; }*/ $class = strlen($class) ? " class='".trim($class)."'" : ''; echo "<li><a$class href='$page->url'>$page->title</a>"; if ($page->numChildren > 0) { echo '<ul>'; } } , function(Page $page) { echo '</li>'; if ($page->numChildren > 0) { echo '</ul>'; } } ); ?> </ul> </div> </nav>
-
hm - what exactly do you mean? Please see the code above in Post #11 and my changes made above, I made nothing more.
-
Thank you! I tried this in the code above from mindplay.dk but I don´t get it work in the function call "visit". I tried this: $home = $pages->get('/'); $menu_items->prepend($home); visit( $menu_items , function(Page $page) { ... But I got this error: Error: Call to a member function prepend() on a non-object
-
Hi, this works fine for me - but how can I get the "home" in this menu? thanks for helping!
-
Hi, for all german users of this FormTemplateProcessor.modul who want to get german Umlaute like öäüß and not found the issues to similar slovak characters on github. After you have checked all the other solutions of that problem, like to save the page where the form is in "utf-8 without bom" and set the right header of the page, then only one is to do: search in /site/modules/FormTemplateProcessor.module for $value = htmlentities($this->contact->get($field->name)); and change to: $value = htmlentities($this->contact->get($field->name), ENT_QUOTES, 'UTF-8'); This was the solution for me. (Lösung für deutsche Umlaute im Kontaktformular) Thanks for this fine modul, ryan! _guenter_
-
You have found the right words for me... I´ve tried everything except this setting: "Home" and no template selected. It´s exactly that what I searched for and works great now! You are right, but sometimes it is very usefull. In my case there´s been some users access to put there content to the site. So there is no need to see a structure that could irritate them. I know this. This was a workaround, because I don´t got it worked at the beginning and I wonder about to do so. But now there are the right settings. Of course, I just have one template now. Thanks for the links! I tried the modul Page edit per user, maybe that´s a good solution in combination with pagelist_hidden. Thank you very much for helping!! Oh, I forgot - only one more thing in addition to "more features and configuration would go pretty complex" Is it possible to make a selection like "Hidden all" ? This would make it easier to allow one page and hide all the others.
-
I do not really get it to run. I gave 3 users the access to edit their pages. I have added the pagelist_hidden field to each user, but only for one user I could select exact one page to hide and no other! Additional in the selection are only the subpages (News| News from user 1...2...3) and not other like "Blog" or "Contact". It´s difficult to explain, the templates of the pages the user can edit are cloned, so all is the same, but only for user 2 I can select the one page of user 1 (News from user 1). If I select in addition the page that user 3 can edit, the selected page cannot be saved, after saving it just show again the page of user 2 is hidden. And this is ok, when logging in as user 2, the page of user 1 is not listend in admintree - so it should be. But neither for user 1 nor user 3 I can hide something more, the selection-list is showing, but after saveing it is nothing select. I have no more idea, I tried all I can do - it seems to be so simple: it should show the full admin-tree and I select per user what he can see and what not. Have anybody got this run??