Jump to content

Macrura

PW-Moderators
  • Posts

    2,780
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Macrura

  1. there's really nothing to it... you just need a way of rendering the objects, like a function or include file, or template render; I have a site that i do an isotope 'wall' homepage, and it pulls in all of the site content, and renders each wall item with a different function depending on the template of the page.. the isotope/masonry is pretty well documented and easy to use, if you're planning on using that;
  2. i don't get this: $menuname = $page->show_menu->select_value; if you want the name then it would be: $menuname = $page->show_menu->name; you could also setup a fallback in case you haven't made show_menu required, like: $menuname = $page->show_menu->name ?: "home-menu"; oops - almost forgot: welcome to the forums, and to processwire!
  3. some guesses: 1.) is $page defined where you are doing this and does that page's template allow the new page to be a child of it? 2.) maybe original-page needs trailing slash?
  4. i don't think ProCache is overwriting the header - i think that it is serving the file that is generated from a .html file in the cache, and since those files are .html , they will always be sent as text/html; would be curious if there were some magic htaccess way to make it work
  5. @Marty - maybe this could help: http://ckeditor.com/forums/Support/Solved-I-cant-embed-tweet-with-the-new-version-4.1.1 also this plugin might be cool: http://ckeditor.com/addon/mediaembed doh! adrian is 1 step ahead
  6. https://processwire.com/talk/topic/8525-cant-import-polymer-elements/
  7. @Peter - how many hanna codes do you usually use on the average site? My usage has been maybe 4-5 hanna codes on a site, or maybe as many as 10 on a really complex/large site; I do think maybe tags could help here on this page in terms of organizing them, but also i don't expect my clients to be interacting with the hanna codes list so this would be more of an admin convenience. sounds trickier than the templates, b/c the hanna codes are used randomly within text areas, or text fields - and are processed at runtime to the output; not that it would be impossible, but it might be a process that needs to run to collect all of that data and could take a lot of processing depending on the # of pages in the site.. I do agree some module to get a "hanna code report" than could generate and be able to process something like 50-100 pages at a time before generating the entire report; this could be very useful, because we might want to see where a particular one is being used; personally I always try and come up with solutions that avoid hanna codes if at all possible and are equally easy and potentially more elegant, and as such i never have more than a handful of hanna codes per site; Perhaps some of your hanna codes could be replaced with other solutions? they are always sort of a risk being that they are inserted into RTE, so not as bulletproof as something like a validated text input.. I always provide complete documentation for all hanna codes including the code itself that can be copied and then usage instructions, using my docs and docs tab system, as well as often inline using the Markup Textareas, so from the end user perspective, they can use any available hanna code right on the page (or also input with the helper module); but i do think that having a description field would be handy, especially if you come back to a project after some time, you could see more easily what each one does, at a glance..
  8. (This is just my opinion and may not be 100% technically accurate, but here it goes) You shouldn't have any issues installing and using processwire, and based on your posts, the only way I can recommend for you to get a clean install is to completely sequester your PW install from all other things on your hosting; so in short: 1.) Create a subdomain from cpanel, and make sure it uses a folder not within any other currently used folder (e.g. not a folder inside your public_html) 2.) setup a new clean database only for PW (for example using mysql database wizard) 3.) upload latest dev of PW into your new subdomain folder 4.) access your subdomain from mysubdomain.mysite.com and run the install post back any errors you see here
  9. sometimes i do wigets with functions, sometimes with render, and sometimes with includes, the latter being explained here: https://processwire.com/talk/topic/8635-simple-example-for-widget-management/
  10. one of the first pieces of wisdom i got from Soma was about making a template from where you can execute api stuff; this is needed on every site, because you'll always need some "api playground" where you can test things and run things to change, add, fix content.. my setup is to have a template called tools, and then a subfolder in the templates where i store all of the scripts that i will run on that tools template, then i just include the one i'm currently using into it and go from there. Sometimes when developing a new part of a live site, i can just clone a template, run it under tools and set the virtual page to anything in the site (example, $page = $pages->get(1012); ) but mostly i'm doing complex imports from other systems like joomla, or from spreadsheets with a lot of custom stuff and dependant/related pages, formatting etc..
  11. @grumpy - right, that is quite a lot of info. Having just now taken a quick look at TNG, both the public and admin demos, i think it would be good to make some points: 1.) The TNG is already it's own CMS of sorts: It has it's own database, admin panel, and it generates a complete frontend website. How this is to be integrated with another CMS is something you have to figure out or plan. Options could include importing all of your TNG data into Processwire, and using it alone as the system for the genealogy; this could be a pretty big task depending on how many of the features of the genealogy system you use. But since you can build just about anything with PW, that is an option. BTW - You may have noticed that there is already a Wordpress integration for it. Not that I would like to steer you away from Processwire, but at the least I think you should look at that option, since it may work 'out of the box'... Processwire itself isn't going to generate any markup for you in terms of the mobile sites, aside from the basic responsive demo frontend it comes with.. Let me know if there are some more specific questions or issues that can be addressed!
  12. it's all working well here, got it on 3 live sites, and have tried various different configurations and it looks great
  13. i just wanted to possibly clarify something - there would not be a directory - the admin is a processwire page, using the admin template, so you won't find that as a directory under FTP. this should leave an error_log somewhere on the server, usually - what does that say? i'm also worried about the subdirectory setup; that could be an issue. further it sort of sounds like you are already using a PHP script for your site and are possibly thinking of bootstrapping processwire to make it from hard coded to content-managed? Can you elaborate on which profile you installed? lastly, you might want to consider creating a subdomain where you could temporarily house your processwire site, until it is ready. something like pw.mydomain.com, or dev.mydomain.com and then you would not be using a subdirectory; not that there is anything wrong with using the subdirectory, but you do need to know how to configure that..
  14. not totally sure, but i think you are trying to render a page without a .php template; how would the system know how to render the widget, maybe i'm not seeing your full picture..
  15. @mr-fan, thanks! with my current workload, i think i would start developing the module slowly and project it to be done by end of May or June; so i'll get back in touch!
  16. hey mr-fan - good idea, makes it easier to setup; hoping at some point to improve this whole thing, including how it displays (needs more styling for the text), and bundle it with the page docs tab, as a module...
  17. want to express my deepest gratitude to the PW folks for selecting this as site of the week! As someone who worships PW and all of the developers and contributors alike, it is a tremendous honor to receive this.
  18. @KentBrockman, couldn't you put this into htaccess? # CSS AddType text/css .css
  19. hey quickjeff - maybe you could post your final code, to see how it was adjust for the use case? cheers!
  20. @quickjeff, i'm not using that module, but the code i posted could probably be adjusted to work for it, because as i see in the module description so wouldn't you be able to use that snippet in some form to see if the menu item's page should be output?
  21. I'm using sort of the same function, and although my setup is different (i have a custom menu generated from a branch on the tree) this might help, i use this right after the opening foreach: $menuVis = true; if($child->menu_roles->count()) { foreach($child->menu_roles as $cmr) { $menuVis = false; $cmrRole = wire('roles')->get("$cmr->name"); if (wire("user")->hasRole("$cmrRole") ) { $menuVis = true; break; } } } if($menuVis == false) continue;
  22. @Ivan, many thanks for looking; yes you're right about the 'about'... it will probably get improved - maybe i'll add the default right column there, so it's not such a dead end. the covers on the catalogue should be around 110px... it's all in a datatable, so more utilitarian focused and each in 1 row so i probably wouldn't go with text under cover, especially as i'm trying to conserve vertical space; for the hover state, yeah that's just how it is because they never enforced a cover ratio, so for now it has to be that way... also because the rows need to all be same height... @Pete - yeah, i originally was going to use ajax data source, but i'm using atttibutes on the <td> like data-sort, and data-filter, and couldn't really get my head around how to ajax that..
  23. i think the datatable is fine to load the # of rows maybe up to 100, and it will take a while for them to have that many albums; the page is procached and loads fast here, even with the datatables having to parse that table.. gtmetrix reports a 2.17s load time, and it gets a decent speed score.. the page is currently 647kb which isn't bad considering it is loading almost 15 years worth of releases; i could probably optimize the joins and increase the speed it takes to create the cached version; procache reports 5.1094s to create the page, but there is a ton of processing going on, like each album has hidden columns with the filter data, which are page IDs for stuff like album artist, performers, genres and label..
  24. @mr-fan - what problem are you seeing? does the minified file have any byte order marks? you might need to check the encoding of the js files, or zap gremlins
  25. @MuchDev - thanks for checking this out! Actually there is no connection between the radio player and the pages, but the radio player will only play tracks that have been checked off for that, and then those same tracks also get the radio icon, so that's why you can see which track from the radio player is on any given album page; The catalogue page is just a filterable list of the albums.. there is also a site search and artist listing/search.. @Peter - it definitely seemed like a lot of data when building it... album template does have a lot of fields, and there is more media/info when the press user is logged in.. The catalogue search is really dead simple, a chosen select that are being used to filter the datatable... it was really the most economical way (time/budget) to build a filterable catalogue, and it is all client side filtering, so the whole table loads on that page, though the album covers load on demand based on the datatables redraw callback..
×
×
  • Create New...