-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
oops, I will confirm this at home, and make sure to enable it
-
I like this theme very much! I also liked your PinWire some time ago Anyway, there seems to be a problem with the name, next to the login. i checked the default.php and found out something wrong in these lines <?php if($user->hasPermission('profile-edit')): ?> <li><a class='action' href='<?php echo $config->urls->admin; ?>profile/'><?=$user->name?></a></li> <?php endif; ?> I couldn't find the error there(maybe because i don't know much of php, or maybe because i'm quite sleepy ), so i just rewrote it in a different way, and it works now <?php if($user->hasPermission('profile-edit')): echo "<li><a class='action' href='" . $config->urls->admin . "profile/'>" . $user->name . "</a></li>"; endif; ?> EDIT: Hm, In my office computer it works fine just as it is on github. I took another look at the code, and there seems to be nothing wrong with it... anyone knows what might have happened?
-
I came across this thread only now. This module would certainly be very useful and i though i could throw something in the discussion. that one is from January already Symphony as a nice way of dealing with this problem. The System generates the markup, but instead of using it automatically, it just gives it as an example to paste on the template file. Here is the form builder on the admin: http://symphony-cms.com/workspace/assets/learn/09-event-editor-1264826920.png; and here is a usage example: http://symphony-cms.com/learn/tutorials/view/say-hello-to-symphony/6/#pagehead. I think this is quite a simple way of giving control over the markup.
-
Thanks Ryan, as soon as i start working on it again, I will open a new thread in the modules forum to ask you some questions, and also to get some ideas. As I told before, I'm using a dev version of chrome (14.0.803.0 dev on linux), so, it's probably some bug from the browser. thanks, Diogo
-
Hi! Sorry for the late answer... and it won't be very complete one because i've been busy with other stuff. Concerning the "bug": I did try it on the installation where i had the problem, and i was able to drag them inside links that don't allow children, but not always, it allowed me to do it only twice (not only javascript, the system really accepted the change). Is this possible? Anyway, it didn't happen anymore after I applied the changes from github. But perhaps "page-sort" would more accurately be termed "page-sort-children". On the sort/move issue, there was some dumbness from my part. I confess I didn't realizes that "sort" refers to the children, and, consequently, it must be applied to to the parent page. Considering a rough (and abusive) estimate of 20% of users that may be as dumb as i was i would say that this would be a good solution. Your debugging tool is really looking good–please keep us up to date. And you mentioned some stuff that you didn't yet know how to do, but I wasn't clear about what that was–please post questions any time. Also, if you are interested, I can show you how to develop this as a module so that you don't even have to put this in your templates (the module can slip it in there at page render time, in any template's output). I haven't had any time to work on this. I did try to make a module, base on the discussion you had on Apeisa's Admin toolbar module. But since I was having some problems to make it work, I decided to start hardcoding the tool on the header, and apply this later. Your help will be very welcomed! The stuff I don't know how to do, is mainly, to accept the variables on the imput area, and render the result on the output. I can imagine it's not easy to implement it without safety constrains... but i really don't know. The idea would be to show the user the main variables of the page he is in, but also allow him to test any other variable that he can reach from that same page. Another thing. Since I last updated my dev version of chrome, the processwire website is looking like on the screenshot attached. In Firefox and Opera, everything is fine. Should be some problem with this chrome version css implementation, but i wanted you to know.
-
Jbroussia, you told it better than me Ryan, I solved my issue by applying the two roles (it didn't even occurred to me, and it was an obvious solution), but I confess it was quite confusing because I still don't understand very well how the "sort" and "move" permissions are working together. For what I understood "sort" only works when "move" is also allowed. I think the best thing would be to make these permissions independent of each other. If you allow "sort" but not "move", why not keep the move handle on, and give a javascript alert when dropping it on another parent? (in general, i would even prefer not allowing the dropping at all, instead of the alert) Concerning the bug: I'm not on the same computer, and on this installation I don't have the same problem, although I did have page-add permission added to the roles I am using... strange... I will check on the other one tomorrow and see if the fix works. While making these tests, there where two things that annoyed me: The first one was, when logged as "writer" having some pages on the tree with "edit | view | new | move", others with "new | move", others only with "view"... was visually confusing. I would keep them all in place and make it obvious wich are those that don't work (changing the color, for instance). The other one was having to go back to the tree after creating a page to create another similar one. Maybe there could be a "create another one" button after saving a page that would immediately create a sibling page with the same template. A good place would be the notifications area. Something like this: "page /path/to/the/page/ published. You want to create another one?" -------------------------- The debugging tool is just a rough draft for now For now, I only applied this code to the header include, partially based on the code you gave me before, and styled it a little. The idea would be to turn it into a module instead: <?php if($input->get->debug && !$user->isGuest()) { ?> <div id="debug-tool"> <div id="input"> <form action="#" method="get"> <input type="text" name="debug" /> </form> </div> <ul id="page-info"> <li>template: <?=$page->template?> </li> <li>name: <?=$page->name?> </li> <li>path: <?=$page->path?> </li> <li>children: <?=$page->numChildren?> </li> </ul> <ul id="page-fields"> <?php foreach($page->fields as $field) echo "<li><strong>$page->" . $field->name . "</strong> " . $page->$field . "</li>"; ?> </ul> </div> I am dividing the tool in 3 areas: one for basic info about the page, one other for throwing all the fields available for the page, and an input field on the top for inserting other variables (there would be an output for them under it, but i still don't know how to do this).
-
I'm always amazed on how quickly you answer to the questions on the forum! Makes me believe Processwire will grow fast and well I can't check it now, but I will come back to it later. I can also put some screenshots of what I already have for the debugging tool. Thanks
-
I was trying the user access on 2.1. I really like it, and think it can do everything I wanted. There is one thing that is puzzling my mind, however. I created a hypothetical situation to explain this: I have a page named "projects" with a template with the same name that i don't want the user to edit, or move, but i want him to be able to create children for it (using the template "project") and to be able to edit and sort them. The problem is that the user is able to move the pages to another parent, but not move them among siblings (because i'm not allowing him to edit "projects" itself). I don't know how this could be solved... maybe by being able to choose, not only wich roles, but also wich permissions for each role on any template... i don't know, maybe it would add to much complexity... There's also a weird thing happening. Although i don't allow creating new children for the template "project", it's possible to create them by dragging the pages there (like on the screenshot). This is not the intended behavior, is it? I'm also working on the debugging tool, and i think it can be very useful. Maybe I will be able to make an extension for it
-
Thanks for the kind answer Ryan! I will try your suggestions.
-
I guess i didn't explain very well my point i think because of my inexperience with designing websites and using cms's in particular. Apeisa, for what i've seen we really can't compare drupal and Symphony in terms of simplicity and control. In Symphony you never have to think how you can remove something, you always have to think how to had it instead. It's core it's also very small and only few extensions are active by default. This is why I think we can compare it with Processwire although they are so different in other things. I won't try to explain how Symphony works because I will be unsuccessful again for sure. But maybe I can tease you both to study it a bit, and discover how it has some really nice things that could give ideas to make Processwire even better. Ryan, maybe you got it right about the forms, although I was not talking only about them. One of my concerns is how the editor will interact with the back end... and, while the tree view is perfect for building the website, I think it would be nice to be able to organize the the content for the editor. I mean, some people could see everything, others only some pages, while others would land directly on the new blog post page (like in textpattern, for instance). Since I also referenced the debug tool in Symphony, I was also thinking how Processwire could have something similar (an idea for a module maybe). In symphony, if you add '?debug' at the end of any URL it shows you all the XML data that you can access from that page, and it let's you try XPATH expressions highlighting the nodes that you reach with them. I can imagine that in Processwire we could have all the results of each field shown, and an imput field where we could write some variables and have the generated results. Hm... this discussion went quite far away from the Breadcrumbs subject. Sorry for that.
-
It's not the first time i read about symphony on processwire forums, and thought i could tell something about it. I was trying symphony before i discovered processwire, and besides the obvious differences (starting by xslt/php templating systems), both have one important thing in common, they give you complete responsibility for the markup and great flexibility on constructing your website. For me, the problems with symphony is that the xslt can get quite complex (although i love how the xml data is thrown at the pages, and how you can check and easily get any node with their debugging tool http://symphony-cms.com/learn/concepts/view/devkits/), and i wonder if it make sense to output in pure xml when using html5 (there are big discussions on symphony forums only on how to output the doctype). Where i think symphony beats processwire is on the flexibility it gives the developer/designer, not only on building the markup and the front end structure, but also on building the backend structure, allowing him to build the forms independently from the pages, and presenting them to, or hiding from, the client/writer with the structure and organization he wishes. This flexibility is achieved basically like this: sections(fields) >> datasources(xml) >> pages(xslt) (http://symphony-cms.com/workspace/assets/learn/visual-overview-1258682736.png). I think this is very powerful, and maybe i'm wrong when i assume processwire doesn't achieve this kind of flexibility on the back end. It will be perfect when it does
-
Translating administration – language question for all users
diogo replied to Adam Kiss's topic in Multi-Language Support
I will be glad -
I was playing with tumblr API inside processwire and I think it integrates quite well. Using simplexml you can have complete control of the markup (ok, not complete...) and, for what i've seen, even a complete separation of kind of posts, tags, etc. You can also make your tumblr blog private, so it will only be visible inside the site (hm... i have to confirm if this is really true). I think it wouldn't even be difficult to pull the data to your databaseif you want to keep it. So, If you don't mind putting your data on a server you don't control, i think it can be a neat solution http://www.tumblr.com/docs/en/api http://finlay.tumblr.com/post/529010691/embed-tumblr-into-your-website (if you copy the code from here you should replace the quotation marks) I'm only a graphic designer adventuring on learning webdesign and programming. Please correct me if i'm saying everything wrong here
-
Translating administration – language question for all users
diogo replied to Adam Kiss's topic in Multi-Language Support
HI all! I found Processwire very recently, and I really like the concept behind it. I'm from Portugal and would like to help with the Portuguese translation. I agree that it would be much easier and friendly if we have complete sentences. The Portuguese language also raises some issues, but taking the example from Marcin I can see it might be less complicated than Polish A página foi criada -> Page was created A página não pôde ser salva -> Page cannot be saved Foram salvas duas páginas -> Two pages were saved Foram salvas cinco páginas -> Five pages were saved One major issue (but of a different kind) that comes to my mind is if there should be separated translations to European Portuguese and Brazilian Portuguese.