Leaderboard
Popular Content
Showing content with the highest reputation on 07/24/2016 in all areas
-
Thanks for the link Bernhard. I had read other online documentation, but it didn't make it clear that all you had to do was include the HTML tag <pagebreak />. I did that and voila, a page break Thanks again, Tony.2 points
-
2 points
-
Hi. You can try these two online tools, they both do not use blacklists https://fontie.flowyapps.com/home http://transfonter.org/2 points
-
I'm on mobile, but I try to answer those questions as best as possible. For migrating field and template changes I'm currently not specifically supporting those json exports. The first reason is quite simple in that the json export didn't support all field features at the time I created the module. The other one is the fact, that I'm not really convinced that adding migrations after the fact is really a good workflow improvement. I'm doing all my local changes via migrations as well. This "ensures" their correctness, is after a few weeks of working with migrations not considerably slower than doing it in the UI and it's really recording your changes 100%. Another one just poping into my head is that those json strings are only exporting a current state. If you want the option to rollback changes there's also the need to have some way to undo changes, which those exports do not provide. I'd suggest you to give the template/field migrations a try/look for creation/deletion of them and also some of my helper functions, which help adding fields to templates and such things. I'm also open for suggestions of other helper functions if they hide a lot of unnecessary boilerplate code. Just to make that clear. The module is certainly not meant to record any UI changes for the user. Those other things you mentioned you want to be able to change are all certainly doable. You're free to do whatever you need in the default migrations. The collaboration issues is nothing I had to deal with very much by now, but I'm getting a collaborator in a few weeks, so there might be updates coming. The biggest issue is the fact that db's are shitty to keep in sync with vcs branches. If you can create a baseline db state you can simply tell collaborators to init that baseline db and run all migrations on it when switching to a new branch. When working longer on the same branch it should just be a matter of pulling in changes of other coworkers and if there's a migration file in the changes typing 'php migrate -m (file)' after the 'git pull' (or similar).2 points
-
1) The main keyword seems to be: access as a procedural function and not only as class instance.2 points
-
There is FontPrep https://github.com/briangonzalez/fontprep. This tools is not maintained for at least 2 years, but it's freely available and works. Just a small note: Be aware that the fact that a desktop font is free, doesn't mean that it can be used as a webfont. You should read the license carefully, and if it doesn't mention webfonts, you should contact the vendor/creator and ask. This also applies to fonts served by FontSquirrel.2 points
-
I think making those size/ms infos very light gray could improve readability. Perhaps something like #999 text color.2 points
-
$categ->Children() ...should probably be... $categ->children() And... $content .= $page->render("member"); ...should probably be... $content .= $member->render(); You are also missing a semicolon at the end of this line... $content .= "<h2>{$categ->title}</h2>" I haven't used the render() method a great deal so I'm not sure of all the ins and outs, but it looks like you are using delayed output so you could run into issues where your _main.php gets auto-appended to your member template when you render it. And that wouldn't be what you want. Are you actually showing the pages using the member template as individual pages on the front-end? Or do you only use their content inside other pages? If the latter you might be better off not having a template file for the member template. So do something like this... foreach($categ->children as $member) { $content .= "<p>{$member->summary}</p> <p>{$member->project}</p> <p><a href='{$member->one_image->url}'><img src='{$member->one_image->url}' alt='{$member->one_image->description}' ></a></p>"; } If you output this same content structure in other templates and want to avoid repetition you could use a function or include to output the member content.2 points
-
I resolved the situation... Deleted the compiled folder in the assets. The module then recompile and everything is fine now...2 points
-
Back again I have been playing around more with figuring out speed and as well as the panel generation time, it's also important to consider the size of the DOM for each panel (as I mentioned briefly in the last post). To that end, the Selector Panel now also shows the size of each panel in bytes/KB: I decided to remove the Page, Field, and Template objects from the PW Info panel which in my example has taken it from 500KB down to 70KB! I figure most of you don't need to see these often and you can easily output via fl(), d(), or bd() anyway when you do need them. As I mentioned, the Variables panel can also be very large in size (see mine above at 957KB) if you have many PW objects assigned to your own custom variables, so if this panel is large for you, I would recommend leaving it off by default. Anyway, hopefully the cleanup of the PW Info panel and the new panel size info will help you all to have much faster page loads when running Tracy.2 points
-
The Font Squirrel webfont generator has been giving me grief recently. Changes seem to have been introduced that give me two problems: 1. A number of freely licensed fonts can no longer be converted to webfonts due to false positives on some kind of generalised blacklist. It seems that the vendor of the font is checked on upload and if that vendor also sells retail fonts then the uploaded font cannot be converted. Even some fonts downloaded from Font Squirrel itself can no longer be converted. Examples: https://www.fontsquirrel.com/fonts/source-sans-pro https://www.fontsquirrel.com/fonts/clear-sans 2. Fonts that I have made customisations to in FontLab are now declared "corrupt" despite working normally in desktop applications, being convertable by other (inferior) online converters and previously working fine in the Font Squirrel generator. Anyway, this has made me realise how dependent I am on a single online service and I'd like to find a good alternative if possible. Does anyone know of a Mac or PC desktop application that can generate webfonts with anything approaching the level of control possible in the Font Squirrel generator? Or a good online alternative? I need features like: WOFF2 generation custom subsetting OpenType features & flattening Thanks for any suggestions.1 point
-
Thanks again my style guru - that is definitely an improvement - it was looking pretty messy and hard to read the panel names. Sorry about that! I'll look into making it configurable. I actually think it is time to split the config settings into collapsed fieldsets - it's becoming a bit unwieldy, so I will do this which will also make it easier to add some more panel-specific config options which I think will also be useful.1 point
-
I think you are talking about changing the breadcrumbs in the PW admin - if so, then you can either hook after Process::breadcrumb, or hook before ProcessPageEdit::execute. Both have advantages and disadvantages. You can see how I did this here using the Process::breadcrumb hook. This works with both the default and Reno admin themes. https://github.com/adrianbj/AdminRestrictBranch/blob/master/AdminRestrictBranch.module#L121 Here is the the ProcessPageEdit::execute approach which doesn't work fully with Reno but is simpler in some ways: https://github.com/adrianbj/AdminRestrictBranch/blob/b5d27d1f118c34ba74d8548591a526513e68f48a/AdminRestrictBranch.module#L108 Hope I correctly understood what you wanted and that this helps.1 point
-
in my case the two templates are 'blog' and 'blog-post'. 'blog' is the parent and only used once, while blog-post is the child and used many times. In the 'Family' tab on the template page for 'blog-post', I have things set up as in the attached image. This template cannot have children, but can be used for new pages. Its only allowable parent is 'blog'. If you go on the 'blog' template, the dropdown for allowed chidren will have a tick (checkmark) against 'blog-post'. This relationship between templates only needs to be set from one side to work, and I usually do it from the child template since it is when I am editing that that both sides of the relationship exist.1 point
-
Actually, I did liked/used them. It is a lot faster to just click without typing first. In my case the total execution time is the same, so I lost functionality, gained nothing. Can you please provide another setting to optionally turn it off? I'm thinking of beginners here. They also need these, while pros might not.1 point
-
Here are a few background links on SmartyPants, if that will be of any help: https://daringfireball.net/projects/smartypants/ https://michelf.ca/projects/php-smartypants/ https://michelf.ca/projects/php-smartypants/typographer/1 point
-
It is a caching problem. You have copied cache values (directory pathes) from one computer (your online) to another computer (your local), and file_last_modified timestamps too. But this stored ones from your online mostly will not match to your locals. So you need to clear caches and have to refresh the modules lists. (Maybe better 2 times than only once ) After all the caches are refreshed and the filecompiler builds all fitting to your local computer, all settings in DB should work again. The second thing in your case is the SessionHandlerDB. SessionHandlerDB is an alternative handler fro session management. Now, after you have disabled it the hard way, PW switched to the default session management via files, located under site/assets/sessions/. If you like, you also can switch back to SessionHandlerDB after all other caches (also minor one!) are working perfect again. To switch back, please go to modules and install it via the interface, as you have done when using the first time. (Don't modify the modules table!! this only works the other way round!) ------ --- ------ To avoid those caching issues, you could use the SiteExporterModule, but this would not give you an exact copy of your online site. So, in your case you have done most things right. Only thing what you may try next time could be: make a copy of all site/... files to your local PC modify the site/config.php to point to your local DB get a mysql dump from your online DB modify the mysql dump: remove all entries of the tables "caches, sessions", but only the data value entries, not the table definitions! import the modified mysql dump into your local DB login into admin, go to modules and hit the refresh button one or two times1 point