-
Posts
7,480 -
Joined
-
Last visited
-
Days Won
146
Everything posted by kongondo
-
I've been using this one (PHP DocBlocker? https://marketplace.visualstudio.com/items?itemName=neilbrayfield.php-docblocker
- 242 replies
-
- 1
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Nice. Needed something like this recently but didn't have the time to make one. Are you planning to collate these somewhere gists?
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Shot in the dark here, what happens if you disable short tags and change your template files to use normal tags?
-
I'm getting a 404 on that page ?
-
Is the site online? This works as well? $blog->renderPosts("include=all,limit=$limit");
-
If it returns nothing and the page is published (as we can see from your screenshot), the only thing left is some access control cascading down to your blog template. Do you just have the one post? Could you create a couple more and test? This one has me stumped to be honest.
-
Just two things then. If you run the same code without the 'include=all', what do you get? If you still get something, then your post is published. Secondly, do you echo out $content; anywhere? It is unrelated and has been on my todo list :-), thanks.
-
Strange. So, what does this return; $posts = $pages->find('template=blog-post,limit=5,include=all'); echo $posts->count; // OR asking Tracy bd($posts);
-
I haven't read everything here comprehensively so I cannot make a decision. I've locked this thread pending review by @horst.
-
Glad you like it. I'm not sure what's going on. The code looks OK. Do you have debug on? Any errors? Are you able to output other pages? Did you perhaps set some access control on the posts? By the way, is there any reason you are using wire() inside template files? i.e. $pages->find() and $modules->get() should work just fine without wire() in template files.
-
He's just gone and done it again! Well done @bernhard??
-
I need to try these two. Somebody complained that they were having problems with SSH FS working in windows. @bernhard, @elabx, is either of you in windows? Issues? ? Do you still find you need both extensions? How do you login if using SSH FS alone then?
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Anyone use Regex search/replace in VSC code? This little guy will cleanup after you are done with your Tracy bd dumps (I'm no Regex guru, so test carefully first!). bd\(.*\);$
- 242 replies
-
- 1
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Clever trick with the double cursor/placeholder ?
- 242 replies
-
- 1
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
What's your use case? Why is this important? If we got a better picture, we can probably suggest an alternative. Welcome to the forums ?
-
Although in some cases, it also depends on the 'theme' you are using that IDE ?
-
It does, thanks!
-
Of course, again! Sorry, am half asleep! Custom permissions are mainly used with custom modules ?
-
Of course! ?. Shows you how precious little I know! The best I've been doing until recently is bd($foo, 'bar');! This week I started using the console, like seriously use it, yay! I've been blown away! Even a multi-line cursor! And bd() in the console! I was gonna ask @bernhard to recommend what else I should play with. I've been missing a lot! So no custom permissions then? Looks better, thanks.
-
I've never had a problem with Visual Studio Code (nor Sublime Text before I switched to VSC). What are you using?
-
Have a look at these threads. Could be htaccess, could a be a language issue, etc. Ssorry, in a rush.
-
Thanks for the update @adrian For a task like this (wanting to check the a client's access RE a specific page), I'm thinking it would be more useful to actually see the permissions of that client in respect of the said page, rather than scrolling through a potentially long list of all roles (e.g. a large site). The difficulty I see is, obviously, the said client is not logged in when the admin is checking out the status ;-), so this may be wishful thinking. Just wondering... Could the colours please, somewhere, match the current colour scheme of the other panels? I'm 50/50 on this. If I was able to view a page, put a clients name or id in an input and Tracy returns the permission panel, I wouldn't mind it being separate. Just my 2p.
-
Welcome to the forums @Orodreth, In the long run, you are better off including the resources you need in the frontend either from a CDN or ones you've downloaded locally (to you /site/templates/ folder, for instance. For example, in the case of jQuery, the current version used in ProcessWire core is 1.11.1. The file is named jquery-1.11.1.js. If ProcessWire moves to a later version of jQuery in the future, your code will break since the name of that file will change. To get jQuery from a CDN ,go here or here, for instance. For UI Kit, that's here. However, if you still wish to use the ones that ship with ProcessWire: $config->urls->JqueryCore;// /wire/modules/Jquery/JqueryCore/ $config->urls->AdminThemeUikit;// /wire/modules/AdminTheme/AdminThemeUikit/ Append the rest of the respective paths/filenames to the above, e.g. <script type="text/javascript" src="<?php echo $config->urls->JqueryCore;?>jquery-1.11.1.js"></script>
-
Looks good! ?
- 242 replies
-
- 1
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Welcome to the forums @mjut You need to use $config->scripts->add() for JS and $config->styles->add() for CSS .These need to be added before the controller.php $config->scripts->add($config->urls->templates . "scripts/admin.js"); $config->styles->add($config->urls->templates . "styles/admin.css"); // this comes last require($config->paths->adminTemplates . 'controller.php');