-
Posts
6,808 -
Joined
-
Last visited
-
Days Won
159
Everything posted by Soma
-
When you install there's a example site that show's the basics. It was enough for me at least.
-
Multiple labels and descriptions for the page title
Soma replied to doolak's topic in Wishlist & Roadmap
Yes that's what I mean – but this feature of label field for template is already commited from 2 days... installed it already but the template select doesn't show the label. Must have missed something. -
Thanks a lot formmailer! Great to hear. 8)
-
Multiple labels and descriptions for the page title
Soma replied to doolak's topic in Wishlist & Roadmap
I agree with Ryan here. I think this something I thought about a lot already too, and ofc would be handy. I think it would be already enough to only be able to define a description for each field per template. If the label of the field is also changeable that may would be great, but could lead to confusion on devs side too. Though since I'm using my field helper module, I'm able to see the real name of the field when editing the page. And if you then can see the real name of the field in the edit template content, I don't think it's a real problem. The cons is having a constantly confused client questioning which the title is for now in this template, situation... If you end up having many different templates for different uses like normal pages, files, page elements (I use as pseudo childpages to have flexible content elements)... xyz objects, clients , products, polls ... I start to really wish there were more options to descripe. I would greatly appreciate it. This would give globally used fields like title, body, date etc more options to make things more clear to the user and keep them reusable. New subject While at it, I came here basicly because of a simliar wish I have for templates. While there's lately a "label" field for description of the template, I wish there were 1 more for what the user see's in the select when creating a new page. It currently shows the system name of the template, while I prefer that, I wish I had the option to define another for the user. What do you think? -
Thanks Ryan, I kinda gave up to set up virtual Windows on my mac, and my PC died lately :/ I'm considering browserstack.com for IE testing, but it's expensive and last time I tried free 1 hour, it was kinda slow (but still better than none). I would really appreciate it, as I need to always take care of it when updating core in several projects, though it still is doable.
-
I also stumbled over this , I did use a date field as label in the advanced template setting, if not filled it showed 1.1.1970 in the page tree if I remember correctly... Now it's cool it show nothing if date isn't set. Speaking of the tons of commits you did, I especially like the new template label field... was kinda wondering already why there's none. Wouldn't it make more sense to name it Description, I think it could be mixed up with the templates labels in the page tree?
-
So far I don't experience any problems with other Browsers, still works fine. FF, Chrome, Safari ... not sure on older versions of them. I'd appreciate any help testing this a little more. Thanks guys for the help.
-
Ryan see my previous post... I think we got an easy solution. But would be cool if you check if there would be any problems with the rest of the plugin code. I can't make my mind around what it does with the checks for if parent node selection is "A" etc. But so far it works fine, setting/removing links and edit them in IE.
-
I found a solution using getBookmark() and setBookmark() to restore selection. I don't know if it works in all cases, but now we got something. I mainly do // global before (function... var editorCursorPosition; //before modal dialog is openend. that's where IE still has selection. editorCursorPosition = ed.selection.getBookmark(false); // in the dialog jquery function // to restore selection.. and the link will be set on text selected... ed.selection.moveToBookmark(editorCursorPosition); I attached plugin. I would appreciate if you could test if it works for your guys.. pwlink.zip
-
Thanks for testing! Shame it doesn't work. I tried to compare the image PW Tiny Plugin, cause there it "works", the selections stays. But no luck so far. :/ Is this related to the issue? http://www.tinymce.com/forum/viewtopic.php?id=17374
-
Yeah exactly... it's driving me nuts
-
Thanks Apeisa for the confirm.. Yes I'm currently trying. It seems the selection get's lost when modal window gets openend. It works with other dialogs, like image or other TinyMCE commands. I can select text and it's still selected afterwards... I'm trying to figure out why the selection gets lost. But no luck. :/
-
It doesn't matter, it's a problem in all , IE8,IE9 ... --- If you select text, click on link insert... close dialog ... text selection is gone.
-
Again, IE problem. So far all IE. I just got a session with a client on phone where he wasn't able to set a link on a text in TinyMCE. She's using IE. The problem seems the text selection gets lost when clicking link button, so when I close PW link dialog the text I selected before isn't selected anymore. So when setting a link it gets inserted in the HTML but at the beginning and not visible cause there's no a text. I appreciate any help finding out what's up with this and how to fix it. This is pretty confusion since the client don't know what's going on, and I'm pretty helpless here now. They can't use another Browser, so this is no option.
-
Let me search it for you.... ok maybe not exactly what you need. http://processwire.com/talk/index.php/topic,34.0.html Why not just connect to your db manually using db->query? http://processwire.com/talk/index.php/topic,23.0.html ok I'm stupid... But I'm sure there's a way to create a new db object with other DB like Pete example.
-
Module: Languages (multi language content management)
Soma replied to Oliver's topic in Modules/Plugins
I tried to install lates version and got some troubles. I unchecked the home_language template "can't move" setting and deleted the lang trees. After deleting the template itself, I was ready to reinstall the module. Now when installing I got error of duplicate entry in fieldgroups .. so I had to manually delete the home_language template/fieldgoup/field entries. After that it all went well. I created a "about us" page in /en/. Oh and it already has a hidden 404! Cool Ok, now I went to add new language, and selected clone from a existing language. Now I got a /de/ with two 404 inside, so It got one added and one cloned. And I can't remove one of them anymore. Regarding the languages template var array. I tried to do a simple lang navigation that shows links to exisiting languages. ie ( DE | FR | EN ) I can do something like this which is cool: <?php if(isset($languages)) { foreach($languages->translations as $key => $trans){ $class = $trans->url == $page->url ? " class='on'" : ''; echo $pages->get($trans->url)->status; // url returns 1 on a unpublished page - ? echo $pages->get($trans->id)->status; // id returns 2049 on a unpublished page - ?? if( !$trans->is(Page::statusUnpublished) ){ echo "<a $class href='$trans->url'>".strtoupper($key)."</a> | "; } } } ?> But it would have unpublished pages too, so I had to add a check. If a page in one language is unpublished, how are your plans on this? Oh, this might something for Ryan. There a weird thingy I experienced when checking for page status. It returns something else when checking using id than with url. echo $pages->get($trans->url)->status; // url returns 1 on a unpublished page - ? echo $pages->get($trans->id)->status; // id returns 2049 on a unpublished page - ?? If you might find the time, Ryan, can you give some examples checking for the different page statuses in a new thread? Is $page->is(Page::statusUnpublished) the recommended one? EDIT: Don't know if you're aware or still working on. When I create a new in /en/ and keep it unpublished, then go and create the translation for /de/ and select "create new page", then hit "save but keep unpublished" it creates the translation page in /de/ fine, but it's published. I think it should be unpublished too or always by default. -
Planning a page version/history module - making PageFinder hookable
Soma replied to Rob's topic in Modules/Plugins
In the CMS we use at work, you can specify which document types AND how many version back you want to keep. This makes sense to not kill the system... -
This actually is a bug, but not todo with this module. My Boss experienced it a few days ago, and I forgot to report... You can only delete it if you put a space char inside the textfield.
-
Have you already added this to the core?
-
Thanks Ryan for the module. I already was wondereing what's about these textformaters, as I didn't really get into these until now , I know they exist but will maybe give it a try. I always thought they're too complicated and not intuitive for clients to use. But maybe I'm wrong. I would love to hear experiences from others using it. I know it can make sense regarding the issues caused by wysiwygs. But if you know your way around in one of those you can pretty much configure it to your needs and restrict all things that could make troubles, but still it can be buggy in certain situations and inconstistent in different browsers. While a simple textarea you can't go wrong except not knowing how the markup tags work or make an error there, wouldn't it be possible or make sense to have a preview or a validator?
-
I did run some local test, and I absolutely love it now! apeisa & smd, thanks for the awesome module. I think I will definately use it in a future projects, and in my moms gallery website now. Wohooh! --- Just tested again to see if thumbs get deleted, and they don't (after deleting image on page). What's the current state regarding this?
-
I splitted this topic from Thumbnails topic. Also splitted and merged few of Soma's replies to these two topics -apeisa Now I wanted to install the new renamed, and wanted to deinstall the CropImage first. Do I need to deinstall all 3 Modules manually? Anyway, after deinstalling the FieldtypeCropImage my PW install is throwing an error and I can't do anything, not even bootstraping. I know, I should have deleted any field using this FieldType first, but wanted to try what happens. Now I think I need to install it through DB again, I'll try. But regarding installing/deinstalling of such modules using multiple modules, I already wished there would be an more clear and easy way we handle these modules in general. Especially with growing modules that are installed it can get cumbersome to manage. Wouldn't it be cool to just have a Thumbnail module "main" module/installer, which handles only install of the module(s) needed. There we also need some logik for if Fieldtype are still in use in templates, and throw a note to avoid complications like the one I experienced. How could we solve this better (just thinking out loud). --- I looked at it, and its just an entry in the modules table to install it in DB. I didn't had to reinstall just drop the Thumbnails folder and delete the CropImage folder... I don't like having three separate folder for one package so I let them in Thumbnails folder. I don't think there will be much problems once you decide to use as module on a site you most likely will never have to desinstall it, but never say never. Also this can be handled by the deinstall method by the fieldtype himself, check for any template using this fieldtype and throw error. But to improve and simplify the module management in one way wouldn't hurt, and there's already some discussion going concerning module install in the future of PW.
-
I think he means "For Your Installer". ;D
-
Progress on ProcessWire 2.2 and overview of multi-language support
Soma replied to ryan's topic in Multi-Language Support
It's actually: language-country code. I thought. -
That's what I'm using since years. clearfix class that does all this. A latest variation of ti is in html5 boilerplate too.