-
Posts
75 -
Joined
-
Last visited
Posts posted by herr rilke
-
-
hello @bernhard,
wonderful!Thank you very much for the time you took to explain this!!
I will definitely recreate this!It reminds me of the concept of "envelopes", where there is a beginning and an end element.
This makes it possible, for example, to say, "from here on everything in 3 columns" or something like that.
But that would probably require not only an initial element, but also an end element... hmm, I'll have to think about it. -
sayΒ @bernhardΒ
is there a chance that you'd introduce us to the art of mulit-colored section backgrounds??
π
-
Thank you Bernhard for clarifying your point of view again in such detail.
Ultimately, you are of course right and many editors actually no longer allow the insertion of images. When I sometimes look at the output, I understand exactly why πIn this project I will have to administer large parts myself, therefore it could have been a short cut.
but then and for now - I'll have to do it "right" from the start. Since I can reuse the blocks, it will probably pay off- 1
-
-
And if it were possible to give an id / class not only to the settings but also to the (associated) fields, you could move them under the corresponding fields using JavaScript if necessary (hopefully πΒ )
-
mh, was I able to explain it halfway so that you understand what I'm trying to do @bernhard
Or do you not add pictures like that anymore?
-
@KlenkesΒ - that's really really clever! Thank you very much for sharing!
So I created a module that does nothing but load an additional admin.css.
and because my settings can be so different in size, I rebuilt the CSS a bit./* Stile fΓΌr die settings-Tabelle der RockPageBuilder-Blocks*/ .rpb-settings .uk-table tbody { display: flex; flex-wrap: wrap; gap: 16px; } .uk-table tbody .rpb-setting { display: flex; flex-direction: column; /* Zellen in einer Spalte platzieren */ flex: 1 1 200px; box-sizing: border-box; padding: 8px; border: 1px solid #ddd; } /* Stile fΓΌr die `<td>`-Zellen */ .uk-table tbody .rpb-setting td:first-child { font-weight: bold; margin-bottom: 8px; } .uk-table tbody .rpb-setting td:last-child { flex-grow: 1; } /* AbstΓ€nde fΓΌr kleine Bildschirme reduzieren */ @media (max-width: 600px) { .uk-table tbody { flex-direction: column; gap: 8px; } .uk-table tbody .rpb-setting { padding: 4px; /* Kleinere InnenabstΓ€nde */ margin-bottom: 4px; /* Reduzierter Abstand nach unten */ flex: 1; } .uk-table tbody .rpb-setting td:first-child { margin-bottom: 4px; /* Weniger Abstand zwischen den Zellen */ } }
-
7 minutes ago, bernhard said:
Actually what I really want to implement one day is to make it easy to add RockFields anywhere on the page edit. So for example you could place a checkbox for "center headline" directly below the headline text inputfield. That would also make it easy to build your very own settings UI with just regular HTML.
that is ALSO a very helpful idea!
i.e. i have a setting to align the heading - but the heading field is way up in the form. so it would be much easier to tick some boxes directly underneath!
Β
-
5 minutes ago, bernhard said:
you can already do something similar from the API in RPB. See the docs here:Β https://www.baumrock.com/en/processwire/modules/rockpagebuilder/docs/settings/#adding-default-settings
oh YEEEEESSS!
that is a good starting point!i missed that, thinking it is to define defalut VALUES - but that makes a lot of sense.
will use it for sure, thanks for pointing out!
-
mh,
isn't it the case in regular WYSIWYG modules outside of RPB that I can upload images that I can then select in the editor and place inside editor's text? -
-
hallo @bernhard
I love the βsettingsβ and use them extensively.
What I think would be great is if you could arrange them in columns like other fields. Because you often don't need the entire space / width underneath the fields.
... so maybe there is hope... πbest
-
Hello everyone,
I have the following fields: a TinyMCE and an image field. But when I select an image, I can't insert it into TinyMCE.
What do I have to do to make this work?and (additional question): Tiny loads very slowly, it feels like 5 seconds after the rest of the editing mask is already displayed.
Β
public function migrate() { $rm = $this->rockmigrations(); $rm->migrate([ 'fields' => [ self::field_text => [ 'type' => 'textarea', 'inputfieldClass' => 'InputfieldTinyMCE', 'contentType' => FieldtypeTextarea::contentTypeHTML, 'label' => 'Text', 'rows' => 10, 'icon' => 'align-left', 'inlineMode' => false, // 'rpb-nolabel' => true, // hide label in backend // 'settingsFile' => '/site/modules/RockMigrations/TinyMCE/text.json', 'settingsFile' => '/site/modules/RockMigrations/TinyMCE/full.json', 'textformatters' => [ 'TextformatterRockFrontend', ], ], self::field_image => [ 'type' => 'image', 'label' => 'Bild', 'maxFiles' => 1, 'descriptionRows' => 0, 'extensions' => 'jpg jpeg gif png svg', 'maxSize' => 6, // max 6 megapixels 'okExtensions' => ['svg'], 'descriptionRows' => 1, 'icon' => 'picture-o', 'outputFormat' => FieldtypeFile::outputFormatSingle, 'gridMode' => 'list', // grid, left, list 'required' => false, ], ], 'templates' => [ $this->getTplName() => [ 'fields' => [ RockPageBuilder::field_eyebrow, 'title' => [ 'label' => 'Headline', 'icon' => 'header', ], self::field_text, self::field_image, ], ], ], ]); }
any help would be highly appreciated.
Β
-
hello ottogal,
Thanks for the hint!
I actually know the site, but I can't yet see how I could implement my plan. AdminRestrictBranchSelect could be an approach, but I don't know if it can link to admin pages. -
Many thanks from me too for the wonderful module,Β @adrian!
Is there a way to display another navigation point in addition to "pages"?
I created a module that outputs statistics about the page in the backend. I would like to have this as an additional access point for users. -
#@!^$
problem was on my side (forgot that i put it here, yesterday) :
<?php // PrΓΌfen, ob der Aufruf per AJAX erfolgt if (!$config->ajax) { http_response_code(403); echo "Forbidden"; exit; } // Beispielantwort echo "Dies ist die Antwort von /ajax/foo";
after deleting the first part, everything works just fine!
thank you guys for your support!
Β
- 2
-
allright! i have v3.23.1
and now it shows "/ajax/foo" in module's ajax-settings, but "forbidden" when following that link
Β
-
wow, how great!
thanks so much in advance!
But I can't yet see the update and import it directly via processwire. -
thank you!
unfortunately the result is still the same π
do you need another dump from tracy?
-
good morning @bernhard!
this ist bd($rockfrontend) in site/ready.php
debug info:
ProcessWire\RockFrontend folders: array 0 => 'C:/wamp64/www/qualiguide/site/templates/' 1 => 'C:/wamp64/www/qualiguide/site/assets/' 2 => 'C:/wamp64/www/qualiguide/' liveReload: RockFrontend\LiveReload interval: 1 includeDefaults: array 0 => 'C:/wamp64/www/qualiguide/site/' 1 => 'C:/wamp64/www/qualiguide/RockShell/docs' 2 => 'C:/wamp64/www/qualiguide/RockShell/App' include: array (0) excludeDefaults: array exclude: array (0) autoloadStyles: ProcessWire\WireArray count: 1 items: array 'StylesArray:0' => RockFrontend\StylesArray #447 β¦ autoloadScripts: ProcessWire\WireArray count: 1 items: array 'ScriptsArray:0' => RockFrontend\ScriptsArray #453 β¦ ajaxEndpoints: array (0)
Full Object:
ProcessWire\RockFrontend addMarkup: null ajax: false ajaxFolders: array '/ajax/' => '/C:/wamp64/www/qualiguide/site/templates/ajax/' alfredCache: ProcessWire\WireData autoloadScripts: ProcessWire\WireArray autoloadStyles: ProcessWire\WireArray contenttype: 'text/html' createManifest: false folders: ProcessWire\WireArray home: ProcessWire\HomePage hasAlfred: false isLiveReload: false js: array (0) langMaps: null latte: null latteWithLayout: null layoutFile: '_main.latte' layoutFolders: ProcessWire\WireArray liveReload: RockFrontend\LiveReload manifest: null noAssets: false noLayoutFile: '' onceKeys: array (0) path: 'C:/wamp64/www/qualiguide/site/modules/RockFrontend/' postCSS: ProcessWire\WireData remBase: 16 scripts: ProcessWire\WireData seo: null sitemapCallback: Closure($page) file: 'C:\wamp64\www\qualiguide\site\modules\RockFrontend\RockFrontend.module.php:2741' sitemapOptions: array (0) styles: ProcessWire\WireData translations: array (0) viewfolders: array (0) data: array useFuel: true _instanceNum: 144 localHooks: array (0) _wireHooks: ProcessWire\WireHooks trackChanges: 0 changes: array (0) _notices: array 'errors' => null 'warnings' => null 'messages' => null _wire: ProcessWire\ProcessWire status: 4 statusNames: array debug: true fuel: ProcessWire\Fuel data: array (35) β¦ lock: array (20) β¦ requiredInterfaces: array (1) β¦ pathSave: 'C:\wamp64\www\qualiguide' fileSave: 'C:/wamp64/www/qualiguide/site/ready.php' updater: unset instanceID: 0 shutdown: ProcessWire\WireShutdown useFuel: true _instanceNum: 6 localHooks: array (0)
Β
-
hello bernhard,
Thank you for your quick response.
I found out that the whole thing doesn't work on my local Windows development computer - but it does on my Linux web server.could this be related to file permissions? It's just a "copied version" - copied from Windows to the live server.
What would be a starting point? -
thanks @bernhardΒ for this module! it makes my code so much more organized & the content easier to maintain.
but i am not able to setup an ajax endpoint: i get a 404 error in return.
- file lives in /site/templates/ajax/
- i am logged in as a superuser.
- URL has no trailing slash.
also the modules settings says: "No endpoints found."
what am i doing wrong?
PW 3.0.240, RockFrontend 3.21.2, RockPageBuilder 5.8.0
Β
Β
- 1
-
Quote
might be a new threat just for RPB blocks ...
it was just the idea to share not only the images of blocks but also the .php and .less files of the blocks - and that this could be a thread of it's own anyone could post in their own solutions.
- 1
-
thank you!
is there any chance to share the code as well?
... just wondering ... π
might be a new threat just for RPB blocks ...
Drag&Drop multi-colour sections
in RockPageBuilder
Posted
yes, I saw @Stefanowitsch's post - very impressive! and it's also good to know that envelopes / nested elements are already possible. I'll go play a little π
have a nice weekend !