-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
I don't know really yet. Will take a look closer later. It's PHP Version 5.2.9
-
Thanks nik, yeah indeed theres a new config for that. It works now. BUT my module PageListImage module which shows image in the label in the page tree doesn't work anymore then... Arg
-
Is this already in the dev branch? I have it installed and this feature doesn't seem to work. I can still access files from a unpublished or protected page.
-
I have dev branch installed and using session db. It worked well so far, but loggin out the first time after a while gave me an error: Error session_start() [function.session-start]: Failed to initialize storage module: user (path: /Applications/XAMPP/xamppfiles/htdocs/pw-dev/site/assets/sessions) (line 301 of /Applications/XAMPP/xamppfiles/htdocs/pw-dev/wire/core/Session.php) It shows me this error now everytime I log in or out. After a refresh it's gone till next time.
-
As you see in my screenshot I already have a tools in my PW. Ryan, ProcessWire1 seemed to have many great features 2 is still missing
-
I just wanted to write that i sometimes had similar issues i think when tinkering a lot with modules. I figured mostly just a refresh 'check for new modules will throw such an error but delete module cache and is fixed. If not manually delete cache. Glad u figured out what the problem was.
-
Isn't here the opening <p> missing ? echo substr($page->summary, 0, -4) . "… <a class='more' href='{$page->url}'>" . __('View More') . "</a></p>";
-
I would give 10 stars for this if I could! Wow it's happy module day Edit: BTW I have a module (also shared in some thread) that does exactly this, using a page select in the user page.
-
Thanks for the responses guys! No, this is a create pages tool and not remove pages. This would be another mini app maybe. Thanks, the outcome of this is still pretty unclear as it was primarely a little trying out knockout.js and turned into this. What do you mean with quick edit in WP? I don't know it, but a extra link beneath the created pages that open the page in fancybox would be easy. I also prefer to CMD+click on edit link to open page in new tab for quick editing. Thanks Ryan. Yeah it was a little adventure and I wasn't really taking care of the name much. Definately will change to something else. Since ProcessTools gave me a broader scope of what I could do and had some idea to make this a page with a set of 1-3 tools for different tasks who knows. Might aswell just let it as is and add 1-2 features to this. I also had the idea to add yet another action button on the page list tree that opens something like this tool in an overlay. Might be even better, but can't get myself around adding another button...
-
In Middle Earth with "open source cms" ProcessWire is on #2 when logged in, and on 4th page #1 if logged out. Through there's not many using PW her in Middle Earth except Gandalf who still needs to finish the orks.me.
-
(Note: Module name temporary and will change) As recently mentioned here I am recently working on a little module. This module gives you a new admin page under "Setup" to create pages in a "batch" mode. What does it do - You can select a parent page where you want to create your pages. Then it will give you a list of templates you can chose from. Those should be permission and template setting aware. Also only parents that really can have children will work, else it will give an alert. - Add as many pages you like by clicking "+add Page". You can set the pages published or hidden status. Sort or remove the pages. - After you entered a template and at least a title you'll be able to klick "create Pages". If successful it will append the list of pages you just created with an open in page tree or edit link, and also the parent. - You can add pages and repeat the process to add pages to the pages you created simply by changing the parent page in the field above the table and go on. It's all ajax and not page load. Also the links of the created pages that get appended below will stay in the document and only the form entries get cleared. This is still work in progress, but I thought enough to share and if you like you can try/test/use it. Download: ProcessTools.zip Screen:
- 16 replies
-
- 15
-
You could also output it as a js var and use it in scripts. <script> var mycolor = "#<?php echo $page->color?>"; </script>
-
/** * Save the data to the cache * * Must be preceded by a call to get() so that you have set the cache unique name * * @param string $data Data to cache * @return int Number of bytes written to cache, or FALSE on failure. * */ public function save($data) { if(!$this->cache) throw new WireException("You must attempt to retrieve a cache first, before you can save it."); $result = $this->cache->save($data); $this->cache = null; return $result; } Does this answer you question?
-
I think it's better to start a new topic, as it doesn't belong here. Also, I think I'm more confused than you, as I don't understand what you want and what exactly your setup is. So please try to give all the infos needed. Maybe a screen of you edit page screen and your code will help understand. Thanks
-
That error is strange as if it tries to create new RepeaterPageArray and nothing to do with slice(start,end)... Might be a bug.
-
RepeaterPageArray extends PageArray so it should work.
-
In fact you spend 1/3 time uploading TinyMCE in PW and not PW itself
-
If med is a repeater field you would also have to loop it, same as with looping a page array. Hope that helps. Am on mobile...
-
Ok it wasn't the table, it is a image inserted in TinyMCE which looks like this in html: <p><img mce_advimageresize_id="Inputfield_body_mce_1" height="343" width="643" mce_src="/site/assets/files/3349/egg.jpg" src="/site/assets/files/3349/egg.jpg" /></p> I think this was because the table failed it failed to strip of the TinyMCE temporary attributes. omg. No not really, all image get inserted like this, nothing with table todo. Strange thing.
-
This bug is annoying, I got now a page where someone tried to insert a table with attr 100%. After saving the table in TinyMCE is gone, but it throws an error and fails to load completely and editor stays in a state where when saving it won't really save new content. DANG!
-
I think knockout is the simplest to learn and understand. Haven't tried or looked at all others, but they look more complicated already by looking at them, and backbone can get really hard but it is depending on your level of confidence with JS a lot. It's often good to learn a simple one and with more experience maybe others become more clear. Knockout has this great tutorial which I quickly seem to grasp the idea and I think it really is a great tool. You don't have to think about updating stuff and dependecies and binding are rather simple once you get the hang of it. Still lot of things to discover and learn. I found the mail app example with http://sammyjs.org/ very convincing, which gave me the "ok I'll try it a little more".
-
Something I just recognized. When a page is unpublished, and I hit enter on a text field, the form get's submitted and page is published. This is kinda bad, as user isn't maybe aware of it. Maybe some dialog alert would be good way? Ideas?
-
While at it make the ->first() also work as ->first.
-
I'm currently trying/learning out knockoutjs. http://knockoutjs.com/. A while ago I tried backbonejs which is also very nice but more complicated than knockoutjs. I found the tutorial kinda cool and just wanted to share here. Maybe something like this could be done for ProcessWire Check it out: http://learn.knockoutjs.com/ To try it out and learn I started a Process Module for creating a bunch of pages. So far it's very nice and I will share very soon. Through not sure if it would be a to be officially released module or not. It now looks like the screen. You can choose a parent page, then it will enable "add" button and provide templates that are allowed to use (regarding family setting) or all templates that can be used. After creating the set of pages the button "create pages" will be enabled and you can create them, once done you'll see a list with a link to the parent and the pages you created.
-
Just read it! Modules/Plugins Questions, answers and support for ProcessWire modules.