-
Posts
2,780 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Macrura
-
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!
-
sure - yes - i can test it tomorrow, and will post back asap.
-
you rock!
-
these are the 4 fields and the custom selector: internal_notes parent.id=6587 secure_files parent.id!=6587 document_status parent.id=6587 pr_select parent.id=6485 now i'm thinking it would be more efficient anyway to maybe create a cache field of the parent id, and just use regular inputfield dependencies? also, these pages have thousands of siblings, not sure if that matters...
-
@Robin S Thanks for this module! I was hoping to use this for a setup where some fields need to show/hide based on their parent, but using it caused the editor page load to go from ~1883ms to ~18056ms, using 4 custom dependencies; not sure if it is totally this module or some interaction with other modules, but the speed changed back once i removed all of the custom dependencies... ProcessWire: 3.0.82 PHP: 7.1.11 Webserver: Apache MySQL: 5.6.37 CustomInputfieldDependencies: 0.0.5
-
i use fullcalendar, but native ProcessWire; your questions are more general PHP, so i'm not sure really how related this is to ProcessWire. As far as i can tell, you are just trying to run a full calendar/php implementation alongside a PW site; You should be aware that this won't work b/c you have php files in the templates folder - you will need to move your files to the root.
-
ok hang on let me check this - where are you adding that hook (i'm adding it in ready method) dangit, was adding it before... it's totally working now.
-
@Robin S I tested your way, but it's not working, i'm getting null returning on the $event->return
-
ok thanks - will look into that!
-
Update - this now works on UiKit theme, but the method of nullifying the default uikit is somewhat ugly - it basically has to replace the font-awesome css file that is hardcode added to the theme with a blank dummy, and then has to add a copy of the original back at the top of the styles; this is because the FAPro5 styles need to come after the core version in order that the new styles and font are applied.
-
one thing that i would find difficult from the perspective of UI, is that if you click on an image, you lose all context of where you are at, scrolled down – the page scrolls to the top, and even if you close the larger image at the top, it doesn't put you back where you were – this results in an insane amount of vertical scrolling if you wanted to peruse the portfolio items. You may need to either add prev/next navigation to the opened image, or find some other way of presenting the detail of the images when clicked.
-
The module is now up on Github in case anyone wants to test it or give it a try. Some additional features were added, like the ability to use SimpleMDE for field descriptions (on the field edit screen). There are probably still some things in this module that could be improved overall, but fundamentally it works well and is in heavy use on one site. This module is being used instead of the Admin Help module now in most cases, because typically the info that editors need to access is always about a specific field, so general instructions on the page editor (like in the help tab or lightbox) do not help as much as here, where targeted/contextual info about how to interact with a specific field is a click away.
-
ok thanks - gonna fix this next.
-
@Robin SI think you were right about it seeing the commented out stuff - crazy! I just removed all of the commented out module config and was able to get the mods directory to up it to the latest version...
-
Another possibility is GitBook, i haven't used it much, but can generate PDF, epub, mobi etc; it also integrates with GitHub