-
Posts
2,780 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Macrura
-
I was able to get Reno back, i had to go to the database of another installation and look at the caches table, then i matched the id to the id of the module in the modules table, and added these to the end of the json strings in modules verbose and modules info; then the module showed up and i was able to switch to it... hopefully that's solves this, but if anything changes i'll report back.. ,"202":{"summary":"Admin theme for ProcessWire 2.5 by Tom Reno (Renobird)","author":"Tom Reno (Renobird)","file":"\/home\/useracct\/dev\/wire\/modules\/AdminTheme\/AdminThemeReno\/AdminThemeReno.module","core":true,"configurable":true,"versionStr":"0.1.2"} ,"202":{"name":"AdminThemeReno","title":"Reno","version":12,"icon":"","requires":["AdminThemeDefault"],"requiresVersions":{"AdminThemeDefault":[">=",0]},"installs":[],"permission":"","permissions":[],"autoload":"template=admin","singular":false,"created":1411910134,"installed":true}
-
could be done super easy/fast - you would probably use admin custom pages and then build your table that returns the list of widgets and the various columns; i think there may be a core inputfield for the table, or you roll your own data tables; admin custom files lets you load any js/css you need;
-
Hi, the AdminThemeReno has mysteriously disappeared from the admin. it is in the wire modules, and the database modules table, but absent from the modules listing.. it has basically vanished; I tried updating to the latest dev to see if that would fix it. The problem seems to have started when i went into Modules Manager and the version was older so there was a json error; then right after reloading the page, the theme flipped back to the regular theme, and then the reno disappeared..; i'm not completely sure if modules manager was the source of the issue; I'm guessing some database corruption? not sure where to start troubleshooting this, but would really appreciate any help or advice. What do most people do when you hit a 'dead-end' issue like this? Is there some way to check the database for some misconfiguration? Should i delete the modules entry in the DB? not sure if this is related, but if i uninstall the default theme, i get this error: Modules: Module 'AdminThemeReno' dependency not fulfilled for: AdminThemeDefault and also if i try to place the default admin theme module into the /site/modules/ then i flip back to the legacy admin, and there is an error asking which one, but if you click on that and go to the module settings, there actually isn't any option to specify which folder to use; it ends up using the site version.. also getting strange errors... [14-Feb-2015 19:46:11 America/New_York] PHP Notice: Trying to get property of non-object in /home/someuser/dev/site/modules/ModulesManager/ModulesManager.module on line 820 [14-Feb-2015 19:46:32 America/New_York] PHP Notice: Undefined offset: 0 in /home/someuser/dev/site/modules/ProcessDiagnostics/DiagnoseModules.module on line 43 [14-Feb-2015 20:12:27 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 284 [14-Feb-2015 20:12:27 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:12:27 America/New_York] PHP Notice: Undefined index: flags in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:14:48 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 284 [14-Feb-2015 20:14:48 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:14:48 America/New_York] PHP Notice: Undefined index: flags in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:15:12 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 284 [14-Feb-2015 20:15:12 America/New_York] PHP Notice: Undefined index: AdminThemeDefault in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 [14-Feb-2015 20:15:12 America/New_York] PHP Notice: Undefined index: flags in /home/someuser/dev/wire/core/ModulesDuplicates.php on line 287 thanks!
-
New Template Method: Does this make sense to do it this way?
Macrura replied to joer80's topic in API & Templates
not sure, i haven't gotten as far as you on this.. I mostly use fields on the editor to define layouts, like page table, or page table extended; and i use global widgets with lister pro, or page specific widgets with an enhanced page select.. -
New Template Method: Does this make sense to do it this way?
Macrura replied to joer80's topic in API & Templates
@joer80 - sounds interesting, and i support the idea of some profiles that have configurable things like page layouts, widgets, etc.. I've done some similar things as you are speaking about, in order to create a reusable profile, and we'll see how it goes once i start reusing some of these.. been looking at this the last day or so.. http://designmodo.com/startup/ -
all really nice, very original designs - you've been really busy!
-
hey - anyone using/tried google web designer?
-
yeah, it works really well... probably should make this into a module at some point, for wider accessibility
-
hey - try out the new function i replaced the code i posted; should work now..
-
yeah - sorry forgot to tell you how to echo it.. that should work in think, but you can also do this: $root = $pages->get(1); $pa = $root->children(); echo renderChildrenOf($pa,$root); didn't test that code so not totally sure it will work yet... will try and test later...
-
here's a first try though untested as of yet... worked on this a bit... /** * render markup menu for bootstrap nested navigation * * @param PageArray $pa pages of the top level items * @param Page $root root page optional, if you use other root than home page (id:1) * @param string $output for returned string collection * @param integer $level internally used to count levels * @return string menu html string */ function renderChildrenOf($pa, $root = null, $output = '', $level = 0) { if(!$root) $root = wire("pages")->get(1); $output = ''; $level++; foreach($pa as $child) { $has_children = count($child->children()) ? true : false; $opening = ''; $closing = ''; if($has_children && $child === $root) { $output .= "\n\t<li><a href='{$child->url}'>{$child->title}</a></li>\n"; } if(!$has_children) { $output .= "\t<li><a href='{$child->url}'>{$child->title}</a></li>\n"; } if($has_children && $child !== $root) { if($level == 1) { $opening = "\t<li aria-haspopup='true'>\n<a href='{$child->url}'>{$child->title}</a>\n<div class='grid-container12'>\n"; $closing = "</div>\n</li>\n"; } if($level == 2) { $opening = "\n<div class=\"grid-column3\">\n<h4>{$child->title}</h4>\n<ul>\n"; $closing = "</ul>\n</div>\n"; } } $output .= $opening; // If this child is itself a parent and not the root page, then render its children in their own menu too... if($has_children && $child !== $root) { $output .= renderChildrenOf($child->children(), $root, $output, $level); } $output .= $closing; } return $output . "\n"; } it's also easier in this case to specify the outer markup and let the function do the rest.. $root = $pages->get(1); $pa = $root->children(); $pa->prepend($root); echo '<ul class="mega-menu">'; echo renderChildrenOf($pa,$root); echo '</ul>'; but probably you'll need to work on it because this really only works with that exact page tree structure..
-
you could definitely modify the code that was originally made by Soma, to do this.. https://processwire.com/talk/topic/2787-custom-menu-not-related-to-page-tree/?p=27275 i can make you a function do do what you need later on..
-
but a slide could be a template, where each slide is one page, or the slider could be a template where the slides themselves are repeaters or page table, or images with regular or extended fields. the only way to get the page to be configurable how you want is to use the page table extended
-
does it work if you disable the hanna code on that? i'm guessing from what you are saying, no...
-
right - ok cool.. i'm sure once you see how easy it is to build a mega menu with PW you'll be awestruck... so initially to get it going, can you provide some details of the page structure, and whether you want to build a custom menu or build the menu off pages..
-
if you're asking about how to structure the code to output that markup, then i can say that if i had to do a mega menu, i would setup a page tree branch for the menu items and use fields and templates to create the nested structure you need; either that or use options/page selects to specify the structure and then create a function to parse the pages into the megamenu if you could post your current code that might help... it really comes down to where you're getting the pages from and where these headlines are coming from... are they the parent page of the menu item, or parent page of a page that you're pulling into the menu
-
does team body have hanna code formatter enabled?
-
maybe this could work? http://modules.processwire.com/modules/fieldtype-page-table-extended/
-
Released: PadLoper (commercial eCommerce platform for ProcessWire)
Macrura replied to apeisa's topic in Modules/Plugins
ended up using this: http://css-tricks.com/snippets/php/generate-expiring-amazon-s3-link/ so i have a processwire page that checks to see if the url to the download is still valid (# of clicks, or date expiration) and then this one liner generates the link to the file on s3, which expires anyway in 5 minutes, and is authenticated. $fileUrl = el_s3_getTemporaryLink($key, $secret, $bucket, $awsPath); i would think it would be pretty easy to 'override' the local storage of a download in padloper with this function and then redirect the browser to the aws file url... -
Released: PadLoper (commercial eCommerce platform for ProcessWire)
Macrura replied to apeisa's topic in Modules/Plugins
yeah, i'm hoping to do the same thing, where the file is hosted on s3; only issue i can think of is this would have to be done with a header redirect, and then anyone viewing the console would be able to see the raw s3 URL (?).. but i probably don't know enough to say for sure.. -
@netcarver - thanks, yes, this fixed it!
-
@nik, great and essential module, using it all the time; Also learned from your code and was able to create some other modules that add their own tab. One question though - is it possible to add the tab before the view link? Then when you click it, the buttons for save would be able to stay below the tab frame.. i guess it would somehow need to append the tab before the save button and view links...
-
using that would have required using html files; where with the way my docs 'system' works, it is all being done with pages, so users can add and modify existing docs, links docs by template or page.. much easier!
- 15 replies
-
- 3
-
-
- responsive
- ajax
-
(and 2 more)
Tagged with:
-
@mr-fan, using PW pages for the docs, not html files; and then this module pulls them into the docs tab: https://gist.github.com/outflux3/3e76a1338b61d708157c posted also more here.. https://processwire.com/talk/topic/8392-simple-built-in-docs/?p=86813
- 15 replies
-
- 1
-
-
- responsive
- ajax
-
(and 2 more)
Tagged with: