-
Posts
6,671 -
Joined
-
Last visited
-
Days Won
366
Everything posted by bernhard
-
So why not let them all enabled by default?
-
module SnipWire - Snipcart integration for ProcessWire
bernhard replied to Gadgetto's topic in Modules/Plugins
I haven't tried snipwire yet, but regarding the uninstall I have two suggestions/ideas: 1) Maybe SnipWire could state clearly before installation, that it is not trivial to uninstall this module and it might be the best option to restore a backup in case you want to get rid of snipwire. That would of course be not possible on a live system when some data has changed. In that case it might be the easiest solution to provide step by step instructions to uninstall everything manually. 2) Maybe https://github.com/BernhardBaumrock/RockMigrations have some helpful code snippets that you can use for the uninstall routine? RockMigrations are built in a way that they do NOT ask for any confirmations. That means if you delete a template all related pages that use that template are also deleted. That can be too destructive in some situations but can be exactly what you want in others... Thx for all your efforts @Gadgetto - as I said I haven't tried it yet, but it seems you are doing a great job!- 235 replies
-
- 2
-
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
I guess a Page Autocomplete combined with that nice VEX-modal-PageListSelect that Robin shows in his screencast would be a great addition in general for PW ?
- 6 replies
-
- 2
-
-
- lister pro
- lister
-
(and 2 more)
Tagged with:
-
Hi @renobird (and others) I'm trying to develop a daterange fieldtype using the core timepicker as shown in your example, but it looks like this: The only docs I found where this one: https://trentrichardson.com/examples/timepicker/ not sure, if that are the correct docs for the timepicker PW uses? Any ideas how I can get rid of the "choose time" button and the "time" line above hour and minut (it's unnecessary because it is also shown in the input) Thx! PS: I thought of hiding it via CSS, but it seems that the whole timepicker markup is loaded directly under <body> so I cant target only the timepickers that are loaded from my Inputfield, or can I?
-
module SnipWire - Snipcart integration for ProcessWire
bernhard replied to Gadgetto's topic in Modules/Plugins
Can't you just save the currency in the user's $session ?- 235 replies
-
- shopping cart
- snipcart
-
(and 2 more)
Tagged with:
-
Hi @netcarver thx for the great module! Would you mind renaming the title of the module to "Time" only without the Fieldtype? It would make selecting it easier (I'm using the keyboard most of the time and it would be nice (and consistent) to type "time" instead of "fieldtype time"). Another little glitch: The field is set to this format: After selecting a time, the format is correct (eg 18:30), but initially it displays seconds (which is not wanted).
-
Hey @tpr just wanted to ask if there is any harm in having all config inputfields toggled visible? AOS has so many options, it's always hard to remember where an option is hidden. Using the browser search this would be a lot easier (eg find "middle" when you want to activate some middle click magic)
-
Yeah, I was talking about PW guides ?
-
Usually guides from 2014 work just well and are still valid ?
-
?♂️ ?♂️ ?♂️ ?♂️ ?♂️ Thx, that explains it ? I've also linked to your explanation in this old justify walkthrough that I was following all the time, not knowing that it was overly complicated ...
-
thx to @wbmnfktr I learned that it is actually a lot easier to use some plugins that ship with the PW core: Just add the name of the plugin in the CKEditor Toolbar textarea and you are done! No extra download, no copying of any files, nothing ? I was always avoiding adding plugins because it seemed so complicated... I'll start using them more often now ? I think this does only work if you have AdminOnSteroids installed ?
-
Thx, that's an interesting point and exactly what I was talking about: Docs are bad or misleading. Justify did also work without adding any files - I don't know why. Does anybody know why? I've just found that there are several plugins in the AdminOnSteroids folder. I thought maybe that's the case why Maximize works out of the box (and so does Justify). But I renamed both maximize folders to maximize2 and the plugin does still work. But there are definitely no other maximize folders... @tpr any hints for us?
-
Hi everybody, I'm doing some CKEditor optimizations and as I'm not doing that often it's bringing quite some trouble with it... For example today I wanted to add the maximize plugin and it didn't work - the docs of CKEditor are slightly different to what we need at ProcessWire, so I thought we could share our findings in this thread! See here:
-
Yeah, thx for your links, but as I said what I actually tried to do was to add a new paragraph format, not an inline style ? I've managed to add an inline style already. I think that option should also work fine. It's actually a little bit more flexible, because then the client can apply the special font to any tag (H2, H3 and P)... CKEDITOR.stylesSet.add( 'mystyles', [ { name: 'Handschrift', element: 'span', attributes: { 'class':'tm-fancy' } }, ... Extra Allowed Content also needs to be set when ACF is active:
-
Hi @tpr, I've just tried to do what you suggested, but I failed ? My first try was to set a custom style, but that is not exactly what I want, because these are inline styles that are applied to the current selection. I want to add a new TAG to the list of format tags: Eg Heading 2 FANCY which would add <h2 class="tm-fancy">...</h2> This did unfortunately not help/work: https://stackoverflow.com/questions/17230809/how-to-add-a-custom-paragraph-format-in-ckeditor Has anybody ever added a custom paragraph format (block element) instead of a custom style? I'll try the inline style solution though...
-
PageListSelect in a VEX modal - very nice ? Looks great!
- 6 replies
-
- 2
-
-
- lister pro
- lister
-
(and 2 more)
Tagged with:
-
Copying website to staging server and keeping all in tact?
bernhard replied to shogun's topic in Getting Started
-
How can I center that headline?
-
Hi everybody, I want to share what I came up with. Background: The goal was to get a color-accent to every headline on my new project. First thought was to use CSS-only with ::before pseudo element, but the problem is, that the headline is a either a block element (then position absolute left 0 leads to the accent being on the very left even for text-align:center headlines). Or if the headline is inline-block I had some other weird problem that I can't remember right now. Also multiline headlines where tricky. That's why I wanted to add a real element at the beginning of every headline. Wrapping the first word was actually not necessary. I'm adding an empty <i></i> now right behind the opening <h2> or <h3> tag, so the regex get's even simpler. Here's the result: Here's the LESS if someone is interested: // apply style to all elements with tm-fancy attribute // this attribute is added to all h2+h3 via textformatter *[tm-fancy] { font-family: @tm-font-fancy; i:first-of-type { position: relative; } i:first-of-type::before { content: ''; position: absolute; left: -15px; bottom: 5px; width: 120px; height: 20px; background: @tm-secondary; z-index: -1; border-radius: 2px; } } // adjust width and height for h3 h3[tm-fancy] i:first-of-type::before { width: 100px; height: 15px; } And here's the very simple textformatter that I can apply now an every textarea field: <?php namespace ProcessWire; class TextformatterFancyHeadlines extends Textformatter { public static function getModuleInfo() { return array( 'title' => 'FancyHeadlines', 'version' => 100, 'summary' => "Add <i></i> to headlines for color accents.", ); } public function format(&$str) { // early exit if there are not h2 or h3 elements if(strpos($str, "<h2") < 0 AND strpos($str, "<h3") <0) return; // add attribute and inline element via regex $re = '~(<h[23][^>]*)(>)~ism'; $str = preg_replace($re, "$1 tm-fancy$2<i></i>", $str); } } Thx for your help ? PS: If anybody knows a better solution please share it ? Maybe there's a CSS-only way of doing that?
-
Thx @ukyo, it is, as I thought, a windows problem. I've tried the "next" branch - no change. It works on my linux server. Would be great to get a fix for this. As you can see in my screenshot the strange thing is that the FilenameArray is populated on line ~118 but it is empty on line ~174 (where the select field on the input tab of the pw field should get populated).
-
Hi, I want to wrap the first line of every H2 and H3 in a <span></span> tag so that I can do further CSS styling on that element. The problem is that the markup comes from a CKEditor field, so it can have different versions: <h2>This is a headline</h2> <h2><span>This</span> is a headline</h2> // result <h2 foo="bar">This is a headline</h2> <h2 foo="bar"><span>This</span> is a headline</h2> // result <h2 foo="bar"><strong>This is a headline</strong></h2> <h2 foo="bar"><strong><span>This</span> is a headline</strong></h2> // result Any tips for me? Domdocument? Any 3rd-party dom parser? Or Regex? Thx for your help! ?
-
Hi @ukyo, I've just tried your module for the first time, but unfortunately it does not find any resources! This is the tracy dump: Somehow the resources array is empty: I have the following files in my setup: C:\laragon\www\kaum\site\modules\Mystique\configs\Mystique.example-dive.php C:\laragon\www\kaum\site\templates\configs\Mystique.mystique.php No matter what I try - the resources select is empty: I've even tried to do a $config->paths->normalizeSeparators() on the path without success (thought it might be a windows issue). Thx for your help!
-
That was related to all previous posts, not only psy's - even though I think "stupid" might be an unappropriate wording here ? But I didn't want to blame her for that either ?
-
I don't think it's fair to blame him for his opinion. I think there are some valid points in it. He clearly has a non-tech marketing background and I can imagine that some kind of problems get a huge challenge with ProcessWire that are simply some clicks on other platforms. We know the pro's and con's, but if you don't have the technical background I can really understand that you get frustrated with ProcessWire. Not everybody has the time or will to learn things "from scratch". The headline states that he assumes PW is great for developers, pretty bad for everyone else. While I don't agree 100% on that, the point that PW aims on developers is true. I'd maybe add that it is also great for clients. But that's not always the case, to be honest: I think we all have had situations where we've stored data (settings, lists of countries and so on) somewhere in the page tree, because that's the way to do it in PW... But that's not the way someone coming from other platforms would assume it to be. I guess they'd be looking for it somewhere in the menu, in some listings or whatsoever... I've also needed @gebeer convincing me that it is a great platform. But I enjoy all the technical challenges, so that'll most likely be a totally different experience than someone who he calls "business users" might have ?