-
Posts
4,956 -
Joined
-
Last visited
-
Days Won
100
Everything posted by LostKobrakai
-
Best way to output multiple, HTML formatted pages from pagearray?
LostKobrakai replied to kathep's topic in Getting Started
$pageArray->remove($page); or $pages->find("id!=$page->id, …"); -
Have you already tried this https://processwire.com/talk/topic/8007-markupseo-the-all-in-one-seo-solution-for-processwire/?
- 1 reply
-
- 2
-
getTotal() is the standard api way to do it. I'm not firm with the database related issues, but if you're really concerned with speed issues, you could use a small autoload module, which counts the pages on pagesave of relevant pages and saves it to a field. This is only a few lines long and you don't have to worry about all the different things users can do on the frontend.
-
@awebcreature If you don't trust my explanation, here is a statement from Ryan that this is currently not intended to work. https://github.com/ryancramerdesign/ProcessWire/issues/803#issuecomment-64982758 Only option would be to hook the dependency management and add a own javascript file which handles the repeaters.
-
As stated in the last post of the linked topic, this way currently doesn't work. In the same post is a link to a github issue, where Ryan explained how to get rid of the settings tab via the admin backend.
-
Using a user object without saving to temporarily store values
LostKobrakai replied to jessevl's topic in API & Templates
Unsaved pages, as users are also pages, are just an instance of a standard php object. There's no database involved as long as you don't use save(). That's also the reason, why you can't upload files to pages as long as they aren't saved and thus don't exist from a database standpoint. -
Each repeateritem is actually a hidden but real page, so they're assigned dynamic names. These include the id of the current repeater item, so I think the field dependencies don't work in repeaters, because the name matching just doesn't work. checkbox_1029 just isn't checkbox. Also the same field can be used normaly on the same page as the repeater field resides, so there could be a normal checkbox and some checkbox_1029, checkbox_1034. I don't know for sure, but I think, that's why Ryan left it out by now.
-
Thought there could be something less drastic than die()
-
I'm currently building my first website which includes clientside templating. Now some templates look different in templates but don't use different data, so I want to include a get variable switch which will only send the date to generate the breadcrumb instead of the whole template data. Now my question is, can I somehow interrupt the template rendering of processwire from an _init.php which is prepended?
-
I have an older DS212j and I can agree with Pete, they would be really nice small serverboxes, but the cpu and ram aren't fit to do so. I use mine just for backups and a local dns / dhcp server, to be able to view local pages all over the network.
-
Secondary buttons in a form
LostKobrakai replied to Mike Rockett's topic in Module/Plugin Development
Simply have a look in ProcessTemplate. There's simply no extra markup, it's just css. #export_button, #import_button { float: right; margin-left: 0.25em; } -
I just updated to 2.5.14 and AdminCustomFiles refuses to save it's settings, while other modules still work.
-
For information why your code didn't work have a look here: https://processwire.com/talk/topic/4680-block-access-to-settings-delete-and-view-tabs-for-page/#entry83981
-
@jjozsi While there's no native version in ProcessWire you could do this on your own with a small module. Just hook into the Pageimage functions and look for the retinafy option. If it's true you can double the size values and lower the quality. More on changing arguments here: http://processwire.com/api/hooks/#read_arguments
-
Very nice! As the thumbnails module got more and more out of date it faded from my default modules list. But I think this will be the replacement mighty soon.
-
Actually you do need to use those to be able to use multiple h1's according to the specs (All the other sectionroots are not that imporant). So I'll definetly use those more in the future.
-
As I've a new project coming up I'm currently doing a little preliminary research of best practices. Now I found this article (http://webdesign.tutsplus.com/articles/the-truth-about-multiple-h1-tags-in-the-html5-era--webdesign-16824) about the usage of multiple h1 as it is allowed by the html5 spec. The comments below are quite controverse, but I actually like the idea of each section of the page having it's own headlinestructure, as it's much easier to build self contained html chunks. As the article is already a year old, are there any insights in browser and/or issues with screen readers? How do you guys handle with the new specs? Do you still markup headings the old html4 way or do you use the new sectioning / seperate headline structure?
-
block access to "Settings", "Delete" and "View" tabs for page
LostKobrakai replied to Joe's topic in General Support
Just want to leave a note for others: This doesn't work currently. The form still gets changed, but the tabs will stay, as Ryan changed the tab generation part. I've opened a github issue regarding this one: https://github.com/ryancramerdesign/ProcessWire/issues/847 -
I'm just setting up the permissions / roles for an upcoming project and noticed, that custom roles even with page-lister and page-edit-recent can't see the corresponding pages in Reno. The default theme shows them as expected. Just tested the dev version, it seems fixed. Any insights if such "bugs" will get backported into the stable version?
-
Than it would be nice to at least include a link to the rss feed on the actual site. That's where I looked for it.
-
I have a small feature request. How about a rss feed to get a notification about new recipes. This could maybe been integrated here in the forum sidebar, too.
-
I would also suggest you talk to your hoster as my impression of transmit as a ftp tool is also top notch.
-
@pwired I think it's not about lag in terms of "a lagging computer" but in terms of "my browser recognises my newly uploaded css file and the changes in it".
-
Sry I thought you wanted it the other way around. You could do this by using urlSegments in the template of the homepage. $segment = $sanitizer->pageName($input->urlSegment1); $page = $pages->get("parent=/about-us/, name=$segment"); if($page->id){ echo $page->render(); } This will show /about-us/values under /values. What you can't change is the output of $page->url as it's a mathod not a variable. So you can't use it to link to those sites.
-
If you're using the standart .htaccess which ships with processwire then there should be nothing which affects the behaviour your getting. Regarding the ftp issues, just take a look at the changing date of the online file, it should change after the upload is done. Another way would be downloading the css file after the upload and compare. This shouldn't take long to test, but rules out errors there.