-
Posts
6,798 -
Joined
-
Last visited
-
Days Won
158
Everything posted by Soma
-
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.
-
Sorry for the double post. Ryan, I'm using this for simple form. I noticed there's a setting "emailSubject" but on the mail send, you don't enter $this->emailSubject its a hard coded "Web Contact" ... Also I had to modifiy it a little here and there to make it work for my case (multilang). I also added a property to be abel to add a string before the message body. I know this is still very rough version, but just to mention.
-
Thanks for the kind words. Yeah, flash bye bye! The content is in html form that is exported from indesign files. We work together with a multimedia company doing the html export. So tables are html tables "clean" and with predefined stylings that reflect the print design. I then export the htm files they give us into PW and use CSS to style. From there I generate xls on the fly using phpexcel and simple html dom. So this is a one time export-import scenario, the data doesn't come from somewhere dynamically. This is dictated kinda by the workflow they got. It's all a bit complicated going from excel to indesign for print, then from indesign to html... This will all get prepared shortly before the print version goes final, so the last import will be always done 1-2 days before release of the print, because they change thing until last moment. Somehow I feel there's much work involved preparing things on various ends, but there's no other solution to this, like xml or xls zentralised data that could be used by different medias.
-
Thank you Apeisa for the infos. I have another thing we might should look at. There seems to be problems with floats not cleared in the PW admin (default), like I do normally use clearfix class. I've experienced this while creating themes. For example also you redirects module, the buttons overlap the container (form) on bottom. I think there should be some solution to make this working better and consistent. I had to implement a clearfix over script to some containers so I can add inline/floated stuff. I sense that there we will have problem when there's modules and custom theme's that do thing differently. What is everones experience about this?
-
It works for me... <?php $page->created = time(); $page->save(); // outputs current timestamp echo $page->created; --- ops but after removing it outputs the old again, so it's not saved.
-
Thanks for the update! I just trying it out and its awesome! Also the strange messing up is gone now. Also like how you solved it with the thumb links and the preview is awesome! I think it's an ok solution to make a popup, and it's well done I think, just the order and preview I still don't like it with big images. What if there would be no preview just the big image and the "crop" button on top left or so? After cropping we already have a preview, and it already can be edited again. I think it's hard to see there's a button on bottom hidden, just thinking. --- Somehow the crop button is at a strange place for me, is that only my theme? (see screen)
-
Yes that's the language country code. de-ch is german-switzerland
-
Since a few feek I've been working on the relaunch of zueblin.ch and its reports on reports.zueblin.ch. It's gone live today so it could be DNS isn't switched everywere. Design and concept is made by a print designer, I did all the programing and some design elements. It's pretty big project with 3 domain (.fr and .de) in 2 languages all in 1 PW install, and it was done quite fast in a short amount time. It has already about 1100 pages and ~500 pdf's as pages. Special is the fully ajax loading of all pages which degrades to a still working site without javascript. Many thanks for all the support and help with modules, it was fun to do it and it will continue. I just hoped the multilang module by Oliver were already done, so I could've used it here. But still it all works very well with language trees. http://zueblin.ch http://reports.zueblin.ch --- reports is the "broschure" of their annual reports. All content pages I import into PW from an export (html) a company is doing out of indesign documents. Many tables and data. I've done xls creation on the fly from the table markup, and the zoom function for large tables happens automatically (all js). It was a blast doing that all in PW. So powerful and simple with import and building a stuctur that is felxible and extensible.
-
when I enter some urls like "/de/finanz/finanzberichte.aspx" and when I click on it to edit, it says: Error found in field 'redirect_from' - please check that it is a valid URL It is valid and for some reason this doesn't show error (huh?): "/de/corporate_governance/corporate_governance.aspx" Some work some don't. But on frontend they all don't seem to redirect ... ? --- ok sorted it out , it'w working on the frontend now, I had urlsegments enabled on the root template for the "/" . So it didn't work, can you reproduce this? The error is still shown on admin for some links. But can't see whats wrong. May todo with the .aspx bein evil?
-
NullPage::hasRole says to me there's no "userpage" found so its returning NullPage, and there's no method on NullPage.
-
Shouldn't it be hasRole("string"); ? You load the role as object and not as string, and hasRole expects the name (string).