Jump to content

Atlasfreeman

Members
  • Posts

    21
  • 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

Jr. Member (3/6)

4

Reputation

  1. @bernhard Sorry. /site/template/file.php is a template file, and my problem is when using the template file as I used to, nothing will show, In this case, I have not added the RockpageBuilder field to this Template. So why does this not work for me?
  2. 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>"; ?>
  3. 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>"; ?>
  4. 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>
  5. 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()}
  6. 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?
  7. 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!
  8. Thanks for the quick awser @bernhard You were right i just updated MAMP and did not se that the php were 8.2. But now im running into some other problems. It's like the blocks does not get installed correctly. Can you undestand - is this also MAMP MySQL?
  9. I just bought this great RockPage Builder plug-in. Have been following the instalment video to try installing it. But when installing is done it keeps telling me: Deprecated: Creation of dynamic property ProcessWire\ProcessWire::$mainMenuSelector is deprecated in /Applications/MAMP/htdocs/site/assets/cache/Latte/templates-sections-header.latte--e1675f1ce4.php on line 85 Deprecated: Creation of dynamic property ProcessWire\ProcessWire::$mobileMenuSelector is deprecated in /Applications/MAMP/htdocs/site/assets/cache/Latte/templates-sections-header.latte--e1675f1ce4.php on line 86 And i can add any of the blocks. Can you tell we why this is happening?
  10. Hi I am looking for an image field that can be added and keep adding so that you can control the fields from back end and therefore have the same template but the output of field will be diffrent. What i am trying to do is a portfolio for a photographer and i want to give him 2 to 3 presets on how he can upload his images. For example one preset with fullscreen image or one with 2 beside each other. He needs to be able to add these as he wishes for each side. Is this possible or do any of you have a suggestion on how to give the photographer a nice intuitive way to do this? I have seen this in wordpress but have no idea how to do this in process wire is this possible.
  11. It work now... ? But I haven't done anything. Maybe it just needed some time. Now i need to try it out on another page. I wish i could say what I did to the community but i really don't know. Again thank you a lot for the help!
  12. (1) if you are using the textformatter, then you do not need to module init in _init.php Okay I deleted it. (2) There is no CSS being output on your page, so the players will not look right Okay, I put it to automatic and now it works but the play boston pause a second after pushed. (3) If everything is automatic, then it should just work, and you shouldn't have to do any code in the header or footer. If you want to use the $config option, then you need to put the foreach for the $config->styles and $config-scripts in the header and footer respectively. I have removed everything and did the automated function. It did work yesterday evening now it does not. (4) What does your shortcode look like in the CK editor? [smplayer tag=replace type=bar-ui bar-ui=full-width] (5) If you are using Tracy Debugger then you can check the contents of the variables to see what is going on and trace the issue. I will try to install this module and se what it says never used it ? I feel like im close hehe but maybe I will need to use Plyr in the end but and the site looks ver good buy the way ?
  13. The _init.php is located in the template folder - I have never touched it before so i guess that the place it goes. Only thing it says is: <?php include_once("./_func.php"); // include our shared functions $sm2 = $modules->get('TextformatterSoundmanager'); ?> The Auto version do somewhat work while it does have problems with Pause and play and will start the song over from the beginning and play it when you wish to pause. And what do you mean by getting the JS file to output? I have the code in the footer I tought that was enough - is this where the problem lies? For now I will only have the CKeditor on the page. Lets focus on that. The text formatter is applied for "Soundmanger2 audio for process wire" under details. And thanks for helping.!
  14. @Macrura $sm2 = $modules->get('TextformatterSoundmanager'); Should it not go in the _init.php its already there... - I have now changed to use the config have also changed the assets option to "$config class" //In Header foreach($config->styles as $style) echo "<link rel='stylesheet' type='text/css' href='{$style}' />\n"; // In Footer foreach($config->scripts as $script) echo "<script type='text/javascript' src='{$script}'></script>\n"; Again it looks like fining the javascript and creating some sort of css script. Now on the page there is only CKeditor input. It sill does no show up correctly. It find the file and all but won't show the play correctly where is it i miss to put what in?
  15. Okay! So Now I Edited the name in the directory and reinstalled the module. And i see it does find the Scripts now. Never the less I am not with you with the whole. It will not work without the CSS: In the head i wrote: <!-- SoundManager2 --> <?php foreach($sm2->cssFiles as $style) echo "<link rel='stylesheet' type='text/css' href='{$style}' />\n"; ?> And it does output something see IMG You are saying something with the module and i toggled around a little to se if anything helped. Can you see what i dit wrong?
×
×
  • Create New...