-
Posts
2,765 -
Joined
-
Last visited
-
Days Won
40
Everything posted by Macrura
-
nope, it doesn't work – latest AOS, latest PW, just stopped working on 2 sites. I can get you access if you want to check it out, or let me know what i should be looking for;
-
Bug report: AOS column break stopped working - is it me? I have the field and all of my editor pages suddenly stopped having the column breaks.
-
Folder structure into Template Folder not working..
Macrura replied to Junaid Farooqui's topic in Themes and Profiles
AFAIK the template files that connect to PW templates need to be in root, and that's a good thing; you wouldn't want it looking in folders where you might have hundreds of other php files. So your clean template folder will only have PW template files in root and all others in folders.. -
Seems aos column break...broke?
-
wow thanks, though i tried it just now and it doesn't work for me...
-
there are some discussions and instructions on how to do this in the forum somewhere; i think this was the recommended way: $cloneFromTable = $page->repeater->table; $cloneToTable = $page->table; foreach($cloneFromTable as $row) { $row->id = null; $cloneToTable->add($row); } in other words i think you have to iterate the rows from the old table to the new table; AFAIK there is no way to copy the whole thing at once, unless something changed since the last time i needed to do this. You might want to check over in the Profields Table forum about this specifically.
-
Tracy shows these notices on the page tree: 17× PHP Notice: Undefined index: ListerTweaks_options in .../modules/AdminOnSteroids/AdminOnSteroids.module:452 17× PHP Warning: in_array() expects parameter 2 to be array, null given in .../modules/AdminOnSteroids/AdminOnSteroids.module:452
-
[Solved] Page Tree giving an error (doesn't work) PW 3.0.39
Macrura replied to Xonox's topic in General Support
Have you checked the folder and file permissions, after uploading? -
looks like it is back up, can't see any issues from here. https://en.wikipedia.org/wiki/ProcessWire
-
strange issue, not sure what's going on, but if i have this module installed, i can't see the uninstalled modules, therefore i end up needing to disable the module to install new modules (?)
-
wow thanks guys for SOTW (news 128) , had completely missed that somehow! Also forgot to mention the credits page https://www.elliottcarter.com/credits/ where thanks to all forum members, and a few folks who really made this project possible during it's development and helped me on the forum, and also just by their modules and/or advice, @ryan, @LostKobrakai, @Martijn Geerts, @adrian, @teppo, @netcarver, @horst, @kongondo, @Soma (and at some point i still have to figure out how you make those cool images with the screenshots/devices, always have trouble with that...)
-
and in my example, it only works if you want to columnize the whole field, else you also need to extend that function to have a row/section break
-
ok thanks
-
ok thanks, only thing is, how do i fix this, without version change
-
you could also try using a token like {{column-break}} and then use this function on your body field output: function columnizeMarkup($markup) { if(strpos($markup, '<p>{{column-break}}</p>') == false) return $markup; $bodyParts = explode('<p>{{column-break}}</p>', $markup); $colClass = 12 / count($bodyParts); $columns = ''; foreach($bodyParts as $col) { $columns .= "<div class='col-md-{$colClass}'>$col</div>"; } return '<div class="row">' . $columns . '</div>'; }
-
-
@3fingers there was some discussion of this, possibly going into the database and deleting the modules cache from there, also make sure to use the default admin theme (one fix IIRC was to make sure you are not forcing use of admin theme reno, such as in config.php).
-
thanks to the hard work of @ethfun, the module is now better than before, it will init on the fields that are closed by tab or accordion; The latest version separates the plugin files so those are easy to update to the latest version by just copying them into the module, instead of having to edit the module assets. @ethfun sorry about the confusion with the pull request etc, Friday was a bit hectic, and thanks again.
-
i think using this sort of structure is going to be inevitable on a lot of projects, especially where you don't need/want the users to even interact with the page tree - for example a shop or product catalog; in those situations, you may use a bucket approach, putting all of the products into a 'folder' and then when the user creates a new product they need to set it up from the editing screen - meaning they may need to specify a product type, family, category, or even a combination of those things. Product categories may be just options that need to render lists of items in those categories. In Ryan's CMS critic case study, he demonstrated a hook to rewrite the path of any page based on it's template. I use that method, but depending on how complex the setup is, it may have a series of cascading implications that need to be accounted for system-wide, such as page title, section, breadcrumbs, and the actual page that is supposed to be rendered. I setup a WireData container ($config->segmentData) where i can set those items so that the system can work with whatever virtual page needs to get rendered based on the request. So in the end i was able to get a complete URL routing system by 1) adding the page paths in a hook in ready.php for the relevant templates 2) adding a custom WireData() ($this->wire("config")->segmentData = new WireData();) in ready.php 3) setting up some blank vars in that $config->segmentData in the template init, like $config->segmentData->page = ''; 4) setting up a router template which handles the segment requests, and setting a page in the tree to use that template. 5) i also use a getVirtualPage function that simplifies the code in the router there are a couple of other concerns depending on how you render the content, but nothing that difficult...
-
Process module adding items to sidebar template without file
Macrura replied to gRegor's topic in Module/Plugin Development
@gRegor - not sure if you already tried the Admin Help module, which is basically a documentation system that runs inside PW admin; one of the sub-modules is a process module that displays all of the documentation in an accordion page view... -
wow super awesome, i will get this into the new version asap
-
yes, you can create the shopify_embed field for example, a textarea (can use plain or ACE Extended). Then for each product you have you just need to grab the code and paste in that field. then you can just echo the embed code... <?php echo $product->shopify_embed; ?>
- 1 reply
-
- 2
-
actually looks like this is related to Codemirror refresh, so the fix is all about being able to call the refresh() method on the codemirror instance based on a js event, such as the wiretab click, or the inputfield collapsed. Other option which is out there is to have an interval refresh running on the page, which is an addon for codemirror which helps in situations where you have a lot of instances where the codemirror does not init; @ethfun your fix doesn't work actually because then any non-visible fields on the content tab (like if they are collapsed) don't get initialized till you click a tab... to be continued
-
yep - ok thanks for checking that - will have this all in the module asap. @tpr thanks for the advice, yes, will add the the data attribute so it doesn't keep initing
-
@ethfun - cool yeah I tried to work on that yesterday, but didn't get far. Though I did move the init function into a variable so it can be called from any event now; also the new version updated the core css and js;