-
Posts
5,039 -
Joined
-
Days Won
340
Everything posted by Robin S
-
Hi @adrian, What do you think about adding a "Expand/Collapse All" button for dumps? This button would expand/collapse all nested elements within a dump would be useful in situations where you are dumping a massive nested object and you want to use the browser's find tool to look for a specific string of text.
-
When "Use HTML Purifier" is enabled for a CKEditor field any data-* attributes are stripped out. This happens regardless of the CKEditor ACF settings, and is pretty annoying considering how frequently data attributes are used/needed these days. I'd like to keep HTML Purifier activated but I want to change the configuration to allow specific data attributes. I know how to do this via addAttribute() - as mentioned here - and I can get this working if I directly edit MarkupHTMLPurifier::init() and clear the HTML Purifier cached files from /site/assets/cache/. public function init() { $this->settings->set('Cache.SerializerPath', $this->getCachePath()); $this->settings->set('Attr.AllowedRel', array('nofollow')); $this->settings->set('HTML.DefinitionID', 'html5-definitions'); $this->settings->set('HTML.DefinitionRev', 1); if($def = $this->settings->maybeGetRawHTMLDefinition()) { $def->addElement('figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common'); $def->addElement('figcaption', 'Inline', 'Flow', 'Common'); // Added line below to allow data-ext attribute on 'a' elements $def->addAttribute('a', 'data-ext', 'Text'); } } But how can I change the configuration like this without modifying a core file? I want to set the configuration from a custom module. I don't see any hookable methods in MarkupHTMLPurifier but surely it must be configurable somehow. Does anyone know a way to do this?
-
Very nice, thanks!
-
Not sure if it's just the result of the forum but when I paste your code above into the Tracy console I can see some unwanted hidden characters. When I remove those it works fine:
-
I like this, but I think when you switch back to the first tab the dump should be expanded. Because in clicking the tab you are saying "show me this tab content", and if you are actually wanting to just reduce the height of the dump container you would click to collapse the dump on the current tab. Maybe a simplified way of handling this would be that clicking any tab a) shows that tab's content and b) toggles the collapsed state of the dump. So dumps in all tabs would be loaded collapsed by default, but clicking a tab also toggles open a collapsed dump so has the same effect as this latest update. It would also allow for an alternative way to collapse the dump on the current tab (i.e. clicking the active tab collapses/opens that dump depending on its current state).
-
I don't think that colon is supposed to be at the end - that URL leads to a 404. Looks the URL should be https://insidemodernism.co.uk/feed/
-
-
Thanks for all the recent updates @adrian (and @tpr too). Is the "Use debugInfo() magic method" option redundant now? With this option unchecked I still see a populated Debug Info tab in the dumps panel. Also, do you think it would be possible to include a setting for which dump tab is active (or leftmost) by default, for those of us who most often want the Full Object and the Debug Info only once in a while?
-
Page missing from the page Tree after pagination.
Robin S replied to PCuser's topic in API & Templates
I can't reproduce that here. Do you have any modules installed that might be affecting the page list? -
Thanks, should be fixed in v0.1.4.
- 79 replies
-
- 2
-
-
- breadcrumbs
- admin
-
(and 2 more)
Tagged with:
-
@adrian, thanks for the report - should be fixed in v0.1.3.
- 79 replies
-
- 2
-
-
- breadcrumbs
- admin
-
(and 2 more)
Tagged with:
-
Yes, it seems we have sadly lost the ability to manipulate the search results like that. I've used that approach a few times myself. Maybe you could make a GitHub request that Ryan make ProcessPageSearchLive::find() hookable? It looks like manipulating the $items array that the method returns could be a good solution. And maybe add some thumbs-up support to this existing request too: https://github.com/processwire/processwire-requests/issues/214 ?
-
I haven't found the icons ambiguous so far, but the colour scheme you're suggesting sounds like it would be a good enhancement.
-
I also see this on the FAQ page: So that is a pretty big chunk of money you could avoid missing out on by simply having a Stripe or PayPal button alone. And think about how much money 10% of all donations adds up to. I'm skeptical of these outfits that sound like they're all about altruism but really they are making stacks of money in the process. Here in NZ a lot of charities raise money via the Givealittle service that is run by one of the big telcos. When it launched all of the money donated was retained by the charities ("we're good corporate citizens"), so naturally it became very popular. Then in 2016 they stealthily started taking a 5% cut. They say that donations are at 22 million per year, so 5% of that is a big fat 1.1 million that goes into their pockets.
-
You have to enable those fields in the settings of the ProcessProfile module: FYI, you can't use FieldsetTab in edit profile: https://github.com/processwire/processwire-issues/issues/552
-
Maybe I'm missing something, but in terms of raising money isn't Open Collective basically just a fancy donate button? The only money raised for a project is the money that users donate to that project, right? The transparency features are cool, but is it a lack of transparency that's actually holding back users from donating money to the PW project or PW modules? If people aren't donating currently then it's hard to know for sure why that is, but some possible reasons: 1. It isn't possible to donate (i.e. no donate button exists - presumably because the leader of that project doesn't want to have a donate button). That is the case for PW itself, and I have never heard Ryan express any interest in seeking donations from users. I think he prefers to raise money via his Pro modules. And if users aren't taking that opportunity to support PW via the Pro modules then I think they're unlikely to donate via Open Collective either. With regard to Tracy there have already been several requests for a donate button. 2. 3. 4... Users can't afford to donate, or they never think about offering financial support, or they have thought about it but they're just not motivated to pay money to support the software they use. Or maybe they prefer to support the PW project in other ways - e.g. spreading the word, helping out in the forums or at GitHub, developing free modules for the community, etc. In any of these cases I'm not sure why an option to donate via Open Collective would change their mind. But I'm all in favour of people starring the modules that they use.
-
I get different results. Using the Sanitizer::translate constant in the second argument means the sanitizer will use the character replacements defined in the InputfieldPageName module settings. So if you only need to account for the German language you can edit the replacements for ü, etc, to achieve a result like that shown above.
-
Check out the blog post about user-admin-[role] permissions: https://processwire.com/blog/posts/new-user-admin-permissions-automatic-version-change-detection-and-more-2.6.10/#new-user-admin-permissions
-
https://github.com/processwire/processwire-requests/issues/168
- 1 reply
-
- 3
-
-
Good idea, thanks. Would have to check with my bank about the options because I already have a prepaid Visa that is my main card, and by default my bank will let the card go into overdraft so would have to set up something special. I gave Leaflet a try seeing as there is already a nice PW module for that. Early impressions are good. Of the tile providers shown here it seems that the only hi-res aerial imagery tiles (which are a must-have for my use cases) are Esri.WorldImagery and HERE.hybridDay. Both of those are fine - does anyone know of any gotchas to watch out for when choosing tile providers? E.g. low usage limits? And I guess it's pretty easy to implement a tiles switcher so you can select between a street map and aerial?
-
I'm wondering how people here are responding to the new pricing for Google Maps: https://cloud.google.com/maps-platform/pricing/sheet/ For existing projects that stay within the $200 free monthly credit you can get away with not entering credit card details, but as I discovered today all new projects require you to enter credit card details. This is pretty infuriating IMO if you don't want to use the platform beyond the free credit. I'd be willing to have my API access cut off if I exceed the free credit, but forcing you to enter credit card details seems like it is designed to catch people out. I know you can add request caps but those are only for per user per second and per day whereas your credit is per month. It's hard not to be cynical about this and see it as a deliberate attempt to profit from accidental oversights of users. So how are you responding to this? Do you... Require clients to create their own developer accounts? Can't see that being workable. Require clients to supply credit card details that you enter into your own developer account? That would be a problem for me, because most of my clients are NGOs that are run by volunteer administrators, and I think most of them won't have a credit card for the organisation. Plus people can be nervous about sharing their card details with others. Enter your own credit card details? In which case what safeguards are you putting in place to protect yourself from excess usage? Switch to a different mapping platform? Any suggestions for a (free) substitute for Google Maps with similar features and a well-documented API?
-
@PCuser, I can reproduce it - very weird. My results were slightly different to yours. I've opened a GitHub issue for this: https://github.com/processwire/processwire-issues/issues/666
-
A couple of things Ryan has said: https://processwire.com/talk/topic/26-what-is-the-autojoin-feature-in-the-fields-editor-and-how-do-i-use-it/ https://processwire.com/talk/topic/613-underlying-workings-of-autojoin/?do=findComment&comment=4948
-
Search problem with AND and OR and modified query
Robin S replied to Susticle's topic in General Support
Oh, right. To work around that limitation you can most likely rewrite your multi-dot selectors as sub-selectors: https://processwire.com/api/selectors/#sub-selectors https://processwire.com/blog/posts/processwire-3.0.6-brings-pages-upgrades-and-link-abstraction/#improvements-to-sub-selectors Although I'm not certain they can be used with OR pipes either. Maybe you'll need OR groups. Let us know how you get on. -
No I didn't - thanks for the link!