Atlasfreeman
Members-
Posts
29 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Atlasfreeman's Achievements
Jr. Member (3/6)
4
Reputation
-
So i updated my MAMP local host (do you recommend useing this) Now it says this. Php 8.1.29 MySQL: 5.4.44 SQL Port: 3306 Ever tried this? Seems to have lost my progression 😞 Dangit… Fatal Error: Trait "RockMigrations\MagicPage" not found (line 11 of site/classes/HomePage.php)
-
@bernhard Is it enough to use the "export site profiler" module?
-
Hi. Does anyone know the right way to update the rock page module? I bought it around last year and downloaded all the updates throughout the years. So, before I go live, I would like to update the module. 🙂 What is the best way to do this?
-
[solved] Rock page builder & page references
Atlasfreeman replied to Atlasfreeman's topic in RockPageBuilder
I don't really understand what you are talking about or what this page does. But i searched and found this one i this what you talked about? -
[solved] Rock page builder & page references
Atlasfreeman replied to Atlasfreeman's topic in RockPageBuilder
I have gone with the second solution. And this does work. But does require using the backend. But that's okay as you can do this when creating the page in the first place. Thanks again okay, and one last embarrassing question how do I change the header to [solved] in this forum.? <?php namespace ProcessWire; use RockPageBuilderBlock\ArchiveFilter; /** @var Page $page */ /** @var ArchiveFilter $block */ /** * By default rockpagebuilder will create a *.view.php file on block creation * if you want to create *.latte files instead go to your module's settings page * or set the "createView" property to "latte" in your config.php: * $config->rockpagebuilder = [ * "createView" => "latte", * ]; * * If you set it to "php" this message will be hidden on new .php view files. */ ?> <section class="rpb-archivefilter" <?= $block->styles() ?> <?= alfred($block) ?>> <?php echo "<div class='archive_wrapper'>"; $link = $pages->find("page_reference_02=$page, sort=parent.sort, sort=sort"); foreach ($link as $content){ echo "<div class='content_link'>"; echo "<div class='content_link_wrap'>"; $block_img = $content->cover_img; if ($block_img) { echo "<a href='{$content->url}'><img class='maxheight' src='{$block_img->url}' alt='{$block_img->description}'></a>"; } echo "<a class='title' href='{$content->url}'><h2 class='content_text'>{$content->title}</h2></a>"; echo "</div>"; echo "</div>"; } echo "</div>"; ?> </section> -
While using the page reference from vanilla processwire with Rock page builder, I have a hard time finding the right syntax. $link2 = $pages->find("page_reference_01=$page, sort=parent.sort, sort=sort"); Normally, I would use a line like this. But this does not quite work, as the page references are on a page in a block(on another page), while using this, I sometimes could target $block instead of $page, but it does not work this time. What are the right way to find a page reference within an other page within a block. $link2 = $pages->blocks->find("page_reference_01=$page, sort=parent.sort, sort=sort");
-
I still have a problem whenever I use the /site/template/file.php in this case (index_filter.php) I want to do a page that catches all the page references. And I don't want to use the block on this specific page. Is there something I'm missing? Why will it not show the code? Code look like this: <?php echo "<h1>yolo</h1>"; echo "<div class='archive_wrapper'>"; $link = $pages->find("pagereference=$page, sort=parent.sort, sort=sort"); foreach ($link as $content){ echo "<div class='content_link'>"; echo "<div class='content_link_wrap'>"; if ($content->cover_img) { echo "<a href='{$content->url}'><img class='maxheight' src='{$content->cover_img->url}' alt='{$content->cover_img->description}'></a>"; } echo "<a class='ttle' href='{$content->url}'><h2 class='content_text'>{$content->title}</h2></a>"; echo "</div>"; echo "</div>"; } echo "</div>"; ?>
-
In the this was the code i used: <?php echo "<div class='archive_wrapper'>"; $link = $pages->find("template=basic-page|basic-page-book, sort=parent.sort, sort=sort"); foreach ($link as $content){ echo "<div class='content_link'>"; echo "<div class='content_link_wrap'>"; $block_img = $content->cover_img; if ($block_img) { echo "<a href='{$content->url}'><img class='maxheight' src='{$block_img->url}' alt='{$block_img->description}'></a>"; } echo "<a class='title' href='{$content->url}'><h2 class='content_text'>{$content->title}</h2></a>"; echo "</div>"; echo "</div>"; } echo "</div>"; ?>
-
Atlasfreeman started following bernhard
-
Doing a portfolio website for my self. Each project has a "cover_img" inside a block first thing on page. I want to make an array on front page that find template basic page and give me the photo and the title for each page. the tilte works but not the photo.. I simply do not know how to say that the "cover_img" is inside the $block inside $page. Can some one help me? Here is the code: <section class="rpb-archive" <?= $block->styles() ?> <?= alfred($block) ?>> <?php $link = $pages->find("template=basic-page, limit=9, sort=parent.sort, sort=sort"); foreach ($link as $content) { echo "<div class='content_link'>"; echo "<div class='content_link_wrap'>"; $image = $content->$block->cover_img; // Access the block property dynamically if ($image) { $cover_image = $image->size(0, 2000); echo "<a href='{$content->url}'><img src='{$cover_image->url}' alt='{$cover_image->description}'></a>"; } echo "<a class='title' href='{$content->url}'><h2 class='content_text'>{$content->title}</h2></a>"; echo "</div>"; echo "</div>"; } ?> </section>
-
Atlasfreeman started following RockPageBuilder
-
Normally i would do a page where all "children" or specific template where found to give the viewer and overview of what they can click on (im often doing portfolio websites). Then the end-user only need to do new "under pages", and their new project will automatic come on the front page (I think that is nice, and a feature i love about processwire) I find the block system very intuitive and have made it with this now. Maybe you could make a lock block feature one day in the future. Anyway, you are talking about how to create reuse of blocks and how they can have variation we also see this in the demo, and i can see it in the prebuilt block, tought i never used .latte is there anywhere you can direct me to how you do this in php, is there any guide for this? I think your variations are this in the .latte files (or a part/start of it): {var $maxw = "maxw-".$block->settings('maxw')} {var $width = $block->thumbWidth()}
-
When working with the rock page builder if i know i want some markup untouched such as i want to do a array finding all children and putting and image, can i do this on a "template" as i normal would in ProcessWire or du i need to do it in the block? If doing it in the block the enduser could move it around (not a big problem for the case i am working ATM). But im quorious should everything go in the blocks now?
-
[SOLVED] Problem with installing RockPage Builder
Atlasfreeman replied to Atlasfreeman's topic in RockPageBuilder
Okay works like a charm now!!!! So the thing were - I did a fresh install but before i installed RockMigration & RockFrontend i moved the RockPageBuilder into the module folder and i think that RockFrontend somewhat installed RockPageBuilder or so it seemed... So by first moving the RockPageBuilder into the module folder after installing the other modules made it work. Thank for your help! The installation part is always the most stressful for me and the one I never get right, hehe. But now to the fun part!