-
Posts
10,912 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
You could definitely do this so long as you have exec available for PHP and also have imagemagick compiled with ghostscript. If these requirements are met, then something like this should work: exec('convert -density 600 document.pdf[0] -colorspace RGB -resample 300 output.png'); inside the thumbnails function: https://github.com/uiii/ProcessWire-FieldtypePDF/blob/master/PagePDF.php#L7
-
Just had one more thought for you - how hard do you think it would be to also offer this as an inputfield for Ryan's new Options fieldtype, in addition to the Pages fieldtype that is currently uses. Thought it might be nice because with tags it is often unlikely that you actually need these to be accessible via a URL, hence no real need for having them as pages now that we have this new fieldtype. Just thinking out loud if you are looking for something to do
-
Awesome - so much better with Enter working to add tags - thank you! As for the no results/placeholder text - I might just go with some jquery. Thanks again for a fantastic job on this - it really is the best solution for tags fields!
-
Sounds great Pete - please revisit this if you get the time. Like lots of us, I have been using PageTableExtended for this sort of thing, but I would love to see a fieldtype like this - would make it much easier to set up and be better for selector driven searches, and would generally feel cleaner - at least to me!
-
This is not directly an issue with this module, but I would like for users to be able to upload and crop their profile pictures. Ryan talks about the HTML uploader being disabled for profile editing (https://processwire.com/talk/topic/5644-images-in-user-profile/?p=60172), but I honestly think this needs to change as this is a common need on sites. Do you guys have any thoughts on how "we" can make croppable image work properly on an image field in the user template when a user is editing their profile?
-
Just a quick request - can you make it possible to override these: AbstractChosen.default_multiple_text = "Select/Enter tags"; AbstractChosen.default_single_text = "Select an Option"; AbstractChosen.default_no_result_text = "No results match"; Thanks again for this - it's coming in very handy, although client feedback unfortunately is saying that the "Tab" to create a new tag is confusing - any chance you can revisit making Enter work in all situations? Sorry for sounding demanding
-
Two thumbs way up for anything SVG Started using it on the web in 2004 (for server generated vector downloads) - it's been a long wait, but it's awesome to finally see it supported in all browsers!
-
On a roll today - looks like there is a permission issue when using a croppable image field in the system user template. When the field has been added to "What fields can a user edit in their own profile?" at /module/edit?name=ProcessProfile then the user gets a blank page. Thanks guys!
-
Thanks Martijn - hope you're feeling much better soon. I have another issue for you: Notice: Undefined property: CroppableImageKeepCoords::$cropH in/site/modules/ProcessCroppableImage/classes/CroppableImageKeepCoords.class.php on line 93
-
One thing when cropping to large sizes (eg 1000px or so), then on hover preview won't fit on the screen - perhaps it can be displayed at a smaller size when it is greater than a certain percentage of the viewport size? Sorry in a rush, but if this doesn't make sense, please let me know.
-
-
Just a quick glance, but I think what you are looking for is: $page->audiofile->add($upload_path . $filename);
- 6 replies
-
- WireUpload
- FieldTypeFile
-
(and 5 more)
Tagged with:
-
I love it - very handy! Just a couple of small things. Need a nice icon for the module to show up under the Setup menu I would use the same labels as the template access tab, ie: VIEW PAGES, EDIT PAGES, CREATE PAGES, ADD CHILDREN and also in that same order.
-
Not sure if this solves your needs in another way, but check out this module: https://processwire.com/talk/topic/5658-alpha-release-usergroups-page-based-permissions/ But, you might also be able to achieve what you want through some recent additions to dev which allows for parents for users: http://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users
-
I just submitted a PR to extend Ryan's new "Send to Templates" functionality on the Action tab to be an "Add/Remove fields from templates" function. Not sure if he will go for it as is - he might have something grander planned, but it was a quick addition: https://github.com/ryancramerdesign/ProcessWire/pull/902 There are some screenshots in one of the comments that shows how it works. Would be curious what others think of how it works if you feel like trying it out!
-
Sorry for that - at one point I merged some posts into that thread and the ID changed, hence the broken links. Best bet is to actually just point them to the Github repos: https://github.com/adrianbj/ProcessMigrator https://github.com/NicoKnoll/MigratorWordpress The main migrator thread is now at: https://processwire.com/talk/topic/8660-migrator Thanks for spreading the word!
-
Page Field => direct children of template page
adrian replied to berechar's topic in General Support
Yeah - I think Jan Romero's way makes more sense. I actually don't know why Soma's suggestion isn't working. My suggestion loads up a bunch of pages but it doesn't really make any sense because it will actually only find the children of the page's children, which basically means all the grandchildren - oops! -
I think your best option would be to modify this module: https://github.com/Hani79/Processwire_FieldType_Templates It is for selecting templates but could be easily converted to work for fields - let us know if you need any help converting, or if you do it, please share it here!
-
Page Field => direct children of template page
adrian replied to berechar's topic in General Support
Try: parent=page.children EDIT: Bad idea - see below -
Well you could either start with a close tag: ?> //close initial php open here <div class="row"> <?php $suppliers = $pages->find("template=brfs-suppliers-detail"); foreach ($suppliers as $supplier) { echo " <div class=\"small-12 medium-6 large-4 columns partner-wrapper\" > <img src=\"{$supplier->supply_partner_logo->url} \" class=\"partner-thumb\" > {$supplier->title} </div> "; } ?> </div> or instead put your divs in the php code block and echo them out. <?php echo '<div class="row">'; $suppliers = $pages->find("template=brfs-suppliers-detail"); foreach ($suppliers as $supplier) { echo " <div class=\"small-12 medium-6 large-4 columns partner-wrapper\" > <img src=\"{$supplier->supply_partner_logo->url} \" class=\"partner-thumb\" > {$supplier->title} </div> " ;} echo '</div>'; ?>
-
Check out the new feature Ryan just committed to dev - on the field's new Action tab you can "Send fields to templates". Then on the next screen you get to order their positions on each of the templates they were just assigned to - pretty cool!
-
Is this custom page attached to a process module? In that case you simply assign a new permission to the process in the module's config, eg: public static function getModuleInfo() { return array( 'title' => "My Process Module, 'permission' => 'special_permission', ); } That will limit access and viewing to those roles with that new "special_permission" permission. Does that take care of your needs? If it doesn't have its own process, please explain a little better what this page does, how it was created etc.
-
You will want something like this: public function ___execute() { $this->exportExcel(); } public function exportExcel($event) { header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=name.xls"); header("Pragma: no-cache"); header("Expires: 0"); $this->outputExcel(); exit; } public function outputExcel($data) { // your php://output" code } I used something like this is in: http://modules.processwire.com/modules/table-csv-import-export/ In that module you can test the behavior of downloading directly from a PW menu item by going to Pages > Admin > Setup > Table CSV Export and removing the hidden flag, then go to Setup > Table CSV Export and it will start a download directly from the process attached to that page. The module is not designed to be run directly from that helper page, but it will show you that it can work that way! Hope that helps to get you started.
-
https://github.com/ryancramerdesign/ProcessWire/issues/808 Feel free to add a comment about your experience if you want