Jump to content

Boost

Members
  • Posts

    127
  • Joined

  • Last visited

Everything posted by Boost

  1. You are right. My bad, it's working.
  2. I just used hanna code. <?php namespace ProcessWire; $country = getLocation(); // my geo-targeting function that returns the country iso two letter code $creditUnion = "/solutions/credit-unions/"; $buildingSociety = "/solutions/building-societies/"; $pageLink = $country == 'GB' ? $buildingSociety : $creditUnion; echo "<a class='uk-button uk-button-orange uk-border-pill uk-text-bold' href='" . $pageLink . "'>Learn More</a>";
  3. This is nice @Robin S! Is it possible to automatically create the PHP file inside /site/templates/hannas when you first save the code?
  4. Hi, I'm a bit confused about where and how the geo-targeting should occur. For instance, I have page A with a button that will link to either page B (if you are in the US) or page C (if you are in the UK). My concern is how to ensure that the link points to the right page. I'm not worried about the geo-targeting code; I have that covered. My uncertainty lies in how to dynamically assign the correct link to the button. The challenge is that I'm using the TinyMCE editor for the copy, which includes the button. Is there a way to route the link through a hook or function that will determine the geo-targeting? Please feel free to ask any additional questions if my explanation is unclear. Thanks!
  5. Hei, I just copied the TinyMCE defaults.json and modified a few things, but the pwimage and pwlinks don't work anymore. Why does the below work, but when I use my modified version in the "Default setting overrides JSON text", they don't? It seems it's the plugin path, so it means that the {url} only works with the defaults.json? "external_plugins":{ "pwimage":"{url}plugins/pwimage.js", "pwlink":"{url}plugins/pwlink.js" }, Thanks.
  6. But not this part.
  7. I'm not necroposting here, I'm just curious if @sebibu got any further with TinyMCE ?
  8. Thanks. It's not about access restrictions. It's just how do you 'store' you PDFs ?
  9. Hello, I'm currently working on making PDFs available for download on my website. At the moment, they are not behind any kind of gate or restriction. Users can simply click a download button to access them. My question is, how do you manage and organize such assets? Do you use a dedicated page/template for them, or do you simply upload them directly to the server? Cheers!
  10. Thanks @sebibu. The alignment trick helped a lot. Now, I'm just need to have the formalting (bold, text-align, heading sizes) using the uk-kit.
  11. Hei @apeisaIs it possible for me to give an user the permission to create redirects or is it just superuser? I can not see the permission for redirect here.
  12. I did not get Overrides outside the template. So, maybe here is my confusion about how to use Overrides correctly.
  13. Yeah, I'm still having issues. @JoseFrasher links helped, but I'm not yet able to get it fully working. Every time I fix something, another gets broken? However @7Studio post did the trick for the images ?
  14. Hello, I'm aware that Overrides are not necessarily dangerous; most of the time, they are simply misused, just like I did. However, I believe there is a lack of documentation on this topic. So, I would love some clarity on Overrides, as I think I might have misunderstood the concept. Here's what I've gathered: I created a FieldsetPage fieldtype named Hero, with the following fields: image, text, body, and URL. I added the Hero field to the basic-page template. I created three pages: A, B, and C, all using the basic-page template. Now, here's where it gets interesting. On page A, I made no changes to the Hero. I used it as it is. On page B, I overrode the label of the image field to "logo". On page C, I overrode the Hero by adding an extra field, such as a textarea. Now, the changes made on page B and C will affect page A, correct? Is there a way to allow overrides by individual pages, rather templates? This would provide us with a lot of flexibility, wouldn't it? My issue happened when I started adding extra fields and removing some, like I did on page C. I forgot it was one template-based page, so I ended up messing up the other pages. One last thing. I don't understand the warning: " WARNING: enabling settings beyond those specified by the Fieldtype/Inputfield module may not always work, or may cause problems" So, folks, I'd be extremely grateful for any insights regarding overrides, perhaps some best practices and what to avoid. Cheers!
  15. Hei, I have a career page where we use a external app to show our availables positions. Currently, we do that by adding this embed code to the page: <script type="text/javascript" src="https://web106.reachmee.com/customerjs/helper.js"></script> <script type="text/javascript" src="https://web106.reachmee.com/customerjs/I002-1350-6.js"></script> My question is, how do I do that with ProcessWire? ? I tried most of the Textformatter and nothing worked. I also tried using a textarea field, but no luck. Ideally, I would like to do this via TinyMCE, is that possible? Cheers.
  16. Hei @flydev First of all, I want to say a big thank you for this awesome module! I'm facing a little hiccup while trying to use Duplicator with XAMPP. The thing is, XAMPP installs everything in the /opt directory, which leads to a permissions issue when running mysqldump. I did try creating a symlink of mysqldump in /usr/local/bin, but unfortunately, it's still not working as expected. It seems like Duplicator can see mysqldump, but it's having trouble executing it. Here is the log. 023-10-17 12:29:13: - package build failed. 2023-10-17 12:29:13: Error while running UnixNative Backup , err 2: [] 2023-10-17 12:29:13: - Backup using native tools 2023-10-17 12:29:13: Backup Database 2023-10-17 11:32:56: - job finished in 7.060878sec 2023-10-17 11:32:56: - package saved in local folder: 2023-10-17_11-32-49-boost.local.package2.zip 2023-10-17 11:32:56: - package built successfully in 7.06046sec 2023-10-17 11:32:49: - Backup using standard mode
  17. Thanks! Custom JSON is the way to go!
  18. Hi @AndZyk, Thanks, that it is what I'm doing now. However, I would like to see TinyMCE generating the uk-text-left class, instead the align_left one.
  19. Hi, This question is not about the custom CSS styles that we can add to TinyMCE that end up showing up in the Format drop-down menu. This is about the TinyMCE-generated classes. For example, if you select a text and go to Format -> Align -> Left, the editor will output the text with a "aling_left" class. My confusion is here. Is there a way to modify that? So, instead of output "align_left", it would output "uk-text-left". Any help will be appreciated!
  20. Perfect! Thank you.
  21. Hi, I'm struggling with a background video that should pop up as a lightbox/modal when the user click on it. Here is the video code part: <div class="uk-position-cover uk-cover-container"> <video src="<?= $page->block->video_upload->url ?>" loop muted playsinline uk-video="autoplay: inview"></video> </div> I'm using UIkit for the frontend. I tired to add uk-lightbox attribute with different combinations, but nothing works. Any help will be appreciate! Cheers
  22. Because I don't want "resources" to be part of the URL.
  23. Hei, I hope I'm not overcomplicating things here, but I can't figure out how to generate my menu using the ukNav***() functions from the default site profile in _uikit.php. The issue lies with my "Resources" entry, which is merely a placeholder and doesn't exist in the system. Here's the layout of my menu: Why Acme Product Solutions Resources Contact -product1 -solution1 -blog -product2 -solution2 -case studies -product3 -guides Everything here is a page, except for the "Resources" entry. So, is there a way I can generate the menu automatically? Yes, I could simply "hard code" it, and I have done that. However, I can't find a way to apply the uk-active class to the current element. Any assistance would be greatly appreciated! Cheers!
  24. Thank you. I'm not completely understand what I did, but it seems to work now. <?php foreach ($page->author as $item) : ?> <?= $item->title ?> <?php endforeach ?>
×
×
  • Create New...