-
Posts
2,780 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Macrura
-
right - got it; i haven't pushed the new features to the import module yet, as still testing, will push it soon, maybe next week; i will look at how to add an input to the image, but adding input field to inputfield is something i've never tried yet...
-
say fanboy again
-
the latest version also has an option to specify a field containing an image URL; this way you can copy image urls off the web, paste into that field and it adds it to the images field (specified in the module config); does the images field have a place to paste a URL - would that need to be added with a hook?
-
i have a similar need, and have a 'roll your own' pagetable setup, using Runtime Markup; i think once i implement the Datatables Editor (if that ends up being possible), it will be really cool, and much less screen-estate than a repeater interface.
-
In developing the Field Descriptions Extended module, i looked at your code for how to hook into the Inputfield::render and then from there run the method to do my replacements on the field descriptions, and it's all good. But i got stuck at fields inside repeaters; I see that AOS doesn't add the edit link to those fields either; i'm guessing the hook doesn't run on those because they are rendered by ajax, so wondering how hard it will be to support the AOS field edit links for fields in repeaters, and similarly in my module....
-
[solved] Admin menu issues after ProcessModule install
Macrura replied to rick's topic in General Support
Are you using any javascript in your process module? -
Module Visual Page Selector (commercial page picker module for ProcessWire)
Macrura replied to kongondo's topic in Modules/Plugins
Sounds like the defaultColumns is what i was looking for - thanks! -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Macrura replied to kongondo's topic in Modules/Plugins
oops, mis-typed, i meant keep closed when blank; they do stay open if set to open. I guess maybe i need to make sure my code returns empty for this to work; will check again. -
i could post an edited version, this one is very marketing oriented and names my company and other clients, and talks about some proprietary modules... Perhaps an idea is to setup a GitBook that could be collaboratively edited, like an open source book about Why Choose ProcessWire; on Gitbook, the books can be read, or downloaded as PDF, ePub etc.. When i use this document at meetings, i usually print/bind it and go through the points with the perspective clients..
- 12 replies
-
- 10
-
-
zero is my concrete answer to yr question
-
I think if i was faced with your situation, the first thing i would do (after cursing out the developer who setup that field structure) would be to add a runtime field and see if the module is able to pick up that: (in ready.php for example): wire()->addHookProperty('Page(template=Template1)::rss_desc', function($event) { $page = $event->object; $event->return = $page->r_desc; }); wire()->addHookProperty('Page(template=Template2)::rss_desc', function($event) { $page = $event->object; $event->return = $page->e_desc; }); wire()->addHookProperty('Page(template=Template1)::rss_pic', function($event) { $page = $event->object; $event->return = $page->r_pic; }); wire()->addHookProperty('Page(template=Template2)::rss_pic', function($event) { $page = $event->object; $event->return = $page->e_pic; }); Or I would just roll my own RSS feed using a class..
-
I created a 10 page white paper that we provide to prospective clients, which does compare PW to the big three, as well as commenting on topics like SEO, Speed, Security and Ease of use. Sort of a 'ProcessWire to the Rescue' story. Been very helpful during any proposal stage. Now i can also send them to your article..
-
zero lines of code in PW - the admin is built in. Plus what you call an admin site in Django is a piece of garbage, i've used them and it is piss poor compared to PW admin.
-
Module Visual Page Selector (commercial page picker module for ProcessWire)
Macrura replied to kongondo's topic in Modules/Plugins
I'm not able to create a bookmark, if i try to create one, it seems to break; i also tried adding a bookmark to the regular lister but the popup doesn't show that bookmark in the bookmarks tab (i have enabled bookmarks) Do you think it would be possible to hook into the VPS method that generates the popup and then setup the lister there? Sorry for the continued posting on this, but this is somewhat urgent as the editors need to be able to use VPS to select from a complex listing of pages and these users are very limited in their abilities to use computers etc.. -
Module Module: RuntimeMarkup Fieldtype & Inputfield
Macrura replied to kongondo's topic in Modules/Plugins
Is it possible to use field collapsed status with this - since the module itself doesn't have a value that can trigger 'populated' status (?)... I'm using a lot of these on a page , but need keep them all open... -
do you mean the first level pages under Home, or pages under a branch. I think it would be bad to sort by page name under home because you'd end up with stuff like 404 and admin at the top, would be annoying. if you mean pages under a branch, you can do the sort settings for children. If that is not working there is probably a way you can hook and then sort them your own way
-
Client request: images inside "body" field - options and suggestions?
Macrura replied to OLSA's topic in General Support
ok sure, i'll give it a try and see what it looks like.. -
Client request: images inside "body" field - options and suggestions?
Macrura replied to OLSA's topic in General Support
@dragan http://modules.processwire.com/modules/import-external-images/ -
this is amazing, wish i saw this about 2 hrs ago (before i wasted a bunch of time trying it another way...)
-
wow thanks - great! I will purchase this anyway because it does looks very useful either way...
- 96 replies
-
- chained-selects
- dropdowns
-
(and 2 more)
Tagged with:
-
Will this module work in a repeater? My use case is that the client needs to make a selection of a page, and then if that page has any children, it will show those as selectable. But they may need to do this multiple times on one page, hence the need for repeater support. I tried using the built in dependent select, e.g. parent=page.page_select_field, but this doesn't seem to work in a repeater (still references the edited page i think)...
- 96 replies
-
- 1
-
-
- chained-selects
- dropdowns
-
(and 2 more)
Tagged with:
-
i do have a client with a pretty big site where i do the cycle through the pages and set the owning page on those page table items; but now i have to add a cron job to set them because the client keeps forgetting to save the owning page and then even though those page table items are connected to the owning page by their existence in the page table field, they are still 'orphans' in the sense that the front end code we use needs to be able to identify any of those page table items' owning page without having to do a lookup; part of the reason is that this site was built before Page Table was invented; otherwise i think this method is the most reliable and easiest, here is some example code: if($page->template == 'class') { $sessionsUnset = $page->session_table->find("class="); foreach($sessionsUnset as $su) { $su->class = $page; $su->setOutputFormatting(false); $su->save(); $this->message("This class ({$page->title}) added to session {$su->id}"); } }
-
it has been discussed a lot on some topics, and it was determined that there is currently no easy way to pass data to the modal/page. One way to achieve it is to hook into the save of the owning page and at that point cycle through the items in the page table, setting that field to the owning page. This works fine, however is risky in case the users do not save the owning page after adding new items to the page table. You could optionally also run a cron job to scan though the pages and look for items missing that field and set them that way. Another way I have achieved this by using a custom 'page table' which i create using @kongondo's Runtime Markup, then i can put anything i want in the add new button (url params); Then i capture the input into a session variable, use that to set the field, then clear the session variable, hooking into save of the new item. To do it in a Page Table without doing the first way i suggested here and in the linked topic, i think you'd likely need to add a url parameter to the popup which means hooking into the button markup. This is the structure of the add new button: <a class="InputfieldPageTableEdit" data-url="/manage/page/edit/?id=9999&modal=1&context=PageTable" href="#">Title of Page</a> if you could add a url param, like &ownerPage=1234 you could then capture the input and use it to set the field. You'd need to have a hook on the save of the new page; I may be working on this so if i come up with a definitive solution will post back; i do think this is something that should have a decent recipe solution since it seems to come up often in my IA requirements.
-
Module Visual Page Selector (commercial page picker module for ProcessWire)
Macrura replied to kongondo's topic in Modules/Plugins
Thanks - i can't recall how i solved the lister columns for other users; i will do some more testing; at worst case i will show the other users how to setup the lister on their own, and then it gets stored somewhere(?) or maybe i should enable the bookmarks and tell them to use that(?) i see that basically when the lister comes up for page selection, that it does use the default columns; perhaps there could be some way to integrate lister pro, so that VPS doesn't need to take on the task of configuring the lister; in other words for users who don't have lister pro, then bookmarks seem to be the only way to store a 'view' for the popup, but if you have lister pro, then maybe you could specify the name of a lister to use and then the module could read those settings for the popup in that case, or even maybe there could be a way to export a lister pro setup into VPS popup screen..