-
Posts
2,765 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
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.. -
Module Visual Page Selector (commercial page picker module for ProcessWire)
Macrura replied to kongondo's topic in Modules/Plugins
sorry for my confusion... but how do i specify the columns on the lister that pops up for page select – i'll need to be able to configure the columns and then have those be set for all the other users, the other users won't be able self-configure the columns for the lister; right now when i create the page select field, i just get sort of a default lister setup with Title, Template, Modified, Mod By; i'll also need to be able to setup/configure the available filters for the popup. Also - note there may be some issue with the lister setup, when i set one up, the initial selector seems to have copied (from the field settings) itself into the Limit Selectable Fields/Columns field, rather than the initial selector field. I manually move that to the initial selector field and added some stuff to the lister columns; next problem – there is an add new button on the popup, but that shouldn't be there (right?) -
yeah, if you haven't used it yet, it almost becomes a 'can't live without' - on sites where you do use a URL field, it saves a ton of clicking, super convenient, been using it since way back when it was it's own module..
-
in this case i hardcoded the field name into this script; i guess it would be possible to have some setting in AOS where one could specify a name of the table field, and then the name of the url field – once you know those 2 things it should be possible to have this be more generic, but haven't gotten that far yet... JS: $(function(){ $('li.Inputfield_links_table tr').each(function(){ urlInput = $(this).find('input[name*="_link_href"]'); urlValue = urlInput.val(); // the url entered urlInput.parent().addClass('urlFieldContainer'); if(urlValue) { var link = '<a style="height: 33px; line-height: 33px;" data-iuc-loaded="1" '+ 'href="'+urlValue+'" data-iuc-mode="button" class="iuc iuc-button iuc-table-button button-right pw-blank" data-iuc-force-http="1" '+ 'target="_blank"><i class="fa fa-arrow-right"></i></a>'; urlInput.after(link); } }); }); CSS: .urlFieldContainer { position:relative; overflow: auto; height: 100%; } .iuc-table-button { right:5px; }
-
For any folks needing IUC on a ProFields table URL field, i have a working javascript snippet
-
ok thanks - found it and all is well again
-
sorry for my confusion, but didn't the P icon used to have a link to edit the page being viewed? I used to use this all the time to get from front end to backend edit page - was that link moved somewhere - the appearance of that P panel seems to have changed a lot.
-
@Alex CA you can change those fields when you instantiate the module: $rss = $modules->get("MarkupRSSEnhanced"); $rss->title = 'Title for this feed'; $rss->description = 'Description for this feed'; $rss->itemDescriptionField = 'r_desc'; // set your specific field here, e.g. r_desc or e_desc $rss->itemEnclosureField = 'r_pic'; // or e_pic $limit = 8; $items = $page->children("limit={$limit}, sort=-publish_start"); $rss->render($items);
-
@horst haven't used J* in a while, but perhaps akeeba: https://extensions.joomla.org/extensions/extension/access-a-security/site-security/akeeba-backup/ could be installed and then you can run a backup?
-
@msavard have you seen this post? https://processwire.com/talk/topic/3706-how-to-blockredirect-one-user-role-away-from-admin-pages/?do=findComment&comment=46421 Also, there are these modules: http://modules.processwire.com/modules/auth2-factor-ppp/ http://modules.processwire.com/modules/session-login-alarm/
-
@Robin S - i can confirm that this fixes the issue and the page load time is now fine (~1000ms) and with 4 inputfield dependencies. Thanks for tweaking that!