Jump to content

renobird

PW-Moderators
  • Posts

    1,699
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by renobird

  1. I think we are talking about 2 things here. If the new default ends up covering everything that Reno does, then it will be obsolete and no longer developed. If not, we are really tied to using Reno here, so at first I'll be making sure it works (as-is).
  2. I've had a 95% functional version of Reno that allows you to pick between the sidebar and topnav for a while now. I just haven't had the time to track down the last few issues, so I haven't released it. I think that is something that should definitely make it as a configurable option into the new theme. I don't think it will be that difficult using UIKit. I think there are some nice ideas in AdminOnSteroids, but I tend to agree with @LostKobrakai, that many of them should be left to AOS to implement. I'm sure there are some AOS features that should be considered for the new theme, but personally I rather see clear means of manipulating the admin for AOS (or any other 3rd party developer) rather than have a ton of config settings in the core.
  3. I'll be reworking the Reno Admin theme to take advantage of UIKit and all the refactoring Ryan is doing.
  4. *ahem* @apeisa, you get this working without changes to Extra Allowed Content? I just discovered the embed plugin, and it would be much nicer than what we do now.
  5. I was just going to dredge up that simple example I posted, but @szabesz beat me to it. Start with something simple. Once you get the hang of the basics, more complicated things will become clearer. As LostKobrakai mentioned, looking at core (and/or 3rd party) modules is super helpful. Post code on the forums when you get stuck.
  6. What do you do with this — I'm dense today.
  7. if Padloper doesn't meet your needs, I would go the Shopify Button route.
  8. I've never regretted choosing ProcessWire for any project. There have been a few times recently where I used Laravel, but those were projects where the decisions were made before my involvement. Don't get me wrong, Laravel is great, and I enjoy working with it. There wasn't really anything involved with those projects that made Laravel a better choice than ProcessWire.
  9. A few more things (in case you are wondering): • Soma's Dev2 branch will probably be sufficient for most setups where you don't have "/" as the primary domain. • Modifying all hrefs on page::render is problematic for the setup I have. Ultimately I need to keep the rewrites specific to RTE fields — hence the textformatter.
  10. What I decided to do was leave the RTE fields alone. By default that allows subdomains to link to any page in the tree. In our case, this is doesn't present any permissions issues since we don't have editors who need to be "jailed" to their subdomain. I decided to use a textformatter to rewrite the links on output. It's pasted below in the event anyone else needs something similar. <?php class TextformatterMultisiteLinks extends Textformatter { public static function getModuleInfo() { return array( 'title' => 'Multisite Link Formatter', 'version' => 100, 'summary' => "Converts links in RTE fields for multisite setups.", 'author' => 'Tom Reno (Renobird)', 'requires' => "Multisite" ); } public function format(&$str) { if (wire("config")->MultisiteDomains && wire("config")->httpHosts){ $rootSite = wire("config")->httpHosts[0]; // make sure primary domain is first in config.php $document = new DOMDocument(); $document->loadHTML($str); $xpath = new DOMXpath($document); foreach ($xpath->query('//a[@href]') as $a) { $href = $a->getAttribute('href'); // Check $href against our domain roots. Rewrite accordingly. foreach (wire("config")->MultisiteDomains as $key => $domain) { $domainPageName = $domain['root']; if (strpos($href, $domainPageName) !== false) { $url = str_replace($domainPageName, "http://$key", $href); $a->setAttribute('href', $url); break 2; // this link was rewritten, so move on to the next. } } // append full URL if not viewing the $rootSite if ($_SERVER['HTTP_HOST'] != $rootSite){ if ((substr($href, 0, 1) == '/')) { $a->setAttribute('href', "http://$rootSite" . $href); } } } $str = $document->saveHTML(); } } }
  11. I see now in taking a closer look at Dev2. This all does get complex really quick.
  12. Soma, One thing I'm still fiddling with is RTE links. Right now on this test site, there are only a few links in the RTE that link to pages, and almost all of them work fine because they are on the same branch as the subdomain. There will be times that I need users to be able to link to pages up in the main domain (So, other pages underneath the home page). How do you handle that? Did you have a create a custom version of ProcessPageEditLink, or are you using some textformatter magic on RTE fields?
  13. I looked at Dev2 for a bit, but Dev seems to work with just the simple mod. Thanks for your work on this.
  14. Soma, Just reporting back that the dev version works well for my setup. I did make a small modification so that it just bypasses all the hooks in the ready() function if $config->MultisiteDomains doesn't have a setting for the active http_host.
  15. Hi Zahari, The JS I posted above is in a custom field type , so it's included in the admin if that field is present in the template. You don't need to have a custom field type to do use this though. I would do this. Create a new date field that you want to only show the time picker. Let's say you call it "timepicker". Use Martijn's Admin Custom Files to add that JS to the admin. Make sure your JS targets the correct class for your field name — probably something like: $(document).on("focus", ".Inputfield_timepicker .datepicker", function() { $(this).timepicker({ timeFormat: 'h:mm tt', ampm: true }); });
  16. Thanks Soma, I'll take a closer look at the code, I may be able to modify the module to suit my specific needs. Thanks for the quick reply.
  17. That's exactly the bit that got me concerned.
  18. Hey Marc, Thank for the quick reply and screenshots. Other than nesting the subdomains, that's the setup I need. I'll hang tight to see if Soma (or anyone else) chimes in with a gotcha. Hopefully it will work, because it would make incorporating this existing domain a breeze.
  19. Hi Soma, all... I'm hoping to use this module to add another domain to a existing site that is very large, so I can't move the primary domain to a child of the "Home" page. It's currently setup like this: Home (Primary Domain) -- Academics ---- School A ---- School B ---- School C (Needs to be sub-domain) Is anyone using a setup like this — where the home page is still the main domain as usual, and the subdomain is a nested page?
  20. Hi Arjen, I haven't released anything new. I will try to take a look at any outstanding issues this week.
  21. Hey Pete, It's all a combination of Pages and FormBuilder. Although, there's no need to use FB, I was just piggy-backing on some other systems I built. You could do all the same stuff without FB at all. Short explanation: We have lots of these systems, and there are even multiple Help Desk types, so there would have been hundreds of PW fields. Instead we use FormBuilder for creating the input method, and then send certain parts of the data to a PW page. It probably sounds complicated, but it's really not. Ultimately everything is a page. The relationships are maintained with Page fields. InputfieldMarkup provides a way to display some of the related data (like the effected equipment list) in whatever format we need. It makes it fairly easy to style it however you'd like.
  22. Hey Pete, What kind of functionality do these subsystems have? I don't see anything that you couldn't build in the admin. On a smaller scale, but somewhat related, I have a help desk system that has some similar relationships. Users There are about 20 fields associated with each user Tickets Each user can have multiple tickets Equipment Each ticket can have multiple pieces of equipment attached. The equipment may be assigned to the user, or it may not be. Those sound like they are similar to your User/Horses/Events Although, I don't have anything that's analogous to the payments You can build some pretty complex stuff in the admin, but if you have a lot of custom UI requirements, then you might end up fighting against it like LostKobrakai mentioned. I don't know if that gives you anything more to go on other than, "Hey, I've done something *kind of* similar".
×
×
  • Create New...