-
Posts
72 -
Joined
-
Last visited
Everything posted by herr rilke
-
[Solved] TinyMCE in Blocks do not show image icon / functionality
herr rilke replied to herr rilke's topic in RockPageBuilder
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 -
[Solved] TinyMCE in Blocks do not show image icon / functionality
herr rilke replied to herr rilke's topic in RockPageBuilder
ok, try my best: i have two fields: after uploading i am able to click the image icon in the editor: even edit the image: and paste it into the text. but of course i understand your approach as well. so i go and do it your way 😉 -
Idea / feature-request: settings in columns
herr rilke replied to herr rilke's topic in RockPageBuilder
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 🙂 ) -
[Solved] TinyMCE in Blocks do not show image icon / functionality
herr rilke replied to herr rilke's topic in RockPageBuilder
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? -
Idea / feature-request: settings in columns
herr rilke replied to herr rilke's topic in RockPageBuilder
@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 */ } } -
Idea / feature-request: settings in columns
herr rilke replied to herr rilke's topic in RockPageBuilder
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! -
Idea / feature-request: settings in columns
herr rilke replied to herr rilke's topic in RockPageBuilder
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! -
[Solved] TinyMCE in Blocks do not show image icon / functionality
herr rilke replied to herr rilke's topic in RockPageBuilder
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? -
Idea / feature-request: settings in columns
herr rilke replied to herr rilke's topic in RockPageBuilder
oh, even more ... 😄 In Contao CMS you can define styles in a central place, which you can then easily select and assign in different places. that's really great 😉 ... just in case.... define: select: -
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!
-
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
-
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.
-
thank you! is there any chance to share the code as well? ... just wondering ... 😁 might be a new threat just for RPB blocks ...
-
yeeees! me, me, me, me, MEEEEE 🙂 please do let us know! as an contao-webmaster i solve this by using custom classes an editor is able to choose from per section - looks a little like your approach
-
thank you @da² for the code optimization! but why it was not saving correctly was an issue with the context foreach ($page->children("include=hidden") as $child) { ... } in that case it must be $child->of(false); $child->sammelband_verweis = $matchingPage->id; //$newArray; $child->save('sammelband_verweis'); (instead of $page) ! problem solved (the only problem was kind of blind in front of the screen)
-
hi everyone, after importing 1500 pages from CSV I want to set the value of a page reference field. the recordsets hav a field called "sammelband" containing a string of the title i am looking for. what i want to achive is to find a page with that name and to save the page as a page reference. because the it is possible to link to that page later on in the output. both fields are in the same template "publikation". the pages are set hidden. the problem seems to occur in the saving part of the script. all paramenters work like expected - except that the page / value is not stored in the database. i'm using processwire 3.0.240 and the following code in the parentpage: foreach ($page->children("include=hidden") as $child) { if (! empty($child->sammelband_text)){ // doing some sanitation to the field's content $SammlungTitel = extractTitleAfterYear($child->sammelband_text); $escapedTitle = $sanitizer->selectorValue($SammlungTitel); $matchingPages = $pages->find("template=publikation, include=hidden, title^=$escapedTitle"); if ($matchingPages->count() > 0) { // die erste gefundene Seite (falls es mehrere geben sollte) $matchingPage = $matchingPages->first(); // Setze den Verweis im Feld "sammelband_verweis" $page->of(false); $page->sammelband_verweis = $matchingPage; // Debugging nach Zuweisung //bd($page->sammelband_verweis->id, 'Sammelband Verweis ID'); $page->save('sammelband_verweis'); echo '<hr>'; } } the configuration of the page reference field (auto generated by rockmigrations): 'sammelband_verweis' => [ 'addable' => '', 'allowUnpub' => 1, 'collapsed' => 0, 'columnWidth' => 100, 'derefAsPage' => 2, 'distinctAutojoin' => true, 'findPagesSelect' => '', 'findPagesSelector' => '', 'flags' => 0, 'inputfield' => '_InputfieldPageAutocomplete', 'label' => 'Sammelband', 'labelFieldFormat' => '', 'labelFieldName' => 'title', 'operator' => '%=', 'parent_id' => '/publikationen/', 'required' => '', 'requiredIf' => '', 'searchFields' => 'title', 'showIf' => '', 'tags' => 'publikation', 'template_id' => 'publikation', 'template_ids' => '', 'themeBorder' => '', 'themeColor' => '', 'themeOffset' => '', 'type' => 'FieldtypePage', ] any ideas would be highly appreceated