Jump to content

Macrura

PW-Moderators
  • Posts

    2,776
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. hooking into page path allows you to change that; so you can add .html if you want; you also need to code in some logic about what happens with directory indexes
  2. some quick options: check for url segment 'news.html' off the root and then render the /news/; for 'my-fist-post.html' you could grab the url segment in the /news/ template, explode it at the period and then use the first part to find and display the post. you'd need to hardcode the links or do a hook on the page path to rewrite the URLs of the pages
  3. @ethfun - if you are able to figure out how to dynamically change the smtp creds let me know - that would be super useful; for example i am doing a lot of CRM type of builds on top of PW these days, and sending email needs to be flexible to where you can change the sender and have that use a totally different account; Currently i use a modified version of WireMailMailgun which has the functionality to change those things before you send.
  4. I can also confirm that ecwid is good and could work easily with Processwire; i have used it on several sites. The main reason why you might want to use FoxyCart or SnipCart over ecwid is that in Ecwid (at least the last time i used it) you have to setup the products within the ecwid interface, as opposed to defining your products within PW. Part of the reason for using PW as the basis of an ecommerce site would be to take advantage of custom fields, and being able to code your own logic for all of the product's attributes, everything from images to pricing, variants, stock, etc. So if you used ecwid then you'd need to double enter the product details; Where ecwid can excel would be on simple sites where you just need to add a few products and don't care about using custom fields.
  5. @MaryMatlow can you provide both your php code and the output code. Without seeing that there's not much anyone can do to help.
  6. You would need to post your question on the FormBuilder support board, which you should have access to if you are a registered FB user.
  7. Agreed Padloper is great if you need to keep it all in PW. There is also FoxyCart - great system, rock solid, flexible, easy to use, and a breeze to implement on Processwire.. (see katonahartcenter.com, ohmspeaker.com for examples)
  8. 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;
  9. 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.
  10. 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..
  11. Seems aos column break...broke?
  12. wow thanks, though i tried it just now and it doesn't work for me...
  13. 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.
  14. 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
  15. Have you checked the folder and file permissions, after uploading?
  16. looks like it is back up, can't see any issues from here. https://en.wikipedia.org/wiki/ProcessWire
  17. 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 (?)
  18. 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...)
  19. 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
  20. ok thanks
  21. ok thanks, only thing is, how do i fix this, without version change
  22. 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>'; }
  23. I'm seeing a small issue with the URL checker, when a field is inside a fieldset:
  24. @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).
  25. 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.
×
×
  • Create New...